2005-02-19 09:46:01 +02:00
|
|
|
# Default target skeleton stuff, may be overridden
|
2005-02-21 08:03:54 +02:00
|
|
|
EXTRAVERSION=
|
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)
|
|
|
|
JFFS2FLAGS+=-a 131072
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-02-21 08:03:54 +02:00
|
|
|
openwrt-linux.trx: openwrt-trx
|
|
|
|
PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \
|
|
|
|
$(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS)
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-21 08:03:54 +02:00
|
|
|
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
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-21 08:03:54 +02:00
|
|
|
openwrt-g-code.bin: openwrt-gs-code.bin
|
|
|
|
sed -e "1s,^W54S,W54G," < openwrt-gs-code$(EXTRAVERSION).bin > openwrt-g-code$(EXTRAVERSION).bin
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-21 08:03:54 +02:00
|
|
|
openwrt-image: openwrt openwrt-g-code.bin
|
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
|