diff options
Diffstat (limited to 'make/custom/gensh1.cfg')
-rw-r--r-- | make/custom/gensh1.cfg | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/make/custom/gensh1.cfg b/make/custom/gensh1.cfg index 9961f08c8e..b5d98630e2 100644 --- a/make/custom/gensh1.cfg +++ b/make/custom/gensh1.cfg @@ -8,7 +8,7 @@ # $Id$ # -MHZ:=20 +MHZ=20 include $(RTEMS_ROOT)/make/custom/default.cfg @@ -18,11 +18,18 @@ RTEMS_CPU_MODEL=sh7032 # This is the actual bsp directory used during the build process. RTEMS_BSP_FAMILY=gensh1 +# BSP specific preprocessor flags. +# These should only be used in BSP dependent directories. +BSP_CPPFLAGS=-DMHZ=$(MHZ) + # # This contains the compiler options necessary to select the CPU model # and (hopefully) optimize for it. # -CPU_CFLAGS=-m1 +# HACK: We have to append BSP_CPPFLAGS to CPU_CFLAGS, because +# per BSP and per CPU CPPFLAGS are not (yet?) supported +CPU_CFLAGS=-m1 $(BSP_CPPFLAGS) +# CPU_CFLAGS=-m1 # debug flags: typically none, but we use -O1 as it produces better code CFLAGS_DEBUG_V = -O1 @@ -31,6 +38,8 @@ CFLAGS_DEBUG_V = -O1 # -O4 is ok for RTEMS CFLAGS_OPTIMIZE_V = -O4 +CPPFLAGS+=$(BSP_CPPFLAGS) + # This section makes the target dependent options file. # NDEBUG (C library) |