summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-05-16 09:54:50 -0500
committerJoel Sherrill <joel@rtems.org>2018-05-18 08:22:33 -0500
commitb06e8d613232026daebe190fc6d278826e5737d8 (patch)
treec991429912607c8f49e223d7ce6176cfca3ab505
parentc3b609d51c8566425048b36e6de6ae331803792a (diff)
downloadrtems-b06e8d613232026daebe190fc6d278826e5737d8.tar.bz2
qemuppc: Move -Dxxx to configure.ac
Updates #3425.
-rw-r--r--bsps/powerpc/qemuppc/config/qemuppc.cfg2
-rw-r--r--c/src/lib/libbsp/powerpc/qemuppc/configure.ac1
2 files changed, 2 insertions, 1 deletions
diff --git a/bsps/powerpc/qemuppc/config/qemuppc.cfg b/bsps/powerpc/qemuppc/config/qemuppc.cfg
index f424ec22ee..5e919c1b9f 100644
--- a/bsps/powerpc/qemuppc/config/qemuppc.cfg
+++ b/bsps/powerpc/qemuppc/config/qemuppc.cfg
@@ -8,7 +8,7 @@ RTEMS_CPU=powerpc
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
-CPU_CFLAGS = -mcpu=603e -Dppc603e
+CPU_CFLAGS = -mcpu=603e
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/configure.ac b/c/src/lib/libbsp/powerpc/qemuppc/configure.ac
index 58dbaf768b..f7f5a55680 100644
--- a/c/src/lib/libbsp/powerpc/qemuppc/configure.ac
+++ b/c/src/lib/libbsp/powerpc/qemuppc/configure.ac
@@ -11,6 +11,7 @@ RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
RTEMS_BSP_CONFIGURE
+AC_DEFINE(ppc603e, 1, [PowerPC model option])
RTEMS_BSP_CLEANUP_OPTIONS