sandbox: get malloc_size from .config
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
ad3c55fbf2
commit
f8ba8d687d
|
@ -8,6 +8,8 @@ else
|
|||
CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))
|
||||
endif
|
||||
|
||||
CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE)
|
||||
|
||||
CFLAGS := -Wall
|
||||
NOSTDINC_FLAGS :=
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
void *ram;
|
||||
int opt, ret, fd;
|
||||
int malloc_size = 8 * 1024 * 1024;
|
||||
int malloc_size = CONFIG_MALLOC_SIZE;
|
||||
char str[6];
|
||||
int fdno = 0, envno = 0, option_index = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue