Changeset 2612

Show
Ignore:
Timestamp:
05/22/07 18:07:47 (2 years ago)
Author:
tg
Message:

after menuconfig, if certain options have changed, advise the user to
run make clean; ok wbx@ tha@

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/mk/build.mk

    r2601 r2612  
    1818                        snapshotconfig \ 
    1919                        tags 
     20 
     21MAKECLEAN_SYMBOLS=      FWRT_IPV6 
     22POSTCONFIG=             @\ 
     23        for symbol in ${MAKECLEAN_SYMBOLS}; do \ 
     24                newval=$$(grep -e "^$$symbol=" -e "^\# $$symbol " .config); \ 
     25                oldval=$$(cat .cfg/"$$symbol"); \ 
     26                [[ $$newval = $$oldval ]] && continue; \ 
     27                echo >&2 "WARNING: Options have changed, run 'make" \ 
     28                    "clean' first!"; \ 
     29                break; \ 
     30        done 
    2031 
    2132# Pull in the user's configuration file 
     
    121132        -touch .config 
    122133        $(CONFIG)/mconf $(CONFIG_CONFIG_IN) 
     134        ${POSTCONFIG} 
    123135 
    124136config: $(CONFIG)/conf 
    125137        -touch .config 
    126138        $(CONFIG)/conf $(CONFIG_CONFIG_IN) 
     139        ${POSTCONFIG} 
    127140 
    128141oldconfig: $(CONFIG)/conf 
    129142        -touch .config 
    130143        $(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
     144        ${POSTCONFIG} 
    131145 
    132146allnoconfig: $(CONFIG)/conf 
    133147        -touch .config 
    134148        $(CONFIG)/conf -n $(CONFIG_CONFIG_IN) 
     149        ${POSTCONFIG} 
    135150 
    136151# add patterns for config symbols to always restore from default here 
     
    140155        ${MBSH} scripts/restore-defaultconf.sh $(RESTORE_PATTERNS) 
    141156        $(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
     157        ${POSTCONFIG} 
    142158 
    143159snapshotconfig: $(CONFIG)/conf 
     
    145161        ${MBSH} scripts/restore-defaultconf.sh $(RESTORE_PATTERNS) 
    146162        $(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
     163        ${POSTCONFIG} 
    147164 
    148165tools/install-lbin: