2005-02-19 09:46:01 +02:00
|
|
|
# Default target skeleton stuff, may be overridden
|
2005-02-19 15:00:30 +02:00
|
|
|
DIST=openwrt
|
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-19 15:00:30 +02:00
|
|
|
$(DIST)-linux.trx: openwrt-trx
|
|
|
|
PATH=$(TARGET_PATH) trx -o $(DIST)-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS)
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-19 15:00:30 +02:00
|
|
|
$(DIST)-gs-code.bin: openwrt-addpattern $(DIST)-linux.trx
|
|
|
|
PATH=$(TARGET_PATH) addpattern -2 -i $(DIST)-linux.trx -o $(DIST)-gs-code.bin -g
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-19 15:00:30 +02:00
|
|
|
$(DIST)-g-code.bin: $(DIST)-gs-code.bin
|
|
|
|
sed -e "1s,^W54S,W54G," < $(DIST)-gs-code.bin > $(DIST)-g-code.bin
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-19 15:00:30 +02:00
|
|
|
openwrt-image: openwrt $(DIST)-g-code.bin
|
2005-02-19 09:46:01 +02:00
|
|
|
|
2005-02-19 15:00:30 +02:00
|
|
|
$(DIST)-image-clean:
|
|
|
|
@-rm $(DIST)-* 2>/dev/null
|