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

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


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

diff --git a/bsps/powerpc/virtex5/config/virtex5.cfg b/bsps/powerpc/virtex5/config/virtex5.cfg
index 6f039da..cb260db 100644
--- a/bsps/powerpc/virtex5/config/virtex5.cfg
+++ b/bsps/powerpc/virtex5/config/virtex5.cfg
@@ -5,7 +5,7 @@ RTEMS_CPU=powerpc
 #  This contains the compiler options necessary to select the CPU model
 #  and (hopefully) optimize for it.
 #
-CPU_CFLAGS = -mcpu=440 -Dppc440 -msoft-float
+CPU_CFLAGS = -mcpu=440 -msoft-float
 
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
diff --git a/c/src/lib/libbsp/powerpc/virtex5/configure.ac b/c/src/lib/libbsp/powerpc/virtex5/configure.ac
index 79fa2cd..555fee0 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/configure.ac
+++ b/c/src/lib/libbsp/powerpc/virtex5/configure.ac
@@ -33,6 +33,8 @@ RTEMS_BSPOPTS_SET([PPC_VECTOR_FILE_BASE],[*],[0x0100])
 RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
 [This defines the base address of the exception table.])
 
+AC_DEFINE(ppc440, 1, [PowerPC model option])
+
 RTEMS_BSP_CLEANUP_OPTIONS
 
 # Explicitly list all Makefiles here
-- 
1.8.3.1




More information about the devel mailing list