From 57613ea5fafb8ba4555755074e7d6ad768fb8a68 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 10 Jul 2010 13:49:49 +0000 Subject: Rename/change SIMVER to APP_TYPE in the Makefiles. SIMVER was really only used to detect a simulator build. With APP_TYPE you can now differentiate between simulator, application, checkwps and database builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27372 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 18 +++++---- tools/database/Makefile | 104 ++++++++++++++++++++++++++++++------------------ tools/root.make | 8 ++-- 3 files changed, 79 insertions(+), 51 deletions(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index 504540505d..9f7c63f569 100755 --- a/tools/configure +++ b/tools/configure @@ -103,7 +103,7 @@ simcc () { prefixtools "$CROSS_COMPILE" ARG_ARM_THUMB=0 # can't use thumb in native builds - simver=sdl + app_type=$1 winbuild="" GCCOPTS='-W -Wall -g -fno-builtin' GCCOPTIMIZE='' @@ -171,7 +171,7 @@ simcc () { [ "$winbuild" != "yes" ] && GLOBAL_LDOPTS="$GLOBAL_LDOPTS -Wl,-z,defs" sdl=`findsdl $winbuild` - if [ $1 = "sdl" ]; then + if [ -n `echo $app_type | grep "sdl"` ]; then if [ -z "$sdl" ]; then echo "configure didn't find sdl-config, which indicates that you" echo "don't have SDL (properly) installed. Please correct and" @@ -233,9 +233,11 @@ EOF echo "WARNING: Cross Compiling, cannot detect endianess. Assuming little endian!" fi - if [ $1 = "sdl" ]; then + if [ "$app_type" = "sdl-sim" ]; then echo "Simulator environment deemed $endian endian" - elif [ $1 = "checkwps" ]; then + elif [ "$app_type" = "sdl-app" ]; then + echo "Application environment deemed $endian endian" + elif [ "$app_type" = "checkwps" ]; then echo "CheckWPS environment deemed $endian endian" fi @@ -2604,7 +2606,7 @@ fi target="-DAPPLICATION" memory=32 uname=`uname` - simcc "sdl" + simcc "sdl-app" tool="cp " boottool="cp " bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" @@ -2855,7 +2857,7 @@ uname=`uname` if [ "yes" = "$simulator" ]; then # setup compiler and things for simulator - simcc "sdl" + simcc "sdl-sim" if [ -d "simdisk" ]; then echo "Subdirectory 'simdisk' already present" @@ -3136,7 +3138,7 @@ sed > Makefile \ -e "s<@FIRMDIR@<${firmdir}