[PATCH 02/16] haleakala: Move -Dxxx to configure.ac

Joel Sherrill joel at rtems.org
Wed May 16 15:09:35 UTC 2018


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
-- 
1.8.3.1




More information about the devel mailing list