projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf82def
)
ar71xx: fix lzma-loader kernel command line passing
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 2 Aug 2015 15:06:54 +0000
(15:06 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 2 Aug 2015 15:06:54 +0000
(15:06 +0000)
The generic kernel cmdline parser ignores argv[0], this caused a
regression for all lzma-loader based boards with linux 4.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46544
target/linux/ar71xx/image/lzma-loader/src/loader.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/image/lzma-loader/src/loader.c
b/target/linux/ar71xx/image/lzma-loader/src/loader.c
index 5c674ae5ff5fc5353143dcc2215fdf4ffa65444e..cc73eb1721cbfbf2ad1bb94e8e6d3ab006983c5d 100644
(file)
--- a/
target/linux/ar71xx/image/lzma-loader/src/loader.c
+++ b/
target/linux/ar71xx/image/lzma-loader/src/loader.c
@@
-73,9
+73,10
@@
static unsigned long lzma_outsize;
static unsigned long kernel_la;
#ifdef CONFIG_KERNEL_CMDLINE
-#define kernel_argc
1
+#define kernel_argc
2
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
static const char *kernel_argv[] = {
+ NULL,
kernel_cmdline,
NULL,
};