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

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


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

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

haleakala: Move -Dxxx to configure.ac

Updates #3425.

---

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

diff --git a/bsps/powerpc/haleakala/config/haleakala.cfg b/bsps/powerpc/haleakala/config/haleakala.cfg
index 90b9292..148c699 100644
--- a/bsps/powerpc/haleakala/config/haleakala.cfg
+++ b/bsps/powerpc/haleakala/config/haleakala.cfg
@@ -10,7 +10,7 @@ RTEMS_CPU=powerpc
 #  This contains the compiler options necessary to select the CPU model
 #  and (hopefully) optimize for it.
 #
-CPU_CFLAGS = -mcpu=405 -Dppc405
+CPU_CFLAGS = -mcpu=405
 
 # optimize flag: typically -0, could use -O4 or -fast
 # -O4 is ok for RTEMS
diff --git a/c/src/lib/libbsp/powerpc/haleakala/configure.ac b/c/src/lib/libbsp/powerpc/haleakala/configure.ac
index cabfc69..cf3a552 100644
--- a/c/src/lib/libbsp/powerpc/haleakala/configure.ac
+++ b/c/src/lib/libbsp/powerpc/haleakala/configure.ac
@@ -25,6 +25,8 @@ RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
 [This defines the base address of the exception table.
  NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
 
+AC_DEFINE(ppc405, 1, [PowerPC model option])
+
 RTEMS_BSP_CLEANUP_OPTIONS
 
 # Explicitly list all Makefiles here



More information about the vc mailing list