1
0
Fork 0
forked from len0rd/rockbox

'make install' for a simulator now installs a full rockbox setup in the

local 'archos' directory.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4744 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2004-06-14 15:05:58 +00:00
parent b156352756
commit f69c703c53

12
tools/configure vendored
View file

@ -52,6 +52,7 @@ sed > Makefile \
-e "s,@KEYPAD@,${keypad},g" \ -e "s,@KEYPAD@,${keypad},g" \
-e "s,@PWD@,${pwd},g" \ -e "s,@PWD@,${pwd},g" \
-e "s,@LANGUAGE@,${language},g" \ -e "s,@LANGUAGE@,${language},g" \
-e "s,@TARGET@,${target},g" \
-e "s,@SIMVER@,${simver},g" \ -e "s,@SIMVER@,${simver},g" \
<<EOF <<EOF
## Automaticly generated. http://rockbox.haxx.se ## Automaticly generated. http://rockbox.haxx.se
@ -59,11 +60,13 @@ sed > Makefile \
ARCHOS=@ARCHOS@ ARCHOS=@ARCHOS@
ROOTDIR=@ROOTDIR@ ROOTDIR=@ROOTDIR@
SIMDIR=\$(ROOTDIR)/uisimulator/@SIMVER@ SIMDIR=\$(ROOTDIR)/uisimulator/@SIMVER@
TOOLSDIR=\$(ROOTDIR)/tools
DEBUG=@DEBUG@ DEBUG=@DEBUG@
DISPLAY=@DISPLAY@ DISPLAY=@DISPLAY@
KEYPAD=@KEYPAD@ KEYPAD=@KEYPAD@
THISDIR="@PWD@" THISDIR="@PWD@"
SIMVER=@SIMVER@ SIMVER=@SIMVER@
TARGET=@TARGET@
LANGUAGE=@LANGUAGE@ LANGUAGE=@LANGUAGE@
VERSION=\$(shell date +%y%m%d-%H%M) VERSION=\$(shell date +%y%m%d-%H%M)
@ -81,6 +84,12 @@ tags:
@rm -f TAGS @rm -f TAGS
make -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) tags make -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) tags
zip:
\$(TOOLSDIR)/buildzip.pl sim\$(TARGET)
install:
@echo "installing a full setup in your archos dir"
@(make zip && cd archos && unzip -oq ../rockbox.zip)
EOF EOF
echo "Created Makefile" echo "Created Makefile"
@ -171,14 +180,13 @@ if [ "$target" = "update" ]; then
language=`grep "^LANGUAGE=" Makefile | cut -d= -f2-` language=`grep "^LANGUAGE=" Makefile | cut -d= -f2-`
memory=`grep "^MEMORYSIZE=" Makefile | cut -d= -f2-` memory=`grep "^MEMORYSIZE=" Makefile | cut -d= -f2-`
rootdir=`grep "^ROOTDIR=" Makefile | cut -d= -f2-` rootdir=`grep "^ROOTDIR=" Makefile | cut -d= -f2-`
target=`grep "^TARGET=" Makefile | cut -d= -f2-`
if [ "$debug" = "SIMULATOR=1" ]; then if [ "$debug" = "SIMULATOR=1" ]; then
simulator="yes" simulator="yes"
display=`grep "^DISPLAY=" Makefile | cut -d= -f2-` display=`grep "^DISPLAY=" Makefile | cut -d= -f2-`
keypad=`grep "^KEYPAD=" Makefile | cut -d= -f2-` keypad=`grep "^KEYPAD=" Makefile | cut -d= -f2-`
simver=`grep "^SIMVER=" Makefile | cut -d= -f2-` simver=`grep "^SIMVER=" Makefile | cut -d= -f2-`
else
target=`grep "^TARGET=" Makefile | cut -d= -f2-`
fi fi
fi fi
fi fi