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.tar.gz rockbox-4ef890ecee474daca9dc9ee13fdaec3c4bdb4d4e.zip |
'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 459dd9c7a9..fc12c312c1 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -2061,13 +2061,13 @@ case $modelname in | |||
2061 | ;; | 2061 | ;; |
2062 | esac | 2062 | esac |
2063 | if [ "1" != `parse_args --type` ]; then | 2063 | if [ "1" != `parse_args --type` ]; then |
2064 | option=`parse_args --type`; | 2064 | btype=`parse_args --type`; |
2065 | else | 2065 | else |
2066 | echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)" | 2066 | echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)" |
2067 | option=`input`; | 2067 | btype=`input`; |
2068 | fi | 2068 | fi |
2069 | 2069 | ||
2070 | case $option in | 2070 | case $btype in |
2071 | [Ii]) | 2071 | [Ii]) |
2072 | appsdir='\$(ROOTDIR)/bootloader' | 2072 | appsdir='\$(ROOTDIR)/bootloader' |
2073 | apps="bootloader" | 2073 | apps="bootloader" |
@@ -2150,6 +2150,7 @@ fi | |||
2150 | exit 8 | 2150 | exit 8 |
2151 | fi | 2151 | fi |
2152 | debug="" | 2152 | debug="" |
2153 | btype="N" # set it explicitly since RET only gets here as well | ||
2153 | echo "Normal build selected" | 2154 | echo "Normal build selected" |
2154 | ;; | 2155 | ;; |
2155 | 2156 | ||
@@ -2388,6 +2389,16 @@ if test "$apps" = "apps"; then | |||
2388 | buildlangs="langs" | 2389 | buildlangs="langs" |
2389 | fi | 2390 | fi |
2390 | 2391 | ||
2392 | #### Fix the cmdline ### | ||
2393 | if test -n "$ccache"; then | ||
2394 | cmdline="--ccache" | ||
2395 | fi | ||
2396 | |||
2397 | cmdline="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype" | ||
2398 | |||
2399 | |||
2400 | ### end of cmdline | ||
2401 | |||
2391 | sed > Makefile \ | 2402 | sed > Makefile \ |
2392 | -e "s,@ROOTDIR@,${rootdir},g" \ | 2403 | -e "s,@ROOTDIR@,${rootdir},g" \ |
2393 | -e "s,@DEBUG@,${debug},g" \ | 2404 | -e "s,@DEBUG@,${debug},g" \ |
@@ -2450,6 +2461,7 @@ sed > Makefile \ | |||
2450 | -e "s,@LANGS@,${buildlangs},g" \ | 2461 | -e "s,@LANGS@,${buildlangs},g" \ |
2451 | -e "s,@USE_ELF@,${USE_ELF},g" \ | 2462 | -e "s,@USE_ELF@,${USE_ELF},g" \ |
2452 | -e "s,@RBDIR@,${rbdir},g" \ | 2463 | -e "s,@RBDIR@,${rbdir},g" \ |
2464 | -e "s,@CMDLINE@,$cmdline,g" \ | ||
2453 | <<EOF | 2465 | <<EOF |
2454 | ## Automatically generated. http://www.rockbox.org/ | 2466 | ## Automatically generated. http://www.rockbox.org/ |
2455 | 2467 | ||
@@ -2514,6 +2526,8 @@ export ENCODER=@ENCODER@ | |||
2514 | export USE_ELF=@USE_ELF@ | 2526 | export USE_ELF=@USE_ELF@ |
2515 | export RBDIR=@RBDIR@ | 2527 | export RBDIR=@RBDIR@ |
2516 | 2528 | ||
2529 | CONFIGURE_OPTIONS=@CMDLINE@ | ||
2530 | |||
2517 | include \$(TOOLSDIR)/root.make | 2531 | include \$(TOOLSDIR)/root.make |
2518 | 2532 | ||
2519 | EOF | 2533 | EOF |