aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image/mt7621.mk
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-03 19:23:50 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-06 16:56:06 +0200
commit3b89849b57a88d0919b6442509131f045af580a8 (patch)
treed43122d4915b070d11addc75602d29aef66e9ef2 /target/linux/ramips/image/mt7621.mk
parente0e607f0d000e62c6af8d822d7c3f57c2a582136 (diff)
downloadupstream-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/mt7621.mk')
-rw-r--r--target/linux/ramips/image/mt7621.mk16
1 files changed, 5 insertions, 11 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index f13be3d3bc..d296e389a4 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -827,22 +827,16 @@ endef
TARGET_DEVICES += netgear_wac124
define Device/netgear_wndr3700-v5
+ $(Device/netgear_sercomm_nor)
$(Device/uimage-lzma-loader)
- BLOCKSIZE := 64k
IMAGE_SIZE := 15232k
+ DEVICE_MODEL := WNDR3700
+ DEVICE_VARIANT := v5
+ SERCOMM_HWNAME := WNDR3700v5
SERCOMM_HWID := AYB
SERCOMM_HWVER := A001
SERCOMM_SWVER := 0x1054
- 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 320k | $$(IMAGE/default) | \
- pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip WNDR3700v5.bin | \
- sercom-seal
- DEVICE_VENDOR := NETGEAR
- DEVICE_MODEL := WNDR3700
- DEVICE_VARIANT := v5
+ SERCOMM_PAD := 320k
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
kmod-usb-ledtrig-usbport wpad-basic
SUPPORTED_DEVICES += wndr3700v5