Changeset cfaac4d in freewrt


Ignore:
Timestamp:
May 22, 2007, 6:07:47 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
5ee7cbd8
Parents:
b942644
Message:

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

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2612 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mk/build.mk

    rb942644 rcfaac4d  
    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:
Note: See TracChangeset for help on using the changeset viewer.