summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-05-16 09:43:24 -0500
committerJoel Sherrill <joel@rtems.org>2018-05-18 08:22:32 -0500
commitb1b5afbab2b515f2360a4f8e0c964725587623c9 (patch)
treef1e0d6678e7a4951ebace6ede8422bae1948d87f
parentbsp/powerpc: Remove wildcards in linkcmds.base (diff)
downloadrtems-b1b5afbab2b515f2360a4f8e0c964725587623c9.tar.bz2
beatnik: Move -Dxxx to configure.ac
Updates #3425.
-rw-r--r--bsps/powerpc/beatnik/config/beatnik.cfg2
-rw-r--r--c/src/lib/libbsp/powerpc/beatnik/configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/bsps/powerpc/beatnik/config/beatnik.cfg b/bsps/powerpc/beatnik/config/beatnik.cfg
index 1190cadf62..05bea383bf 100644
--- a/bsps/powerpc/beatnik/config/beatnik.cfg
+++ b/bsps/powerpc/beatnik/config/beatnik.cfg
@@ -14,7 +14,7 @@ RTEMS_BSP_FAMILY=beatnik
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
-CPU_CFLAGS = -mcpu=7400 -D__ppc_generic
+CPU_CFLAGS = -mcpu=7400
#T. Straumann; disable sdata=eabi for now until CEXP supports it -meabi -msdata=eabi
# optimize flag: typically -0, could use -O4 or -fast
diff --git a/c/src/lib/libbsp/powerpc/beatnik/configure.ac b/c/src/lib/libbsp/powerpc/beatnik/configure.ac
index a48007ce6a..b332aaaffc 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/configure.ac
+++ b/c/src/lib/libbsp/powerpc/beatnik/configure.ac
@@ -34,6 +34,8 @@ Note that the policy can still be defined by the application
CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed
and a little memory is saved.])
+AC_DEFINE(__ppc_generic, 1, [PowerPC model option])
+
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile])