[Buildroot] [PATCH v5 7/7] package: Introduce NOMMU symbol
Sonic Zhang
sonic.adi at gmail.com
Fri Apr 12 10:18:29 UTC 2013
From: Sonic Zhang <sonic.zhang at analog.com>
Introduce NOMMU symbol __NOMMU__
Signed-off-by: Sonic Zhang <sonic.zhang at analog.com>
---
package/Makefile.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/package/Makefile.in b/package/Makefile.in
index a449089..e7bb61f 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -105,6 +105,9 @@ TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
ifeq ($(BR2_BINFMT_FLAT),y)
TARGET_LDFLAGS += $(if $($(PKG)_FLAT_STACKSIZE),-Wl$(comma)-elf2flt=-s$($(PKG)_FLAT_STACKSIZE))
+
+ifneq ($(BR2_USE_MMU), y)
+TARGET_CFLAGS += -D__NOMMU__
endif
ifeq ($(BR2_BINFMT_FLAT_SHARED),y)
--
1.7.0.4
More information about the buildroot
mailing list