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/Makefile | |
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/Makefile')
-rw-r--r-- | target/linux/ramips/image/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index d72d937ab8..c0890e6bb3 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -12,7 +12,7 @@ DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK DEVICE_VARS += SERCOMM_HWNAME SERCOMM_HWID SERCOMM_HWVER SERCOMM_SWVER -DEVICE_VARS += JCG_MAXSIZE +DEVICE_VARS += SERCOMM_PAD JCG_MAXSIZE loadaddr-y := 0x80000000 loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000 @@ -176,6 +176,18 @@ define Device/Default IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size endef +define Device/netgear_sercomm_nor + 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 $$$$(SERCOMM_PAD) | $$(IMAGE/default) | \ + pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \ + zip $$$$(SERCOMM_HWNAME).bin | sercom-seal +endef + define Device/seama SEAMA_MTDBLOCK := 2 IMAGES += factory.bin |