projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: Add support for mt7621 to lzma-loader
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
image
/
lzma-loader
/
src
/
loader.c
diff --git
a/target/linux/ramips/image/lzma-loader/src/loader.c
b/target/linux/ramips/image/lzma-loader/src/loader.c
index 1d42bfa2f712d5f3d2018af49712509f8c45266a..c73b60b3514aafa7f877e63b03a257319519309b 100644
(file)
--- 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 <stddef.h>
#include <stdint.h>
+#include <sys/types.h>
#include "config.h"
#include "cache.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
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[] = {
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
static const char *kernel_argv[] = {
+ NULL,
kernel_cmdline,
NULL,
};
kernel_cmdline,
NULL,
};