summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure38
1 files changed, 32 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure
index 2ddfb72360..bf89d88929 100755
--- a/tools/configure
+++ b/tools/configure
@@ -11,6 +11,8 @@
11target=$1 11target=$1
12debug=$2 12debug=$2
13 13
14extra_defines="-"
15
14input() { 16input() {
15 read response 17 read response
16 echo $response 18 echo $response
@@ -66,8 +68,9 @@ sed > Makefile \
66 -e "s,@KEYPAD@,${keypad},g" \ 68 -e "s,@KEYPAD@,${keypad},g" \
67 -e "s,@PWD@,${pwd},g" \ 69 -e "s,@PWD@,${pwd},g" \
68 -e "s,@SIMVER@,${simver},g" \ 70 -e "s,@SIMVER@,${simver},g" \
71 -e "s,@EXTRA_DEFINES@,${extra_defines},g" \
69<<EOF 72<<EOF
70## Automaticly generated. http://bjorn.haxx.se/rockbox/ 73## Automaticly generated. http://rockbox.haxx.se
71 74
72SIMDIR=@SIMDIR@ 75SIMDIR=@SIMDIR@
73DEBUG=@DEBUG@ 76DEBUG=@DEBUG@
@@ -77,13 +80,14 @@ KEYPAD=@KEYPAD@
77THISDIR="@PWD@" 80THISDIR="@PWD@"
78SIMVER=@SIMVER@ 81SIMVER=@SIMVER@
79VERSION=\$(shell date +%y%m%d-%H%M) 82VERSION=\$(shell date +%y%m%d-%H%M)
83EXTRA_DEFINES=@EXTRA_DEFINES@
80 84
81.PHONY: 85.PHONY:
82 86
83all: sim 87all: sim
84 88
85sim: 89sim:
86 \$(MAKE) -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) 90 \$(MAKE) -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) EXTRA_DEFINES=\$(EXTRA_DEFINES)
87 91
88clean-sim: 92clean-sim:
89 \$(MAKE) -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) clean 93 \$(MAKE) -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) clean
@@ -121,6 +125,7 @@ if [ "$target" = "update" ]; then
121 echo "Existing generated Makefile found. Getting defaults from it." 125 echo "Existing generated Makefile found. Getting defaults from it."
122 target=`grep "^TARGET=" Makefile | cut -d= -f2-` 126 target=`grep "^TARGET=" Makefile | cut -d= -f2-`
123 debug=`grep "^DEBUG=" Makefile | cut -d= -f2-` 127 debug=`grep "^DEBUG=" Makefile | cut -d= -f2-`
128 extra_defines=`grep "^EXTRA_DEFINES=" Makefile | cut -d= -f2-`
124 129
125 if [ "$debug" = "SIMULATOR=1" ]; then 130 if [ "$debug" = "SIMULATOR=1" ]; then
126 simulator="yes" 131 simulator="yes"
@@ -133,7 +138,7 @@ if [ "$target" = "update" ]; then
133else 138else
134 139
135echo "Setup your Rockbox build environment." 140echo "Setup your Rockbox build environment."
136echo "http://bjorn.haxx.se/rockbox/" 141echo "http://rockbox.haxx.se/"
137echo "" 142echo ""
138 143
139fi 144fi
@@ -175,6 +180,25 @@ if [ -z "$target" ]; then
175 esac 180 esac
176fi 181fi
177 182
183if [ "-" == "$extra_defines" ]; then
184 if [ "-DARCHOS_RECORDER" = "$target" ] ; then
185
186 echo "Loadable fonts support? (N)"
187 getit=`input`;
188 if [ "y" = "$getit" ] ; then
189 extra_defines="-DLOADABLE_FONTS"
190 else
191 echo "Proportional font support? (N)"
192 getit=`input`;
193 if [ "y" = "$getit" ] ; then
194 extra_defines="-DLCD_PROPFONTS"
195 else
196 extra_defines=""
197 fi
198 fi
199 fi
200fi
201
178if [ -z "$debug" ]; then 202if [ -z "$debug" ]; then
179 ################################################################## 203 ##################################################################
180 # Figure out debug on/off 204 # Figure out debug on/off
@@ -250,9 +274,10 @@ sed > Makefile \
250 -e "s,@APPSDIR@,${appsdir},g" \ 274 -e "s,@APPSDIR@,${appsdir},g" \
251 -e "s,@DEBUG@,${debug},g" \ 275 -e "s,@DEBUG@,${debug},g" \
252 -e "s,@TARGET@,${target},g" \ 276 -e "s,@TARGET@,${target},g" \
277 -e "s,@EXTRA_DEFINES@,${extra_defines},g" \
253 -e "s,@PWD@,${pwd},g" \ 278 -e "s,@PWD@,${pwd},g" \
254<<EOF 279<<EOF
255## Automaticly generated. http://bjorn.haxx.se/rockbox/ 280## Automaticly generated. http://rockbox.haxx.se
256 281
257FIRMDIR=@FIRMDIR@ 282FIRMDIR=@FIRMDIR@
258APPSDIR=@APPSDIR@ 283APPSDIR=@APPSDIR@
@@ -261,15 +286,16 @@ TARGET=@TARGET@
261THISDIR="@PWD@" 286THISDIR="@PWD@"
262VERSION=\$(shell date +%y%m%d-%H%M) 287VERSION=\$(shell date +%y%m%d-%H%M)
263 288
289EXTRA_DEFINES=@EXTRA_DEFINES@
264.PHONY: firmware apps 290.PHONY: firmware apps
265 291
266all: firmware apps 292all: firmware apps
267 293
268firmware: 294firmware:
269 \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) 295 \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) EXTRA_DEFINES=\$(EXTRA_DEFINES)
270 296
271apps: 297apps:
272 \$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) 298 \$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) EXTRA_DEFINES=\$(EXTRA_DEFINES)
273 299
274clean-firmware: 300clean-firmware:
275 \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) clean 301 \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) clean