[PATCH 1/3] sandbox: move __SANDBOX__ to Makefile

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Oct 23 03:48:19 EDT 2011


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 arch/sandbox/Makefile       |    2 +-
 arch/sandbox/board/config.h |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index 4ca17ed..860ed1c 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -1,5 +1,5 @@
 
-CPPFLAGS += -fno-strict-aliasing
+CPPFLAGS += -D__SANDBOX__ -fno-strict-aliasing
 
 machine-y := sandbox
 
diff --git a/arch/sandbox/board/config.h b/arch/sandbox/board/config.h
index c96d762..ca15136 100644
--- a/arch/sandbox/board/config.h
+++ b/arch/sandbox/board/config.h
@@ -1,6 +1,4 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define __SANDBOX__
-
 #endif	/* __CONFIG_H */
-- 
1.7.7




More information about the barebox mailing list