[source] ar71xx: image: use tplink-v1-header in place of mktplinkfw-kernel

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 22 15:22:04 PDT 2017


pepe2k pushed a commit to source.git, branch master:
https://git.lede-project.org/2ad294677768b0f8b7021aa4d2b9887d187cdcca

commit 2ad294677768b0f8b7021aa4d2b9887d187cdcca
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Thu Jul 6 18:24:37 2017 +0200

    ar71xx: image: use tplink-v1-header in place of mktplinkfw-kernel
    
    Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
 target/linux/ar71xx/image/tp-link.mk | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk
index 9154cc5..35d07ee 100644
--- a/target/linux/ar71xx/image/tp-link.mk
+++ b/target/linux/ar71xx/image/tp-link.mk
@@ -35,16 +35,6 @@ define Build/mktplinkfw
 		$(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
 endef
 
-# add RE450 and similar header to the kernel image
-define Build/mktplinkfw-kernel
-	$(STAGING_DIR_HOST)/bin/mktplinkfw-kernel \
-		-H $(TPLINK_HWID) -N OpenWrt -V $(REVISION) \
-		-L $(KERNEL_LOADADDR) -E $(KERNEL_LOADADDR) \
-		-k $@ \
-		-o $@.new
-	@mv $@.new $@
-endef
-
 define Build/uImageArcher
 	mkimage -A $(LINUX_KARCH) \
 		-O linux -T kernel \
@@ -274,7 +264,9 @@ define Device/re450-v1
   DEVICE_PROFILE := RE450
   LOADER_TYPE := elf
   TPLINK_HWID := 0x0
-  KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
+  TPLINK_HWREV := 0
+  TPLINK_HEADER_VERSION := 1
+  KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
   IMAGES := sysupgrade.bin factory.bin
   IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
   IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
@@ -501,7 +493,8 @@ endef
 
 define Device/tl-wa85xre
   $(Device/tplink)
-  KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
+  TPLINK_HWREV := 0
+  KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
   IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
   IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
   MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k at 0x20000(firmware)
@@ -1025,9 +1018,11 @@ define Device/tl-wr902ac-v1
   DEVICE_PROFILE := TLWR902
   TPLINK_BOARD_ID := TL-WR902AC-V1
   TPLINK_HWID := 0x0
+  TPLINK_HWREV := 0
+  TPLINK_HEADER_VERSION := 1
   SUPPORTED_DEVICES := tl-wr902ac-v1
   IMAGE_SIZE := 7360k
-  KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
+  KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
   IMAGES += factory.bin
   IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
   IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \



More information about the lede-commits mailing list