[PATCH 08/16] psim: Move -Dxxx to configure.ac

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


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

diff --git a/bsps/powerpc/psim/config/psim.cfg b/bsps/powerpc/psim/config/psim.cfg
index cb39949..1cfd201 100644
--- a/bsps/powerpc/psim/config/psim.cfg
+++ b/bsps/powerpc/psim/config/psim.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 = -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e
+CPU_CFLAGS = -meabi -mcpu=603e -msdata=sysv -fno-common
 
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
diff --git a/c/src/lib/libbsp/powerpc/psim/configure.ac b/c/src/lib/libbsp/powerpc/psim/configure.ac
index c4ca86c..b042091 100644
--- a/c/src/lib/libbsp/powerpc/psim/configure.ac
+++ b/c/src/lib/libbsp/powerpc/psim/configure.ac
@@ -45,6 +45,8 @@ and a little memory is saved.])
 RTEMS_BSPOPTS_SET([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[*],[1])
 RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[indicate that the interrupt stack is at the work area begin])
 
+AC_DEFINE(ppc603e, 1, [PowerPC model option])
+
 RTEMS_BSP_CLEANUP_OPTIONS
 
 # Explicitly list all Makefiles here
-- 
1.8.3.1




More information about the devel mailing list