summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-16 14:37:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-16 14:37:30 +0000
commitf092920de788cb78ba39da0161580ef9345986e1 (patch)
treeb19bf76d882770d5f03926492f7d17e228870953 /tools
parent8acdc4a3ef047192f7cfadd3fbe08a171ac84c05 (diff)
downloadrockbox-f092920de788cb78ba39da0161580ef9345986e1.tar.gz
rockbox-f092920de788cb78ba39da0161580ef9345986e1.tar.bz2
rockbox-f092920de788cb78ba39da0161580ef9345986e1.zip
Added FM recorder support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3106 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure35
1 files changed, 18 insertions, 17 deletions
diff --git a/tools/configure b/tools/configure
index ea213b8750..7e7dbcb570 100755
--- a/tools/configure
+++ b/tools/configure
@@ -67,6 +67,7 @@ simul () {
sed > Makefile \
-e "s,@SIMDIR@,${simdir},g" \
-e "s,@TARGET@,${target},g" \
+ -e "s,@ARCHOS@,${archos},g" \
-e "s,@DEBUG@,${debug},g" \
-e "s,@DISPLAY@,${display},g" \
-e "s,@KEYPAD@,${keypad},g" \
@@ -77,6 +78,7 @@ sed > Makefile \
<<EOF
## Automaticly generated. http://rockbox.haxx.se
+ARCHOS=@ARCHOS@
SIMDIR=@SIMDIR@
DEBUG=@DEBUG@
TARGET=@TARGET@
@@ -191,6 +193,7 @@ if [ "$target" = "update" ]; then
if [ -f Makefile ]; then
if { grep "^## Auto" Makefile >/dev/null 2>&1 ; } then
echo "Existing generated Makefile found. Getting defaults from it."
+ archos=`grep "^ARCHOS=" Makefile | cut -d= -f2-`
target=`grep "^TARGET=" Makefile | cut -d= -f2-`
debug=`grep "^DEBUG=" Makefile | cut -d= -f2-`
language=`grep "^LANGUAGE=" Makefile | cut -d= -f2-`
@@ -212,7 +215,7 @@ echo ""
fi
-if [ -z "$target" ]; then
+if [ -z "$archos" ]; then
##################################################################
# Figure out target platform
@@ -222,18 +225,28 @@ if [ -z "$target" ]; then
echo "1 - Archos Player/Studio"
echo "2 - Archos Recorder"
+ echo "3 - Archos FM Recorder"
getit=`input`;
case $getit in
1)
+ archos="player"
target="-DARCHOS_PLAYER"
display="-DHAVE_LCD_CHARCELLS"
keypad="-DHAVE_PLAYER_KEYPAD"
;;
- *|2)
+ 3)
+ archos="fmrecorder"
+ target="-DARCHOS_FMRECORDER"
+ display="-DHAVE_LCD_BITMAP"
+ keypad="-DHAVE_RECORDER_KEYPAD"
+ ;;
+
+ *)
+ archos="recorder"
target="-DARCHOS_RECORDER"
display="-DHAVE_LCD_BITMAP"
keypad="-DHAVE_RECORDER_KEYPAD"
@@ -243,7 +256,7 @@ if [ -z "$target" ]; then
fi
if [ -z "$extra_defines" ]; then
- if [ "-DARCHOS_RECORDER" = "$target" ] ; then
+ if [ "player" != "$archos" ] ; then
disable_demos="-DDISABLE_NOTHING"
disable_games=""
@@ -353,6 +366,7 @@ sed > Makefile \
-e "s,@APPSDIR@,${appsdir},g" \
-e "s,@DEBUG@,${debug},g" \
-e "s,@TARGET@,${target},g" \
+ -e "s,@ARCHOS@,${archos},g" \
-e "s,@LANGUAGE@,${language},g" \
-e "s,@EXTRA_DEFINES@,${extra_defines},g" \
-e "s,@PWD@,${pwd},g" \
@@ -362,6 +376,7 @@ sed > Makefile \
FIRMDIR=@FIRMDIR@
APPSDIR=@APPSDIR@
DEBUG=@DEBUG@
+ARCHOS=@ARCHOS@
TARGET=@TARGET@
THISDIR="@PWD@"
LANGUAGE=@LANGUAGE@
@@ -399,17 +414,3 @@ tags:
EOF
echo "Created Makefile"
-
-
-
-
-
-
-
-
-
-
-
-
-
-