[PATCH 0/5] Make Build/uImage more flexible
Sander Vanheule
sander at svanheule.net
Wed Nov 4 04:21:12 EST 2020
Some devices use custom mkimage calls that differ only slightly from
Build/uImage. Other devices use the argument to uImage to inject an
extra argument to mkimage.
This set of patches aims to make adding or overriding mkimage arguments
more reliable, while maintaining backwards compatiblity with the current
uImage. Furthermore, a new global device variable UIMAGE_MAGIC is
introduced to allow easy device-wide customisation of the magic bytes in
the uimage file header.
These changes allow custom mkimage calls for ramips/mt7621,
ath79/netgear, and rtl838x to be replaced by calls to the standard
Build/uImage.
The patches
"build: uImage: allow override of default arguments",
"build: add UIMAGE_MAGIC to device variables", and
"rtl83xx: drop custom mkimage build function"
aim to be a better version for a part of the changes I orginally
proposed in:
https://patchwork.ozlabs.org/project/openwrt/patch/20200929162006.236206-1-sander@svanheule.net/
Sander Vanheule (5):
build: uImage: allow override of default arguments
ramips: mt7621: drop custom uImage function
build: add UIMAGE_MAGIC to device variables
ath79: netgear: trim down uImage customisations
rtl83xx: drop custom mkimage build function
include/image-commands.mk | 5 ++--
include/image.mk | 4 ++-
target/linux/ath79/image/common-netgear.mk | 14 ++++------
target/linux/ath79/image/generic.mk | 15 +++++------
target/linux/ath79/image/nand.mk | 18 +++++--------
target/linux/ath79/image/tiny-netgear.mk | 8 +++---
target/linux/ramips/image/mt7621.mk | 31 +++++++---------------
target/linux/rtl838x/image/Makefile | 13 +--------
8 files changed, 40 insertions(+), 68 deletions(-)
--
2.28.0
More information about the openwrt-devel
mailing list