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