summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-05-16 10:01:09 -0500
committerJoel Sherrill <joel@rtems.org>2018-05-18 08:22:34 -0500
commit4afc1efa7dc05de9b23f015a311fba31e52c824b (patch)
tree4693dc928da57d8dd59dea5d9c95171974c9104a
parent3d43c475d6ce84b3cc44b0b9925b11b565a8d11f (diff)
downloadrtems-4afc1efa7dc05de9b23f015a311fba31e52c824b.tar.bz2
virtex: Move -Dxxx to configure.ac
Updates #3425.
-rw-r--r--bsps/powerpc/virtex/config/virtex.cfg2
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/bsps/powerpc/virtex/config/virtex.cfg b/bsps/powerpc/virtex/config/virtex.cfg
index 412b0da7b9..c108b01bac 100644
--- a/bsps/powerpc/virtex/config/virtex.cfg
+++ b/bsps/powerpc/virtex/config/virtex.cfg
@@ -9,7 +9,7 @@ RTEMS_CPU=powerpc
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
-CPU_CFLAGS = -mcpu=403 -Dppc405 -meabi -msdata=sysv -fno-common
+CPU_CFLAGS = -mcpu=403 -meabi -msdata=sysv -fno-common
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
diff --git a/c/src/lib/libbsp/powerpc/virtex/configure.ac b/c/src/lib/libbsp/powerpc/virtex/configure.ac
index ceea283e2e..b70adf1af5 100644
--- a/c/src/lib/libbsp/powerpc/virtex/configure.ac
+++ b/c/src/lib/libbsp/powerpc/virtex/configure.ac
@@ -36,6 +36,8 @@ VIRTEX_REGION([VIRTEX_FAST_RAM_LENGTH],[fast RAM region length],[0x0])
VIRTEX_REGION([VIRTEX_RESET_ORIGIN],[reset region origin],[0x7ffffec])
VIRTEX_REGION([VIRTEX_RESET_LENGTH],[reset region length],[0x14])
+AC_DEFINE(ppc405, 1, [PowerPC model option])
+
RTEMS_BSP_CLEANUP_OPTIONS
# Explicitly list all Makefiles here