Changeset 529

Show
Ignore:
Timestamp:
08/24/06 14:39:50 (2 years ago)
Author:
wbx
Message:

add first hackish parts of a snapshot target

Files:

Legend:

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

    r520 r529  
    7171autobuild: .prereq_done 
    7272        @${GMAKE_INV} autobuild 
     73 
     74snapshots: .prereq_done 
     75        @${GMAKE_INV} snapshots 
    7376 
    7477package_index: .prereq_done 
  • trunk/freewrt/build.mk

    r516 r529  
    1111CONFIG = package/config 
    1212 
    13 noconfig_targets := menuconfig config tags autobuild 
     13noconfig_targets := menuconfig config tags autobuild snapshots 
    1414 
    1515# Pull in the user's configuration file 
     
    101101        @echo "Start the build with \"make\" or with \"make v\" to be verbose" 
    102102 
     103$(SNAPSHOT_DIR): 
     104        @mkdir -p snapshots 
     105 
    103106# configuration 
    104107# --------------------------------------------------------------------------- 
     
    127130        @cat .busybox-config .config.autobuild > .config 
    128131 
     132snapshots: $(CONFIG)/conf $(SNAPSHOT_DIR) 
     133        @-touch .config  
     134        @$(CONFIG)/conf -d $(CONFIG_CONFIG_IN)  
     135        @for i in `awk '/^config FWRT_LINUX/ { print $$2 }' target/Config.in`; \ 
     136        do \ 
     137                $(TOPDIR)/lbin/sed -i -e s#FWRT_LINUX_MODEL#$$i# .config && \ 
     138                $(MAKE) && \ 
     139                cp bin/freewrt-* snapshots/ && \ 
     140                $(MAKE) clean; \ 
     141        done 
     142 
    129143tools/install-lbin: 
    130144        $(MAKE) -C tools install-lbin