diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2009-01-09 23:15:27 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2009-01-09 23:15:27 +0000 |
| commit | 4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e (patch) | |
| tree | a6d278b5895d0eac184a0e7b9482d705f021c950 /tools/configure | |
| parent | d2321971d351b407fa842ef9d5af428de468ed83 (diff) | |
| download | rockbox-4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e.zip rockbox-4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e.tar.gz rockbox-4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e.tar.bz2 rockbox-4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e.tar.xz | |
'make reconf' is now a first stab at re-running configure with the same setup
that generated the existing Makefile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19739 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/configure')
| -rwxr-xr-x | tools/configure | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure index 459dd9c..fc12c31 100755 --- a/tools/configure +++ b/tools/configure @@ -2061,13 +2061,13 @@ case $modelname in ;; esac if [ "1" != `parse_args --type` ]; then - option=`parse_args --type`; + btype=`parse_args --type`; else echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)" - option=`input`; + btype=`input`; fi - case $option in + case $btype in [Ii]) appsdir='\$(ROOTDIR)/bootloader' apps="bootloader" @@ -2150,6 +2150,7 @@ fi exit 8 fi debug="" + btype="N" # set it explicitly since RET only gets here as well echo "Normal build selected" ;; @@ -2388,6 +2389,16 @@ if test "$apps" = "apps"; then buildlangs="langs" fi +#### Fix the cmdline ### +if test -n "$ccache"; then + cmdline="--ccache" +fi + +cmdline="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype" + + +### end of cmdline + sed > Makefile \ -e "s,@ROOTDIR@,${rootdir},g" \ -e "s,@DEBUG@,${debug},g" \ @@ -2450,6 +2461,7 @@ sed > Makefile \ -e "s,@LANGS@,${buildlangs},g" \ -e "s,@USE_ELF@,${USE_ELF},g" \ -e "s,@RBDIR@,${rbdir},g" \ + -e "s,@CMDLINE@,$cmdline,g" \ <<EOF ## Automatically generated. http://www.rockbox.org/ @@ -2514,6 +2526,8 @@ export ENCODER=@ENCODER@ export USE_ELF=@USE_ELF@ export RBDIR=@RBDIR@ +CONFIGURE_OPTIONS=@CMDLINE@ + include \$(TOOLSDIR)/root.make EOF |