diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-03 19:23:50 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-06 16:56:06 +0200 |
commit | 3b89849b57a88d0919b6442509131f045af580a8 (patch) | |
tree | d43122d4915b070d11addc75602d29aef66e9ef2 /target/linux/ramips/image/mt76x8.mk | |
parent | e0e607f0d000e62c6af8d822d7c3f57c2a582136 (diff) | |
download | upstream-3b89849b57a88d0919b6442509131f045af580a8.tar.gz upstream-3b89849b57a88d0919b6442509131f045af580a8.tar.bz2 upstream-3b89849b57a88d0919b6442509131f045af580a8.zip |
ramips: add common definition netgear_sercomm_nor
Like NAND-based devices, SPI-NOR based Netgear devices also share
a common setup for their images. This creates a common defition
for them in image/Makefile, so it can be reused across subtargets.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/image/mt76x8.mk')
-rw-r--r-- | target/linux/ramips/image/mt76x8.mk | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index 669077c1d3..908e2df529 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -216,20 +216,8 @@ define Device/mercury_mac1200r-v2 endef TARGET_DEVICES += mercury_mac1200r-v2 -define Device/netgear_r6xxx - BLOCKSIZE := 64k - DEVICE_VENDOR := NETGEAR - IMAGES += factory.img - IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \ - pad-rootfs - IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size - IMAGE/factory.img := pad-extra 576k | $$(IMAGE/default) | \ - pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \ - zip $$$$(SERCOMM_HWNAME).bin | sercom-seal -endef - define Device/netgear_r6020 - $(Device/netgear_r6xxx) + $(Device/netgear_sercomm_nor) IMAGE_SIZE := 7104k DEVICE_MODEL := R6020 DEVICE_PACKAGES := kmod-mt76x2 @@ -237,11 +225,12 @@ define Device/netgear_r6020 SERCOMM_HWID := CFR SERCOMM_HWVER := A001 SERCOMM_SWVER := 0x0040 + SERCOMM_PAD := 576k endef TARGET_DEVICES += netgear_r6020 define Device/netgear_r6080 - $(Device/netgear_r6xxx) + $(Device/netgear_sercomm_nor) IMAGE_SIZE := 7552k DEVICE_MODEL := R6080 DEVICE_PACKAGES := kmod-mt76x2 @@ -249,11 +238,12 @@ define Device/netgear_r6080 SERCOMM_HWID := CFR SERCOMM_HWVER := A001 SERCOMM_SWVER := 0x0040 + SERCOMM_PAD := 576k endef TARGET_DEVICES += netgear_r6080 define Device/netgear_r6120 - $(Device/netgear_r6xxx) + $(Device/netgear_sercomm_nor) IMAGE_SIZE := 15744k DEVICE_MODEL := R6120 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci @@ -261,6 +251,7 @@ define Device/netgear_r6120 SERCOMM_HWID := CGQ SERCOMM_HWVER := A001 SERCOMM_SWVER := 0x0040 + SERCOMM_PAD := 576k endef TARGET_DEVICES += netgear_r6120 |