diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-16 10:40:53 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-19 23:19:43 +0100 |
commit | 98fbf2edc021e473ed6554ecbaafffe5e689aa8e (patch) | |
tree | 1fc93e45a236ee593e395d8fa65af1110d83fe04 /target/linux/ath79/image/common-tp-link.mk | |
parent | 69a9a083962dee65d42e9925e03c3f30c3b6074a (diff) | |
download | upstream-98fbf2edc021e473ed6554ecbaafffe5e689aa8e.tar.gz upstream-98fbf2edc021e473ed6554ecbaafffe5e689aa8e.tar.bz2 upstream-98fbf2edc021e473ed6554ecbaafffe5e689aa8e.zip |
ath79: move TPLINK_HWID/_HWREV to parent for tplink-safeloader
Several devices with tplink-safeloader contain default values (0x0)
for TPLINK_HWID and TPLINK_HWREV in their device definitions.
Move those to common tplink-safeloader definition so they do not
have to be repeated each time.
While at it, set default value for tplink-v1 and tplink-v2 as well.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/image/common-tp-link.mk')
-rw-r--r-- | target/linux/ath79/image/common-tp-link.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ath79/image/common-tp-link.mk b/target/linux/ath79/image/common-tp-link.mk index cfc574e4fb..5b27390c1b 100644 --- a/target/linux/ath79/image/common-tp-link.mk +++ b/target/linux/ath79/image/common-tp-link.mk @@ -11,6 +11,7 @@ endef define Device/tplink-v1 DEVICE_VENDOR := TP-Link + TPLINK_HWID := 0x0 TPLINK_HWREV := 0x1 TPLINK_HEADER_VERSION := 1 LOADER_TYPE := gz @@ -23,6 +24,7 @@ endef define Device/tplink-v2 DEVICE_VENDOR := TP-Link + TPLINK_HWID := 0x0 TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x0 TPLINK_HVERSION := 3 @@ -74,9 +76,10 @@ endef define Device/tplink-safeloader $(Device/tplink-v1) + TPLINK_HWREV := 0x0 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header -O IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ - append-metadata | check-size $$$$(IMAGE_SIZE) + append-metadata | check-size $$$$(IMAGE_SIZE) IMAGE/factory.bin := append-rootfs | tplink-safeloader factory endef |