summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-05-16 10:07:26 -0500
committerJoel Sherrill <joel@rtems.org>2018-05-18 08:22:35 -0500
commiteaf5bec4cd37c5e2a2659208ff937a635182933a (patch)
tree96dc876cf9083d884a39692c841a35a0a0b457ff
parent17f69e4da20abfb6acb510f71c622b1072f1ae0f (diff)
downloadrtems-eaf5bec4cd37c5e2a2659208ff937a635182933a.tar.bz2
virtex5: Move -Dxxx to configure.ac
Updates #3425.
-rw-r--r--bsps/powerpc/virtex5/config/virtex5.cfg2
-rw-r--r--c/src/lib/libbsp/powerpc/virtex5/configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/bsps/powerpc/virtex5/config/virtex5.cfg b/bsps/powerpc/virtex5/config/virtex5.cfg
index 6f039da854..cb260db061 100644
--- a/bsps/powerpc/virtex5/config/virtex5.cfg
+++ b/bsps/powerpc/virtex5/config/virtex5.cfg
@@ -5,7 +5,7 @@ RTEMS_CPU=powerpc
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
-CPU_CFLAGS = -mcpu=440 -Dppc440 -msoft-float
+CPU_CFLAGS = -mcpu=440 -msoft-float
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
diff --git a/c/src/lib/libbsp/powerpc/virtex5/configure.ac b/c/src/lib/libbsp/powerpc/virtex5/configure.ac
index 79fa2cdd0d..555fee040b 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/configure.ac
+++ b/c/src/lib/libbsp/powerpc/virtex5/configure.ac
@@ -33,6 +33,8 @@ RTEMS_BSPOPTS_SET([PPC_VECTOR_FILE_BASE],[*],[0x0100])
RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
[This defines the base address of the exception table.])
+AC_DEFINE(ppc440, 1, [PowerPC model option])
+
RTEMS_BSP_CLEANUP_OPTIONS
# Explicitly list all Makefiles here