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$
|
||||
#
|
||||
|
||||
ROOT=../..
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
CFLAGS+=-mno-cygwin
|
||||
EXT = .exe
|
||||
|
|
@ -19,28 +17,20 @@ CC = mingw32-gcc
|
|||
endif
|
||||
endif
|
||||
|
||||
COMMON=$(ROOT)/apps/gui/skin_engine/wps_debug.c \
|
||||
$(ROOT)/apps/gui/skin_engine/skin_parser.c \
|
||||
$(ROOT)/apps/gui/skin_engine/skin_buffer.c \
|
||||
$(ROOT)/apps/misc.c \
|
||||
$(ROOT)/apps/recorder/bmp.c \
|
||||
$(ROOT)/firmware/common/strlcpy.c
|
||||
|
||||
INCLUDE=-I $(ROOT)/apps/gui \
|
||||
-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=\".\"
|
||||
# This is a wrapper for checkwps.make
|
||||
APPSDIR=.
|
||||
ROOTDIR=../..
|
||||
BUILDDIR=.
|
||||
BINARY=checkwps.$(MODELNAME)$(EXT)
|
||||
HOSTCC=$(CC)
|
||||
TARGET=-D$(TARGETNAME)
|
||||
include checkwps.make
|
||||
|
||||
all:
|
||||
@echo To build, run the buildall.sh script
|
||||
|
||||
checkwps: checkwps.c $(COMMON)
|
||||
@echo CC [$(TARGET)]
|
||||
@$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@.$(MODEL)$(EXT)
|
||||
checkwps: $(BUILDDIR)/$(BINARY)
|
||||
@echo foo > /dev/null
|
||||
|
||||
clean:
|
||||
rm -f checkwps.$(MODEL)$(EXT)
|
||||
rm -f checkwps.$(MODELNAME)$(EXT)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ cat $rootdir/targets.txt | (
|
|||
while read target model
|
||||
do
|
||||
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
|
||||
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
|
||||
btype=$ARG_TYPE
|
||||
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`;
|
||||
fi
|
||||
|
||||
|
|
@ -2511,6 +2511,16 @@ fi
|
|||
apps="manual"
|
||||
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
|
||||
echo "Do not use the e200R target for regular builds. Use e200 instead."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue