X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/90ce6619a3cb1ac545dd6a30a2c5c10a872adca8..130f7163eba55d05ade65f43f70b05edb6aa7ee5:/target/Makefile.in?ds=sidebyside diff --git a/target/Makefile.in b/target/Makefile.in index 2d23d8336..15cf6bded 100644 --- a/target/Makefile.in +++ b/target/Makefile.in @@ -1,17 +1,29 @@ # Default target skeleton stuff, may be overridden +EXTRAVERSION= TARGET_SKELETON=target/default/skel.tar.gz TARGET_SKEL_DIR=target/default/target_skeleton include target/device/Makefile.in +ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y) +JFFS2FLAGS+=-a 131072 +endif + + openwrt-linux.trx: openwrt-trx - PATH=$(TARGET_PATH) trx -o openwrt-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS) + PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \ + $(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS) openwrt-gs-code.bin: openwrt-addpattern openwrt-linux.trx - PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux.trx -o openwrt-gs-code.bin -g + PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux$(EXTRAVERSION).trx \ + -o openwrt-gs-code$(EXTRAVERSION).bin -g openwrt-g-code.bin: openwrt-gs-code.bin - sed -e "1s,^W54S,W54G," < openwrt-gs-code.bin > openwrt-g-code.bin + sed -e "1s,^W54S,W54G," < openwrt-gs-code$(EXTRAVERSION).bin > openwrt-g-code$(EXTRAVERSION).bin openwrt-image: openwrt openwrt-g-code.bin +openwrt-image-clean: + @-rm openwrt-* 2>/dev/null + +openwrt-image-dirclean: openwrt-dirclean