forked from freifunk-franken/firmware
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
diff --git target/linux/ar71xx/image/Makefile target/linux/ar71xx/image/Makefile
|
|
index a8073f2..5f0df54 100644
|
|
--- target/linux/ar71xx/image/Makefile
|
|
+++ target/linux/ar71xx/image/Makefile
|
|
@@ -58,13 +58,14 @@ define Build/mktplinkfw
|
|
-o $@.new \
|
|
-j -X 0x40000 \
|
|
-a $(call rootfs_align,$(FILESYSTEM)) \
|
|
- $(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@
|
|
+ $(wordlist 2,$(words $(1)),$(1)) \
|
|
+ $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
|
|
endef
|
|
|
|
# -c combined image
|
|
define Build/mktplinkfw-initramfs
|
|
$(STAGING_DIR_HOST)/bin/mktplinkfw \
|
|
- -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \
|
|
+ -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $(1) \
|
|
-k $@ \
|
|
-o $@.new \
|
|
-s -S \
|
|
@@ -589,6 +598,9 @@ define Device/tl-wr841n-v11
|
|
BOARDNAME := TL-WR841N-v11
|
|
DEVICE_PROFILE := TLWR841
|
|
TPLINK_HWID := 0x08410011
|
|
+ IMAGES += factory-us.bin factory-eu.bin
|
|
+ IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
|
|
+ IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
|
|
endef
|
|
|
|
define Device/tl-wr842n-v2
|