From 01da0ac3b90086e61789a9cf0aed6260408f513e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 16 May 2018 09:47:07 -0500 Subject: 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 90b9292d0b..148c699703 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 cabfc69332..cf3a552939 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 -- cgit v1.2.3