[PATCH 01/16] beatnik: Move -Dxxx to configure.ac

Joel Sherrill joel at rtems.org
Wed May 16 15:09:34 UTC 2018


Updates #3425.
---
 bsps/powerpc/beatnik/config/beatnik.cfg       | 2 +-
 c/src/lib/libbsp/powerpc/beatnik/configure.ac | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bsps/powerpc/beatnik/config/beatnik.cfg b/bsps/powerpc/beatnik/config/beatnik.cfg
index 1190cad..05bea38 100644
--- a/bsps/powerpc/beatnik/config/beatnik.cfg
+++ b/bsps/powerpc/beatnik/config/beatnik.cfg
@@ -14,7 +14,7 @@ RTEMS_BSP_FAMILY=beatnik
 #  This contains the compiler options necessary to select the CPU model
 #  and (hopefully) optimize for it. 
 #
-CPU_CFLAGS = -mcpu=7400 -D__ppc_generic 
+CPU_CFLAGS = -mcpu=7400
 #T. Straumann; disable sdata=eabi for now until CEXP supports it -meabi -msdata=eabi
 
 # optimize flag: typically -0, could use -O4 or -fast
diff --git a/c/src/lib/libbsp/powerpc/beatnik/configure.ac b/c/src/lib/libbsp/powerpc/beatnik/configure.ac
index a48007c..b332aaa 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/configure.ac
+++ b/c/src/lib/libbsp/powerpc/beatnik/configure.ac
@@ -34,6 +34,8 @@ Note that the policy can still be defined by the application
 CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed
 and a little memory is saved.])
 
+AC_DEFINE(__ppc_generic, 1, [PowerPC model option])
+
 # Explicitly list all Makefiles here
 AC_CONFIG_FILES([Makefile])
 
-- 
1.8.3.1




More information about the devel mailing list