|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
# Default target skeleton stuff, may be overridden
|
|
|
|
|
EXTRAVERSION=
|
|
|
|
|
EXTRAVERSION:=
|
|
|
|
|
XXX:=
|
|
|
|
|
TARGET_SKELETON=target/default/skel.tar.gz
|
|
|
|
|
TARGET_SKEL_DIR=target/default/target_skeleton
|
|
|
|
|
|
|
|
|
@ -10,19 +11,18 @@ include target/jffs2/blocksize.mk |
|
|
|
|
JFFS2FLAGS+=-a $(JFFS2_BLOCK_SIZE)
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openwrt-linux.trx: openwrt-trx |
|
|
|
|
PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \
|
|
|
|
|
@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$(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$(EXTRAVERSION).bin > openwrt-g-code$(EXTRAVERSION).bin
|
|
|
|
|
openwrt-code.bin: openwrt-addpattern openwrt-linux.trx |
|
|
|
|
@PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux$(EXTRAVERSION).trx \
|
|
|
|
|
-o openwrt-$(TAG)-code$(EXTRAVERSION).bin -g
|
|
|
|
|
@sed -i -e "1s,^W54S,$(TAG)," openwrt-$(TAG)-code$(EXTRAVERSION).bin
|
|
|
|
|
|
|
|
|
|
openwrt-image: openwrt openwrt-g-code.bin |
|
|
|
|
ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y) |
|
|
|
|
else |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
openwrt-image-clean: |
|
|
|
|
@-rm openwrt-* 2>/dev/null
|
|
|
|
|