diff options
author | Tobias Schramm <tobleminer@gmail.com> | 2018-05-03 16:27:10 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-06-21 06:54:42 +0200 |
commit | 4fa85a625f33c4602511dc5b2ee406329bf289c2 (patch) | |
tree | a28624cd04306a658a29f972e5760154fee2fee1 /target/linux/ramips/image/lzma-loader/src/loader.c | |
parent | feb0a0bf22143326b3b3515ab0bb4682194dc75a (diff) | |
download | upstream-4fa85a625f33c4602511dc5b2ee406329bf289c2.tar.gz upstream-4fa85a625f33c4602511dc5b2ee406329bf289c2.tar.bz2 upstream-4fa85a625f33c4602511dc5b2ee406329bf289c2.zip |
ramips: Add support for mt7621 to lzma-loader
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
Diffstat (limited to 'target/linux/ramips/image/lzma-loader/src/loader.c')
-rw-r--r-- | target/linux/ramips/image/lzma-loader/src/loader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ramips/image/lzma-loader/src/loader.c b/target/linux/ramips/image/lzma-loader/src/loader.c index 1d42bfa2f7..c73b60b351 100644 --- a/target/linux/ramips/image/lzma-loader/src/loader.c +++ b/target/linux/ramips/image/lzma-loader/src/loader.c @@ -21,6 +21,7 @@ #include <stddef.h> #include <stdint.h> +#include <sys/types.h> #include "config.h" #include "cache.h" @@ -73,9 +74,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, }; |