summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-05-16 09:57:54 -0500
committerJoel Sherrill <joel@rtems.org>2018-05-18 08:22:34 -0500
commit3274ec757752047c65deadcccfe57e11cea0693d (patch)
tree0cc06f6c7b99efc79d674a72e3c7cafe2ef013d3
parentc20001c4fcecf347dce373fb46c1e2ebee6595eb (diff)
downloadrtems-3274ec757752047c65deadcccfe57e11cea0693d.tar.bz2
t32mppc: Move -Dxxx to configure.ac
Updates #3425.
-rw-r--r--bsps/powerpc/t32mppc/config/t32mppc.cfg3
-rw-r--r--c/src/lib/libbsp/powerpc/t32mppc/configure.ac2
2 files changed, 2 insertions, 3 deletions
diff --git a/bsps/powerpc/t32mppc/config/t32mppc.cfg b/bsps/powerpc/t32mppc/config/t32mppc.cfg
index 1bbfe76a09..a83dafd3bb 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 984e3a15c3..dce3d8ea64 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