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

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


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

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

virtex: Move -Dxxx to configure.ac

Updates #3425.

---

 bsps/powerpc/virtex/config/virtex.cfg        | 2 +-
 c/src/lib/libbsp/powerpc/virtex/configure.ac | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bsps/powerpc/virtex/config/virtex.cfg b/bsps/powerpc/virtex/config/virtex.cfg
index 412b0da..c108b01 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 ceea283..b70adf1 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



More information about the vc mailing list