projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ath79: lzma-loader: allow setting custom kernel magic
[openwrt/staging/wigyori.git]
/
target
/
linux
/
ath79
/
image
/
lzma-loader
/
src
/
loader.c
diff --git
a/target/linux/ath79/image/lzma-loader/src/loader.c
b/target/linux/ath79/image/lzma-loader/src/loader.c
index 794c4b6285a7fa0423c22d172828415e6f2be93b..0213e9457423da4c467c1dbb856dc0cf1afbef0e 100644
(file)
--- a/
target/linux/ath79/image/lzma-loader/src/loader.c
+++ b/
target/linux/ath79/image/lzma-loader/src/loader.c
@@
-189,7
+189,11
@@
static void lzma_init_data(void)
p = flash_base + flash_ofs;
magic = get_be32(p);
+#ifdef CONFIG_KERNEL_MAGIC
+ if (magic == CONFIG_KERNEL_MAGIC) {
+#else
if (magic == IH_MAGIC_OKLI) {
+#endif
hdr = (struct image_header *) p;
break;
}