[rtems commit] t32mppc: Move -Dxxx to configure.ac

Joel Sherrill joel at rtems.org
Fri May 18 13:22:46 UTC 2018


Module:    rtems
Branch:    master
Commit:    3274ec757752047c65deadcccfe57e11cea0693d
Changeset: http://git.rtems.org/rtems/commit/?id=3274ec757752047c65deadcccfe57e11cea0693d

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed May 16 09:57:54 2018 -0500

t32mppc: Move -Dxxx to configure.ac

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



More information about the vc mailing list