From f08f754993d5e9a1952400528ce5405910d1d1a4 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 6 Jul 2017 18:10:22 +0200 Subject: build: move mktplinkfw-combined command to image-commands.mk We will need "mktplinkfw-combined" command also in the "ramips" target for new MediaTek based TP-Link devices, with "safeloader" image type. Also, rename the command to "tplink-v1-header", use "VERSION_DIST" variable instead of "OpenWrt" and allow passing additional parameters. Signed-off-by: Piotr Dymacz --- include/image-commands.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/image-commands.mk b/include/image-commands.mk index ce84e3f11c..2aac8fb15d 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -233,6 +233,15 @@ define Build/sysupgrade-tar $@ endef +define Build/tplink-v1-header + $(STAGING_DIR_HOST)/bin/mktplinkfw \ + -c -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -L $(KERNEL_LOADADDR) \ + -E $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -m $(TPLINK_HEADER_VERSION) -N "$(VERSION_DIST)" -V $(REVISION) \ + -k $@ -o $@.new $(1) + @mv $@.new $@ +endef + define Build/tplink-v2-header $(STAGING_DIR_HOST)/bin/mktplinkfw2 \ -c -V "ver. 2.0" -B $(TPLINK_BOARD_ID) $(1) -k $@ -o $@.new -- cgit v1.2.3