Skip to contentSkip to conversation

sandbox: get malloc_size from .config

PATCH Applied Antony Pavlov 2 participants 2 messages Jan 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sandbox: get malloc_size from .config

---
 arch/sandbox/os/Makefile | 2 ++
 arch/sandbox/os/common.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/sandbox/os/Makefile +2 -0
index 2e65be5..537f848 100644
@@ -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
index 4123938..0854fb5 100644
@@ -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
Applied
#1 lore raw
Quoted 5 lines · Antony Pavlov
---
 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