[rtems commit] mvme3100: Move -Dxxx to configure.ac
Joel Sherrill
joel at rtems.org
Fri May 18 13:22:46 UTC 2018
Module: rtems
Branch: master
Commit: 5aa8ac2c9debbdbe188408d1e78889477a0b322c
Changeset: http://git.rtems.org/rtems/commit/?id=5aa8ac2c9debbdbe188408d1e78889477a0b322c
Author: Joel Sherrill <joel at rtems.org>
Date: Wed May 16 09:50:11 2018 -0500
mvme3100: Move -Dxxx to configure.ac
Updates #3425.
---
bsps/powerpc/mvme3100/config/mvme3100.cfg | 2 +-
c/src/lib/libbsp/powerpc/mvme3100/configure.ac | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/bsps/powerpc/mvme3100/config/mvme3100.cfg b/bsps/powerpc/mvme3100/config/mvme3100.cfg
index 6e7c695..50a291a 100644
--- a/bsps/powerpc/mvme3100/config/mvme3100.cfg
+++ b/bsps/powerpc/mvme3100/config/mvme3100.cfg
@@ -9,7 +9,7 @@ RTEMS_CPU=powerpc
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
-CPU_CFLAGS = -mcpu=powerpc -msoft-float -D__ppc_generic
+CPU_CFLAGS = -mcpu=powerpc -msoft-float
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/configure.ac b/c/src/lib/libbsp/powerpc/mvme3100/configure.ac
index 88d8447..2bf0e40 100644
--- a/c/src/lib/libbsp/powerpc/mvme3100/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mvme3100/configure.ac
@@ -37,6 +37,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])
+
RTEMS_BSP_CLEANUP_OPTIONS
# Explicitly list all Makefiles here
More information about the vc
mailing list