[PATCH 12/16] t32mppc: Move -Dxxx to configure.ac
Joel Sherrill
joel at rtems.org
Wed May 16 15:09:45 UTC 2018
Updates #3425.
---
bsps/powerpc/t32mppc/config/t32mppc.cfg | 3 +--
c/src/lib/libbsp/powerpc/t32mppc/configure.ac | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/bsps/powerpc/t32mppc/config/t32mppc.cfg b/bsps/powerpc/t32mppc/config/t32mppc.cfg
index 1bbfe76..a83dafd 100644
--- a/bsps/powerpc/t32mppc/config/t32mppc.cfg
+++ b/bsps/powerpc/t32mppc/config/t32mppc.cfg
@@ -2,8 +2,7 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = powerpc
-CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common -msoft-float -mno-spe \
- -D__ppc_generic
+CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common -msoft-float -mno-spe
CFLAGS_OPTIMIZE_V = -Og -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
diff --git a/c/src/lib/libbsp/powerpc/t32mppc/configure.ac b/c/src/lib/libbsp/powerpc/t32mppc/configure.ac
index 984e3a1..dce3d8e 100644
--- a/c/src/lib/libbsp/powerpc/t32mppc/configure.ac
+++ b/c/src/lib/libbsp/powerpc/t32mppc/configure.ac
@@ -24,7 +24,7 @@ RTEMS_BSPOPTS_SET([PPC_EXC_CONFIG_BOOKE_ONLY],[*],[1])
RTEMS_BSPOPTS_HELP([PPC_EXC_CONFIG_BOOKE_ONLY],
[only support Book E exception types])
-
+AC_DEFINE(__ppc_generic, 1, [PowerPC model option])
RTEMS_BSP_CLEANUP_OPTIONS
RTEMS_PPC_EXCEPTIONS
--
1.8.3.1
More information about the devel
mailing list