diff options
author | Jan Hoffmann <jan@3e8.eu> | 2019-05-15 19:11:01 +0000 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-05-18 16:44:41 +0200 |
commit | 2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8 (patch) | |
tree | f2888a10b7fcf13e16805b437f5f67b4d8ac4262 /target/linux/ramips/image/Makefile | |
parent | d4b89b7170ab82530cfaf21e5f00bee7088432e2 (diff) | |
download | upstream-2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8.tar.gz upstream-2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8.tar.bz2 upstream-2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8.zip |
ramips: add factory image for WNDR3700v5
This uses the existing rules for Sercomm factory images and moves them
to the ramips image Makefile, so they can be used in all subtargets.
The new factory image for WNDR3700v5 can be flashed using nmrpflash.
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'target/linux/ramips/image/Makefile')
-rw-r--r-- | target/linux/ramips/image/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 6eef596caf..145dbf4ec5 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -10,6 +10,7 @@ include $(INCLUDE_DIR)/image.mk DEVICE_VARS += DTS IMAGE_SIZE 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_HWID SERCOMM_HWVER SERCOMM_SWVER loadaddr-y := 0x80000000 loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000 @@ -132,6 +133,19 @@ define Build/zyimage $(STAGING_DIR_HOST)/bin/zyimage $(1) $@ endef +define Build/sercom-seal + $(STAGING_DIR_HOST)/bin/mksercommfw \ + -i $@ \ + -b $(SERCOMM_HWID) \ + -r $(SERCOMM_HWVER) \ + -v $(SERCOMM_SWVER) \ + $(1) +endef + +define Build/sercom-footer + $(call Build/sercom-seal,-f) +endef + ralink_default_fw_size_4M=3866624 ralink_default_fw_size_8M=8060928 ralink_default_fw_size_16M=16121856 |