[PATCH 09/16] qemuppc: Move -Dxxx to configure.ac

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


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

diff --git a/bsps/powerpc/qemuppc/config/qemuppc.cfg b/bsps/powerpc/qemuppc/config/qemuppc.cfg
index f424ec2..5e919c1 100644
--- a/bsps/powerpc/qemuppc/config/qemuppc.cfg
+++ b/bsps/powerpc/qemuppc/config/qemuppc.cfg
@@ -8,7 +8,7 @@ RTEMS_CPU=powerpc
 
 #  This contains the compiler options necessary to select the CPU model
 #  and (hopefully) optimize for it. 
-CPU_CFLAGS = -mcpu=603e  -Dppc603e
+CPU_CFLAGS = -mcpu=603e
 
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/configure.ac b/c/src/lib/libbsp/powerpc/qemuppc/configure.ac
index 58dbaf7..f7f5a55 100644
--- a/c/src/lib/libbsp/powerpc/qemuppc/configure.ac
+++ b/c/src/lib/libbsp/powerpc/qemuppc/configure.ac
@@ -11,6 +11,7 @@ RTEMS_CANONICAL_TARGET_CPU
 AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
 RTEMS_BSP_CONFIGURE
 
+AC_DEFINE(ppc603e, 1, [PowerPC model option])
 
 RTEMS_BSP_CLEANUP_OPTIONS
 
-- 
1.8.3.1




More information about the devel mailing list