mbox series

[0/5] Make Build/uImage more flexible

Message ID 20201104092117.86343-1-sander@svanheule.net
Headers show
Series Make Build/uImage more flexible | expand


Sander Vanheule Nov. 4, 2020, 9:21 a.m. UTC
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

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:

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(-)