build: add mkrasimage
authorDavid Bauer <mail@david-bauer.net>
Wed, 22 Aug 2018 15:30:44 +0000 (17:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:47:50 +0000 (17:47 +0100)
commitfa9deba35a404dae67992b61f3b4eef7f050d33d
treedab1d03651d56be7993f6c22604b67d478b7cc09
parent9a57430bc05de0e77e2f12b843bfc0f4db6c8c82
build: add mkrasimage

The current make-ras.sh image generation script for the ZyXEL NBG6617
has portability issues with bash. Because of this, factory images are
currently not built correctly by the OpenWRT buildbots.

This commit replaces the make-ras.sh by C-written mkrasimage.

The new mkrasimage is also compatible with other ZyXEL devices using
the ras image-format.
This is not tested with the NBG6616 but it correctly builds the
header for ZyXEL factory image.

Signed-off-by: David Bauer <mail@david-bauer.net>
(backported from 8e9a59a6b924469c0061d4bd945ae0c6dbfdecfe)
include/image-commands.mk
scripts/make-ras.sh [deleted file]
target/linux/ar71xx/image/generic.mk
target/linux/ipq40xx/image/Makefile
target/linux/ipq806x/image/Makefile
tools/firmware-utils/Makefile
tools/firmware-utils/src/mkrasimage.c [new file with mode: 0644]