ar71xx: fix lzma-loader kernel command line passing
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
This commit is contained in:
parent
bf82deff70
commit
320aa30609
1 changed files with 2 additions and 1 deletions
|
@ -73,9 +73,10 @@ static unsigned long lzma_outsize;
|
||||||
static unsigned long kernel_la;
|
static unsigned long kernel_la;
|
||||||
|
|
||||||
#ifdef CONFIG_KERNEL_CMDLINE
|
#ifdef CONFIG_KERNEL_CMDLINE
|
||||||
#define kernel_argc 1
|
#define kernel_argc 2
|
||||||
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
|
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
|
||||||
static const char *kernel_argv[] = {
|
static const char *kernel_argv[] = {
|
||||||
|
NULL,
|
||||||
kernel_cmdline,
|
kernel_cmdline,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue