From 4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 9 Jan 2009 23:15:27 +0000 Subject: '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 --- tools/configure | 20 +++++++++++++++++--- tools/root.make | 4 ++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/tools/configure b/tools/configure index 459dd9c7a9..fc12c312c1 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" \ <