diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-25 17:58:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-25 17:58:10 +0000 |
commit | a0f15a194ba95f6544168edba3306fa00d0a84e2 (patch) | |
tree | 8f08c2d5d2a515d85f9d738a09cb66bc97264ad7 | |
parent | 0b22d57e91cf533c44f29307aab3ce967ce836aa (diff) | |
download | master-187ad058-a0f15a194ba95f6544168edba3306fa00d0a84e2.tar.gz master-187ad058-a0f15a194ba95f6544168edba3306fa00d0a84e2.tar.bz2 master-187ad058-a0f15a194ba95f6544168edba3306fa00d0a84e2.zip |
ar71xx/image: add tplink device template for new building code
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44999 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 4023b1af92..040d1a9772 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -132,6 +132,28 @@ endef TARGET_DEVICES += wndr3700 wndr3700v2 wndr3800 wndr3800ch wndrmac wndrmacv2 +define Device/tplink + TPLINK_HWREV := 0x1 + KERNEL := kernel-bin | patch-cmdline | lzma + KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw initramfs + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade + IMAGE/factory.bin := append-rootfs | mktplinkfw factory +endef + +define Device/tplink-4mlzma +$(Device/tplink) + TPLINK_FLASHLAYOUT := 4Mlzma + IMAGE_SIZE := 3904k +endef + +define Device/tplink-8mlzma +$(Device/tplink) + TPLINK_FLASHLAYOUT := 8Mlzma + IMAGE_SIZE := 8000k +endef + + rootfs_type=$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1))) # $(1): rootfs type. |