Changeset 2631

Show
Ignore:
Timestamp:
05/23/07 16:23:29 (2 years ago)
Author:
tg
Message:

optimise

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Makefile

    r2629 r2631  
    8181 
    8282config: .prereq_done 
    83         @${GMAKE_INV} config 
     83        @${GMAKE_INV} _config W= 
    8484 
    8585oldconfig: .prereq_done 
    86         @${GMAKE_INV} oldconfig W=-o 
     86        @${GMAKE_INV} _config W=-o 
    8787 
    8888wconfig: .prereq_done 
    89         @${GMAKE_INV} oldconfig W=-A 
     89        @${GMAKE_INV} _config W=-A 
    9090 
    9191cleandir: .prereq_done 
     
    106106 
    107107allnoconfig: .prereq_done 
    108         @${GMAKE_INV} allnoconfig 
     108        @${GMAKE_INV} _config W=-n 
    109109 
    110110allmodconfig: .prereq_done 
    111         @${GMAKE_INV} allmodconfig 
     111        @${GMAKE_INV} _mconfig W=-o RCONFIG=Config.in 
    112112 
    113113snapshotconfig: .prereq_done 
    114         @${GMAKE_INV} snapshotconfig 
     114        @${GMAKE_INV} _mconfig W=-o RCONFIG=Config.in.snapshot 
    115115 
    116116package_index: .prereq_done 
  • trunk/freewrt/mk/build.mk

    r2629 r2631  
    131131        ${POSTCONFIG} 
    132132 
    133 config: $(CONFIG)/conf 
    134         -touch .config 
    135         $(CONFIG)/conf $(CONFIG_CONFIG_IN) 
    136         ${POSTCONFIG} 
    137  
    138 oldconfig: $(CONFIG)/conf 
     133_config: $(CONFIG)/conf 
    139134        -touch .config 
    140135        $(CONFIG)/conf ${W} $(CONFIG_CONFIG_IN) 
    141136        ${POSTCONFIG} 
    142137 
    143 allnoconfig: $(CONFIG)/conf 
    144         -touch .config 
    145         $(CONFIG)/conf -n $(CONFIG_CONFIG_IN) 
    146         ${POSTCONFIG} 
    147  
    148138# add patterns for config symbols to always restore from default here 
    149139RESTORE_PATTERNS := BUSYBOX CCACHE FWRT_RUNTIME 
    150 allmodconfig: $(CONFIG)/conf 
    151         $(CONFIG)/conf -m $(CONFIG_CONFIG_IN) 
    152         ${MBSH} scripts/restore-defaultconf.sh $(RESTORE_PATTERNS) 
    153         $(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
    154         ${POSTCONFIG
     140.NOTPARALLEL: _mconfig 
     141_mconfig: ${CONFIG}/conf _mconfig2 _config 
     142_mconfig2: ${CONFIG}/conf 
     143        ${CONFIG}/conf -m ${RCONFIG} 
     144        ${MBSH} scripts/restore-defaultconf.sh ${RESTORE_PATTERNS
    155145 
    156 snapshotconfig: $(CONFIG)/conf 
    157         $(CONFIG)/conf -m Config.in.snapshot 
    158         ${MBSH} scripts/restore-defaultconf.sh $(RESTORE_PATTERNS) 
    159         $(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
    160         ${POSTCONFIG} 
     146allmodconfig: 
     147        ${MAKE} RCONFIG='${CONFIG_CONFIG_IN}' W=-o _mconfig _config 
    161148 
    162149tools/install-lbin: