From 7046cddb1b07083d23f9f62592790f2f9174a470 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 28 Oct 1999 16:01:41 +0000 Subject: Patch rtems-rc-19991011-3.diff from Ralf Corsepius. --- make/custom/gensh1.cfg | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'make/custom/gensh1.cfg') 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) -- cgit v1.2.3