summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/ChangeLog5
-rw-r--r--make/custom/shsim.cfg19
-rw-r--r--make/custom/simsh7032.cfg30
-rw-r--r--make/custom/simsh7045.cfg30
4 files changed, 72 insertions, 12 deletions
diff --git a/make/ChangeLog b/make/ChangeLog
index f1bd117ab7..34bcb294be 100644
--- a/make/ChangeLog
+++ b/make/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+ * aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Add simsh7032 and
+ simsh7045.
+ * ChangeLog: Remove bogus 2001-01-22 entry.
2001-01-09 Joel Sherrill <joel@OARcorp.com>
diff --git a/make/custom/shsim.cfg b/make/custom/shsim.cfg
index 5025a34e08..64ecd7b4f9 100644
--- a/make/custom/shsim.cfg
+++ b/make/custom/shsim.cfg
@@ -4,14 +4,20 @@
# $Id$
#
+HZ=20000000
+
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=sh
-RTEMS_CPU_MODEL=sh1
+RTEMS_CPU_MODEL=sh7032
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=shsim
+# BSP specific preprocessor flags.
+# These should only be used in BSP dependent directories.
+BSP_CPPFLAGS=-DHZ=$(HZ)
+
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
@@ -31,16 +37,6 @@ endef
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
-ifeq ($(RTEMS_USE_GCC272),yes)
-
-define make-exe
- $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
- $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
- $(NM) -g -n $(basename $@).exe > $(basename $@).num
- $(SIZE) $(basename $@).exe
-endef
-
-else
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
@@ -48,7 +44,6 @@ define make-exe
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
-endif
# Miscellaneous additions go here
diff --git a/make/custom/simsh7032.cfg b/make/custom/simsh7032.cfg
new file mode 100644
index 0000000000..caf2673799
--- /dev/null
+++ b/make/custom/simsh7032.cfg
@@ -0,0 +1,30 @@
+#
+# simsh7032.cfg
+#
+# default configuration for gdb-simulation of Hitachi sh7032 processors
+#
+# Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/shsim.cfg
+
+RTEMS_CPU=sh
+RTEMS_CPU_MODEL=sh7032
+
+#
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+#
+CPU_CFLAGS=-m1
+
+# debug flags: typically none, but we use -O1 as it produces better code
+# CFLAGS_DEBUG_V = -O1
+CFLAGS_DEBUG_V =
+
+# optimize flag: typically -0, could use -O4 or -fast
+# -O4 is ok for RTEMS
+CFLAGS_OPTIMIZE_V = -O4
+
+# Miscellaneous additions go here
diff --git a/make/custom/simsh7045.cfg b/make/custom/simsh7045.cfg
new file mode 100644
index 0000000000..5282917a31
--- /dev/null
+++ b/make/custom/simsh7045.cfg
@@ -0,0 +1,30 @@
+#
+# simsh7045.cfg
+#
+# default configuration for gdb-simulation of Hitachi sh7045 processors
+#
+# Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/shsim.cfg
+
+RTEMS_CPU=sh
+RTEMS_CPU_MODEL=sh7045
+
+#
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+#
+CPU_CFLAGS=-m2
+
+# debug flags: typically none, but we use -O1 as it produces better code
+# CFLAGS_DEBUG_V = -O1
+CFLAGS_DEBUG_V =
+
+# optimize flag: typically -0, could use -O4 or -fast
+# -O4 is ok for RTEMS
+CFLAGS_OPTIMIZE_V = -O4
+
+# Miscellaneous additions go here