Patchwork [v3,7/7] package: Introduce NOMMU symbol

login
register
mail settings
Submitter Sonic Zhang
Date April 9, 2013, 6:29 a.m.
Message ID <1365488988-21604-7-git-send-email-sonic.adi@gmail.com>
Download mbox | patch
Permalink /patch/234969/
State Changes Requested
Headers show

Comments

Sonic Zhang - April 9, 2013, 6:29 a.m.
From: Sonic Zhang <sonic.zhang@analog.com>

v3-changes:
none

v2-changes:
none

v1-chagnes:
- Introduce NOMMU symbol __NOMMU__

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
 package/Makefile.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/package/Makefile.in b/package/Makefile.in
index a8bf36b..3a26b09 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -103,6 +103,10 @@  TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET
 TARGET_CXXFLAGS = $(TARGET_CFLAGS)
 TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
 
+ifneq ($(BR2_USE_MMU), y)
+TARGET_CFLAGS += -D__NOMMU__
+endif
+
 ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_CTNG),y)
 TARGET_CROSS=$(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-
 else