Skip to content
Snippets Groups Projects
Commit aa970cd5 authored by Tim Niemeyer's avatar Tim Niemeyer
Browse files

openwrt: backport lede patch for tp-link images


Signed-off-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
Tested-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarTobias Klaus <tk+ff@meskal.net>
parent 7f82f74d
No related branches found
No related tags found
No related merge requests found
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 \
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment