ar71xx/image: add template tplink-16mlzma
[15.05/openwrt.git] / target / linux / ar71xx / image / Makefile
index 9459683..234e1b6 100644 (file)
@@ -57,8 +57,8 @@ define Build/mktplinkfw
                -r $@ \
                -o $@.new \
                -a $(call rootfs_align,$(FILESYSTEM)) \
-               $(if $(findstring sysupgrade,$1),-j -X 0x40000) \
-               $(if $(findstring factory,$1),-j -X 0x40000 -s) \
+               $(if $(findstring sysupgrade,$1),-j -X 0x40000 -s) \
+               $(if $(findstring factory,$1),-j -X 0x40000) \
                $(if $(findstring initramfs,$1),-s -c)
        @mv $@.new $@
 endef
@@ -153,7 +153,13 @@ endef
 define Device/tplink-8mlzma
 $(Device/tplink)
   TPLINK_FLASHLAYOUT := 8Mlzma
-  IMAGE_SIZE := 8000k
+  IMAGE_SIZE := 7936k
+endef
+
+define Device/tplink-16mlzma
+$(Device/tplink)
+  TPLINK_FLASHLAYOUT := 16Mlzma
+  IMAGE_SIZE := 15872k
 endef
 
 define Device/tl-wdr4300-v1