aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-08-02 15:06:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-08-02 15:06:54 +0000
commit320aa306092383e7d2eaa37a2ce6fdca03186069 (patch)
treedd5954935ad7b1936168001762e5145fa0a5b2ef /target/linux/ar71xx/image
parentbf82deff7069599c9f130f5bb0222acd171fd19d (diff)
downloadupstream-320aa306092383e7d2eaa37a2ce6fdca03186069.tar.gz
upstream-320aa306092383e7d2eaa37a2ce6fdca03186069.tar.bz2
upstream-320aa306092383e7d2eaa37a2ce6fdca03186069.zip
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
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r--target/linux/ar71xx/image/lzma-loader/src/loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/image/lzma-loader/src/loader.c b/target/linux/ar71xx/image/lzma-loader/src/loader.c
index 5c674ae5ff..cc73eb1721 100644
--- 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,
};