openwrt/include
Sander Vanheule c20b8d690b 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-25 15:55:26 +01:00
..
site
autotools.mk
cmake.mk build: support cmake verbose for host builds 2020-11-14 14:48:30 +01:00
debug.mk
depends.mk
device_table.txt
download.mk build: prevent excessive re-evaluation of PKG_VERSION 2020-10-16 21:39:10 +02:00
feeds.mk build: FeedSourcesAppend add kmod feed to snapshot 2020-10-30 00:39:09 +00:00
hardened-ld-pie.specs
hardening.mk
host-build.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
image-commands.mk build: add UIMAGE_MAGIC to device variables 2020-11-25 15:55:26 +01:00
image.mk build: add UIMAGE_MAGIC to device variables 2020-11-25 15:55:26 +01:00
kernel-build.mk build: create $(PKG_SYMVERS_DIR) if non-existent 2020-11-19 18:52:15 +01:00
kernel-defaults.mk
kernel-version.mk kernel: bump 5.4 to 5.4.79 2020-11-24 15:36:59 +01:00
kernel.mk build: create $(PKG_SYMVERS_DIR) if non-existent 2020-11-19 18:52:15 +01:00
netfilter.mk netfilter: Add queue support for nftables 2020-11-12 18:19:44 +01:00
nls.mk
package-bin.mk
package-defaults.mk build: allow file modes per binary package 2020-09-09 14:13:59 +01:00
package-dumpinfo.mk
package-ipkg.mk build: allow file modes per binary package 2020-09-09 14:13:59 +01:00
package-seccomp.mk
package.mk build: fix extreme build system slowdown caused by SOURCE_DATE_EPOCH changes 2020-09-05 11:26:57 +02:00
prereq-build.mk prereq-build: add python 3.9 support 2020-11-24 23:40:39 -10:00
prereq.mk
quilt.mk
rootfs.mk treewide: replace which with command -v 2020-08-12 11:08:05 +02:00
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk build: filter out more autogenerated kernel config options 2020-11-13 13:18:20 +01:00
toolchain-build.mk
toplevel.mk build: detect broken make version on macOS 2020-11-14 14:48:30 +01:00
u-boot.mk
uclibc++.mk
unpack.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
verbose.mk
version.mk build: switch VERSION_REPO to HTTPS 2020-08-31 11:26:10 +01:00