summaryrefslogtreecommitdiffstats
path: root/make/custom/gensh1.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-28 16:01:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-28 16:01:41 +0000
commit7046cddb1b07083d23f9f62592790f2f9174a470 (patch)
treebf25abe9bd3a53d2765983f534bbfb53e2741a79 /make/custom/gensh1.cfg
parentchanged version to 19991028 (diff)
downloadrtems-7046cddb1b07083d23f9f62592790f2f9174a470.tar.bz2
Patch rtems-rc-19991011-3.diff from Ralf Corsepius.
Diffstat (limited to 'make/custom/gensh1.cfg')
-rw-r--r--make/custom/gensh1.cfg13
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)