1
0
Fork 0
forked from len0rd/rockbox

checkwps: Fix buildall.sh and some RaaA/ypr0 versions.

Change-Id: I5889743e94ed568c8f7dcc50de0b03b8421969f7
This commit is contained in:
Thomas Martitz 2012-02-10 20:27:14 +01:00
parent c978665025
commit 295c1c1e8b
5 changed files with 10 additions and 6 deletions

View file

@ -29,8 +29,8 @@
#include "system.h"
#include "lcd.h"
#include "file.h"
#include "filefuncs.h"
#ifndef __PCTOOL__
#include "filefuncs.h"
#include "lang.h"
#include "dir.h"
#ifdef HAVE_REMOTE_LCD

View file

@ -63,7 +63,7 @@ extern int sim_rmdir(const char* name);
const char *rbhome;
#endif
#if !defined(SAMSUNG_YPR0)
#if !defined(SAMSUNG_YPR0) && !defined(__PCTOOL__)
/* flags for get_user_file_path() */
/* whether you need write access to that file/dir, especially true
@ -255,7 +255,7 @@ int app_open(const char *name, int o, ...)
int app_creat(const char* name, mode_t mode) { return creat(name, mode); }
int app_remove(const char *name) { return remove(name); }
int app_rename(const char *old, const char *new) { return rename(old,new); }
DIR *app_opendir(const char *name) { return opendir(name); }
DIR *app_opendir(const char *name) { return (DIR*)opendir(name); } /* cast to remove warning in checkwps */
int app_mkdir(const char* name) { return mkdir(name); }
int app_rmdir(const char* name) { return rmdir(name); }

View file

@ -6,6 +6,10 @@
../../firmware/common/strlcpy.c
checkwps.c
#ifdef APPLICATION
../../firmware/common/rbpaths.c
#endif
#ifdef HAVE_LCD_BITMAP
../../apps/recorder/bmp.c
#endif

View file

@ -44,7 +44,7 @@ awk -f $rootdir/parse_configure.awk $rootdir/../configure | (
while read target model
do
make -j $jobs clean
$toolsdir/configure --target=$model --type=C --ram=32 # 32 should always give default RAM
$toolsdir/configure --target=$model --type=C --ram=32 --lcdwidth=100 --lcdheight=100 # 32 should always give default RAM, assume 100x100 for RaaA for now
make -j $jobs
mv checkwps.$model $outdir
done

View file

@ -5,7 +5,7 @@ BEGIN { FS="[|)]" }
}
/^[ \t]*target="[^"]+"$/ {
match($0, "-D[^\"]+")
target=substr($0, RSTART+2, RLENGTH-2)
match($0, "=\".+\"")
target=substr($0, RSTART+2, RLENGTH-3)
print target, model
}