summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-05-16 09:54:33 -0500
committerJoel Sherrill <joel@rtems.org>2018-05-18 08:22:33 -0500
commitc3b609d51c8566425048b36e6de6ae331803792a (patch)
tree93f43b7b39618ae39e40f7689f5f196d287624da
parentmvme5500: Move -Dxxx to configure.ac (diff)
downloadrtems-c3b609d51c8566425048b36e6de6ae331803792a.tar.bz2
psim: Move -Dxxx to configure.ac
Updates #3425.
-rw-r--r--bsps/powerpc/psim/config/psim.cfg2
-rw-r--r--c/src/lib/libbsp/powerpc/psim/configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/bsps/powerpc/psim/config/psim.cfg b/bsps/powerpc/psim/config/psim.cfg
index cb399493d2..1cfd201eff 100644
--- a/bsps/powerpc/psim/config/psim.cfg
+++ b/bsps/powerpc/psim/config/psim.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 = -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e
+CPU_CFLAGS = -meabi -mcpu=603e -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/psim/configure.ac b/c/src/lib/libbsp/powerpc/psim/configure.ac
index c4ca86c586..b04209153a 100644
--- a/c/src/lib/libbsp/powerpc/psim/configure.ac
+++ b/c/src/lib/libbsp/powerpc/psim/configure.ac
@@ -45,6 +45,8 @@ and a little memory is saved.])
RTEMS_BSPOPTS_SET([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[*],[1])
RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[indicate that the interrupt stack is at the work area begin])
+AC_DEFINE(ppc603e, 1, [PowerPC model option])
+
RTEMS_BSP_CLEANUP_OPTIONS
# Explicitly list all Makefiles here