diff options
author | Ludwig Thomeczek <ledesrc@wxorx.net> | 2018-06-12 21:16:40 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-13 08:37:19 +0200 |
commit | e5b802b9c2711316e26402669bee9349f4c6ec65 (patch) | |
tree | 8aaa1a61a9d73f23e33af310e9b83f26fc648bea /include | |
parent | 42dc0e25947a77b02ea18fa0e5fa04382250d5db (diff) | |
download | upstream-e5b802b9c2711316e26402669bee9349f4c6ec65.tar.gz upstream-e5b802b9c2711316e26402669bee9349f4c6ec65.tar.bz2 upstream-e5b802b9c2711316e26402669bee9349f4c6ec65.zip |
firmware-utils: add sercomm/netgear tool
This adds a tool to generate a firmware file accepted
by Netgear or sercomm devices.
They use a zip-packed rootfs with header and a custom
checksum. The generated Image can be flashed via the
nmrpflash tool or the webinterface of the router.
Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/image-commands.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index 05c2300886..3cc5dc21e1 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -123,6 +123,16 @@ define Build/tplink-safeloader $(if $(findstring sysupgrade,$(word 1,$(1))),-S) && mv $@.new $@ || rm -f $@ endef +define Build/mksercommfw + -$(STAGING_DIR_HOST)/bin/mksercommfw \ + $@ \ + $(KERNEL_OFFSET) \ + $(HWID) \ + $(HWVER) \ + $(SWVER) +endef + + define Build/append-dtb cat $(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb >> $@ endef |