[PATCH 07/16] mvme5500: Move -Dxxx to configure.ac
Joel Sherrill
joel at rtems.org
Wed May 16 15:09:40 UTC 2018
Updates #3425.
---
bsps/powerpc/mvme5500/config/mvme5500.cfg | 2 +-
c/src/lib/libbsp/powerpc/mvme5500/configure.ac | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/bsps/powerpc/mvme5500/config/mvme5500.cfg b/bsps/powerpc/mvme5500/config/mvme5500.cfg
index 6a0fcea..0bfb6ff 100644
--- a/bsps/powerpc/mvme5500/config/mvme5500.cfg
+++ b/bsps/powerpc/mvme5500/config/mvme5500.cfg
@@ -11,7 +11,7 @@ RTEMS_BSP_FAMILY=mvme5500
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
-CPU_CFLAGS = -mcpu=7450 -mtune=7450 -Dmpc7455
+CPU_CFLAGS = -mcpu=7450 -mtune=7450
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/configure.ac b/c/src/lib/libbsp/powerpc/mvme5500/configure.ac
index 6d2745a..a1910ca 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mvme5500/configure.ac
@@ -33,6 +33,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(mpc7455, 1, [PowerPC model option])
+
RTEMS_BSP_CLEANUP_OPTIONS
# Explicitly list all Makefiles here
--
1.8.3.1
More information about the devel
mailing list