diff options
author | Piotr Dymacz <pepe2k@gmail.com> | 2017-07-06 18:24:37 +0200 |
---|---|---|
committer | Piotr Dymacz <pepe2k@gmail.com> | 2017-07-22 23:29:50 +0200 |
commit | 2ad294677768b0f8b7021aa4d2b9887d187cdcca (patch) | |
tree | 63322ff56682afd2187dd7392eec22d182e60222 /target | |
parent | f08f754993d5e9a1952400528ce5405910d1d1a4 (diff) | |
download | mtk-20170518-2ad294677768b0f8b7021aa4d2b9887d187cdcca.zip mtk-20170518-2ad294677768b0f8b7021aa4d2b9887d187cdcca.tar.gz mtk-20170518-2ad294677768b0f8b7021aa4d2b9887d187cdcca.tar.bz2 |
ar71xx: image: use tplink-v1-header in place of mktplinkfw-kernel
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/image/tp-link.mk | 21 |
1 files 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@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 | \ |