sandbox: get malloc_size from .config
PATCH 1/1 sandbox: get malloc_size from .config
Signed-off-by Antony Pavlov <[email protected]>
--- arch/sandbox/os/Makefile | 2 ++ arch/sandbox/os/common.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
arch/sandbox/os/Makefile +2 -0
@@ -8,6 +8,8 @@ else CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs)) endif +CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE) + CFLAGS := -Wall NOSTDINC_FLAGS :=
arch/sandbox/os/common.c +1 -1
@@ -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 ;
Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 5 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- arch/sandbox/os/Makefile | 2 ++ arch/sandbox/os/common.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox