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

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


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

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

tqm8xx: Move -Dxxx to configure.ac

Updates #3425.

---

 bsps/powerpc/tqm8xx/config/tqm8xx.inc        | 3 +--
 c/src/lib/libbsp/powerpc/tqm8xx/configure.ac | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bsps/powerpc/tqm8xx/config/tqm8xx.inc b/bsps/powerpc/tqm8xx/config/tqm8xx.inc
index f9a31d0..0887110 100644
--- a/bsps/powerpc/tqm8xx/config/tqm8xx.inc
+++ b/bsps/powerpc/tqm8xx/config/tqm8xx.inc
@@ -6,8 +6,7 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
 
 RTEMS_CPU=powerpc
 
-CPU_CFLAGS = -mcpu=860 -Dmpc860 \
-             -mstrict-align -fno-strict-aliasing \
+CPU_CFLAGS = -mcpu=860 -mstrict-align -fno-strict-aliasing \
              -meabi -msdata=sysv -fno-common
 
 # optimize flag: typically -O2
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac b/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac
index 55f7ea7..2ba8e28 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac
@@ -87,6 +87,7 @@ RTEMS_BSPOPTS_HELP([BSP_USE_NETWORK_SCC],
 [If defined, then the BSP will use the Serial Communications Controller (SCC1)
  for 10MBit networking.])
 
+AC_DEFINE(mpc860, 1, [PowerPC model option])
 
 # Explicitly list a Makefile here
 AC_CONFIG_FILES([Makefile])



More information about the vc mailing list