Files
immortalwrt/include
Sander Vanheule 0aae5aa54e build: add UIMAGE_MAGIC to device variables
Allow a device recipe to specify a custom UIMAGE_MAGIC value, as used by
OpenWrt's -M flag for mkimage. This allows to automatically customize
the magic bytes in all calls to Build/uImage for this device, similar to
the behaviour of UIMAGE_NAME. Since the -M argument is inserted before
the user arguments, it can be overriden.

The following example would use 0x87654321 for the KERNEL image, but
0x12345678 for the KERNEL_INITRAMFS image:

  define Device/MyDevice
    UIMAGE_MAGIC := 0x87654321
    KERNEL := ... | uImage lzma
    KERNEL_INITRAMFS := ... | uImage lzma -M 0x12345678
    ...
  endef

Fixes: df8e6be59a ("rtl838x: add new architecture")
[UIMAGE_MAGIC was not declared as a device variable]

Signed-off-by: Sander Vanheule <sander@svanheule.net>
[rebase, improve formatting of "Fixes"]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-11-28 18:53:06 +08:00
..
2019-08-16 15:09:42 +08:00
2019-08-16 15:09:42 +08:00
2019-09-30 13:52:50 +08:00
2019-09-30 13:52:50 +08:00
2020-11-24 23:28:30 +08:00
2019-08-16 15:09:42 +08:00
2019-08-16 15:09:42 +08:00
2019-08-16 15:09:42 +08:00
2020-02-21 02:41:00 +08:00
2020-02-21 02:41:00 +08:00
2019-08-16 15:09:42 +08:00
2020-02-21 02:41:00 +08:00
2019-08-16 15:09:42 +08:00
2020-11-14 13:55:18 +08:00
2020-04-27 08:55:20 +08:00
2019-08-16 15:09:42 +08:00
2020-09-01 17:33:44 +08:00