2005-02-19 09:46:01 +02:00
|
|
|
# Default target skeleton stuff, may be overridden
|
2005-03-04 06:35:15 +02:00
|
|
|
EXTRAVERSION:=
|
|
|
|
XXX:=
|
2005-02-19 09:46:01 +02:00
|
|
|
TARGET_SKELETON=target/default/skel.tar.gz
|
|
|
|
TARGET_SKEL_DIR=target/default/target_skeleton
|
|
|
|
|
|
|
|
include target/device/Makefile.in
|
|
|
|
|
2005-02-21 05:47:31 +02:00
|
|
|
ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
|
2005-03-03 04:44:10 +02:00
|
|
|
include target/jffs2/blocksize.mk
|
|
|
|
JFFS2FLAGS+=-a $(JFFS2_BLOCK_SIZE)
|
2005-02-21 05:47:31 +02:00
|
|
|
endif
|
|
|
|
|
2005-02-21 08:03:54 +02:00
|
|
|
openwrt-linux.trx: openwrt-trx
|
2005-03-04 06:35:15 +02:00
|
|
|
@PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \
|
2005-02-21 08:03:54 +02:00
|
|
|
$(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS)
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-03-04 06:35:15 +02:00
|
|
|
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
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-03-04 06:35:15 +02:00
|
|
|
ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
|
|
|
|
else
|
|
|
|
endif
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-21 08:03:54 +02:00
|
|
|
openwrt-image-clean:
|
|
|
|
@-rm openwrt-* 2>/dev/null
|
|
|
|
|
|
|
|
openwrt-image-dirclean: openwrt-dirclean
|