[PATCH 05/16] mpc8260ads: Move -Dxxx to configure.ac
Joel Sherrill
joel at rtems.org
Wed May 16 15:09:38 UTC 2018
Updates #3425.
---
bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg | 3 +--
c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg b/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
index 4869e72..d335e92 100644
--- a/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
+++ b/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
@@ -11,8 +11,7 @@ RTEMS_CPU=powerpc
# and (hopefully) optimize for it.
#
# CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -mstrict-align
-CPU_CFLAGS = -mcpu=603e -mstrict-align -Dmpc8260 \
- -meabi -msdata=sysv -fno-common
+CPU_CFLAGS = -mcpu=603e -mstrict-align -meabi -msdata=sysv -fno-common
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac b/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac
index ad97068..b9bce06 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/configure.ac
@@ -57,6 +57,7 @@ RTEMS_BSPOPTS_SET([DISPATCH_HANDLER_STAT],[*],[])
RTEMS_BSPOPTS_HELP([DISPATCH_HANDLER_STAT],
[used by irq/irq.c])
+AC_DEFINE(mpc8260, 1, [PowerPC model option])
RTEMS_BSP_CLEANUP_OPTIONS
--
1.8.3.1
More information about the devel
mailing list