mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Add CheckWPS entry to tools/configure
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0119ebb044
commit
8ccd04c33d
4 changed files with 57 additions and 23 deletions
|
|
@ -7,8 +7,6 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
ROOT=../..
|
|
||||||
|
|
||||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||||
CFLAGS+=-mno-cygwin
|
CFLAGS+=-mno-cygwin
|
||||||
EXT = .exe
|
EXT = .exe
|
||||||
|
|
@ -19,28 +17,20 @@ CC = mingw32-gcc
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMMON=$(ROOT)/apps/gui/skin_engine/wps_debug.c \
|
# This is a wrapper for checkwps.make
|
||||||
$(ROOT)/apps/gui/skin_engine/skin_parser.c \
|
APPSDIR=.
|
||||||
$(ROOT)/apps/gui/skin_engine/skin_buffer.c \
|
ROOTDIR=../..
|
||||||
$(ROOT)/apps/misc.c \
|
BUILDDIR=.
|
||||||
$(ROOT)/apps/recorder/bmp.c \
|
BINARY=checkwps.$(MODELNAME)$(EXT)
|
||||||
$(ROOT)/firmware/common/strlcpy.c
|
HOSTCC=$(CC)
|
||||||
|
TARGET=-D$(TARGETNAME)
|
||||||
INCLUDE=-I $(ROOT)/apps/gui \
|
include checkwps.make
|
||||||
-I $(ROOT)/apps/gui/skin_engine \
|
|
||||||
-I $(ROOT)/firmware/export \
|
|
||||||
-I $(ROOT)/apps \
|
|
||||||
-I $(ROOT)/apps/recorder \
|
|
||||||
-I .
|
|
||||||
|
|
||||||
CFLAGS = -g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\"
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@echo To build, run the buildall.sh script
|
@echo To build, run the buildall.sh script
|
||||||
|
|
||||||
checkwps: checkwps.c $(COMMON)
|
checkwps: $(BUILDDIR)/$(BINARY)
|
||||||
@echo CC [$(TARGET)]
|
@echo foo > /dev/null
|
||||||
@$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@.$(MODEL)$(EXT)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f checkwps.$(MODEL)$(EXT)
|
rm -f checkwps.$(MODELNAME)$(EXT)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ cat $rootdir/targets.txt | (
|
||||||
while read target model
|
while read target model
|
||||||
do
|
do
|
||||||
rm -f checkwps.$model
|
rm -f checkwps.$model
|
||||||
make -s -C $rootdir MODEL=$model TARGET=$target checkwps
|
make -s -C $rootdir MODELNAME=$model TARGETNAME=$target checkwps
|
||||||
mv $rootdir/checkwps.$model ./checkwps.$model > /dev/null 2>&1
|
mv $rootdir/checkwps.$model ./checkwps.$model > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
|
||||||
34
tools/checkwps/checkwps.make
Normal file
34
tools/checkwps/checkwps.make
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
# __________ __ ___.
|
||||||
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
# \/ \/ \/ \/ \/
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\"
|
||||||
|
|
||||||
|
COMMON = $(ROOTDIR)/apps/gui/skin_engine/wps_debug.c \
|
||||||
|
$(ROOTDIR)/apps/gui/skin_engine/skin_parser.c \
|
||||||
|
$(ROOTDIR)/apps/gui/skin_engine/skin_buffer.c \
|
||||||
|
$(ROOTDIR)/apps/misc.c \
|
||||||
|
$(ROOTDIR)/apps/recorder/bmp.c \
|
||||||
|
$(ROOTDIR)/firmware/common/strlcpy.c
|
||||||
|
|
||||||
|
INCLUDE = -I $(ROOTDIR)/apps/gui \
|
||||||
|
-I $(ROOTDIR)/apps/gui/skin_engine \
|
||||||
|
-I $(ROOTDIR)/firmware/export \
|
||||||
|
-I $(ROOTDIR)/apps \
|
||||||
|
-I $(ROOTDIR)/apps/recorder \
|
||||||
|
-I $(APPSDIR)
|
||||||
|
|
||||||
|
# Makes mkdepfile happy
|
||||||
|
GCCOPTS+=-D__PCTOOL__
|
||||||
|
SRC=$(APPSDIR)/checkwps.c $(COMMON)
|
||||||
|
OTHER_SRC=$(SRC)
|
||||||
|
ASMDEFS_SRC=$(SRC)
|
||||||
|
|
||||||
|
$(BUILDDIR)/$(BINARY): $(APPSDIR)/checkwps.c $(COMMON)
|
||||||
|
@echo CC $(BINARY)
|
||||||
|
@$(HOSTCC) $(INCLUDE) $(FLAGS) $(COMMON) $(TARGET) $(APPSDIR)/checkwps.c -o $@
|
||||||
12
tools/configure
vendored
12
tools/configure
vendored
|
|
@ -2430,7 +2430,7 @@ esac
|
||||||
if [ "$ARG_TYPE" ]; then
|
if [ "$ARG_TYPE" ]; then
|
||||||
btype=$ARG_TYPE
|
btype=$ARG_TYPE
|
||||||
else
|
else
|
||||||
echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
|
echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, $gdbstub(M)anual: (Defaults to N)"
|
||||||
btype=`input`;
|
btype=`input`;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -2511,6 +2511,16 @@ fi
|
||||||
apps="manual"
|
apps="manual"
|
||||||
echo "Manual build selected"
|
echo "Manual build selected"
|
||||||
;;
|
;;
|
||||||
|
[Cc])
|
||||||
|
uname=`uname`
|
||||||
|
simcc
|
||||||
|
toolset='';
|
||||||
|
t_cpu='';
|
||||||
|
GCCOPTS='';
|
||||||
|
appsdir='\$(ROOTDIR)/tools/checkwps';
|
||||||
|
output='checkwps.'${modelname};
|
||||||
|
echo "CheckWPS build selected"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "$modelname" = "e200r" ]; then
|
if [ "$modelname" = "e200r" ]; then
|
||||||
echo "Do not use the e200R target for regular builds. Use e200 instead."
|
echo "Do not use the e200R target for regular builds. Use e200 instead."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue