openwrt/target/linux/ath79/image/lzma-loader/src
Michael Pratt 1b8bd17c2d ath79: lzma-loader: allow setting custom kernel magic
...and max flash offset

The mtdsplit parser was recently refactored
to allow the kernel to have custom image header magic.

Let's also do this for the lzma-loader

For example:
When implemented together,
this allows the kernel to "appear" to be a rootfs
by OEM software in order to write an image
that is actually kernel + rootfs.

At the same time,
it would boot to openwrt normally
by setting the same magic in DTS.

Both of the variables
have a default value that is unchanged
when not defined in the makefiles

This has no effect on the size of the loader
when lzma compressed.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2021-04-08 09:20:59 +02:00
..
ar71xx_regs.h
board.c
cache.c
cache.h
cacheops.h
config.h
cp0regdef.h
head.S ath79: lzma-loader: sync with ar71xx target 2018-06-06 22:25:53 +02:00
loader2.lds
loader.c ath79: lzma-loader: allow setting custom kernel magic 2021-04-08 09:20:59 +02:00
loader.lds ath79: lzma-loader: sync with ar71xx target 2018-06-06 22:25:53 +02:00
lzma-data.lds
LzmaDecode.c
LzmaDecode.h
LzmaTypes.h
Makefile ath79: lzma-loader: allow setting custom kernel magic 2021-04-08 09:20:59 +02:00
printf.c
printf.h