[rtems commit] qemuppc: Move -Dxxx to configure.ac
Joel Sherrill
joel at rtems.org
Fri May 18 13:22:46 UTC 2018
Module: rtems
Branch: master
Commit: b06e8d613232026daebe190fc6d278826e5737d8
Changeset: http://git.rtems.org/rtems/commit/?id=b06e8d613232026daebe190fc6d278826e5737d8
Author: Joel Sherrill <joel at rtems.org>
Date: Wed May 16 09:54:50 2018 -0500
qemuppc: Move -Dxxx to configure.ac
Updates #3425.
---
bsps/powerpc/qemuppc/config/qemuppc.cfg | 2 +-
c/src/lib/libbsp/powerpc/qemuppc/configure.ac | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/bsps/powerpc/qemuppc/config/qemuppc.cfg b/bsps/powerpc/qemuppc/config/qemuppc.cfg
index f424ec2..5e919c1 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 58dbaf7..f7f5a55 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
More information about the vc
mailing list