source: rtems/make/custom/gensh1.cfg @ 28e7d7fa

4.104.114.84.95
Last change on this file since 28e7d7fa was 28e7d7fa, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/98 at 22:04:22

Patches from Eric Norum

  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2#  gensh1.cfg
3#
4#  default configuration for Hitachi sh1 processors
5#
6#  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
7#
8#  $Id$
9#
10
11MHZ:=20
12
13include $(RTEMS_ROOT)/make/custom/default.cfg
14
15RTEMS_CPU=sh
16RTEMS_CPU_MODEL=sh7032
17
18# This is the actual bsp directory used during the build process.
19RTEMS_BSP_FAMILY=gensh1
20
21#
22#  This contains the compiler options necessary to select the CPU model
23#  and (hopefully) optimize for it.
24#
25CPU_CFLAGS=-m1
26
27# Use the LIBC support for CYGNUS newlib
28# RTEMS_LIBC_DIR must already be set
29RTEMS_USE_NEWLIB=yes
30
31# Define this to yes if this target supports multiprocessor environments.
32HAS_MP=no
33
34# This target does NOT support the TCP/IP stack so ignore requests
35# to enable it.
36HAS_NETWORKING=no
37
38# debug flags: typically none, but we use -O1 as it produces better code
39CFLAGS_DEBUG_V = -O1
40
41# optimize flag: typically -0, could use -O4 or -fast
42# -O4 is ok for RTEMS
43CFLAGS_OPTIMIZE_V = -O4
44
45#  This section makes the target dependent options file.
46
47#  NDEBUG (C library)
48#     if defined asserts do not generate code.  This is commonly used
49#     as a command line option.
50#
51#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
52#     do not pause between screens of output in the rtems tests
53#
54#  RTEMS_DEBUG (RTEMS)
55#     If defined, debug checks in RTEMS and support library code are enabled.
56#
57
58define make-target-options
59        @echo "/* #define NDEBUG 1 */ "                     >>$@
60        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
61        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
62endef
63
64
65# The following are definitions of make-exe which will work using ld as
66# is currently required.  It is expected that as of gcc 2.8, the end user
67# will be able to override parts of the compilers specs and link using gcc.
68
69ifeq ($(RTEMS_USE_GCC272),yes)
70define make-exe
71        $(LD) $(LDFLAGS) -N -e _start \
72            -T$(PROJECT_RELEASE)/lib/linkcmds\
73            -o $(basename $@).exe \
74            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
75        $(NM) -n $(basename $@).exe > $(basename $@).num
76        $(SIZE) $(basename $@).exe
77endef
78else
79define make-exe
80        $(CC) -Wl,-Map,$(basename $@).map \
81            $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
82            $(LINK_OBJS) $(LINK_LIBS)
83        $(NM) -n $(basename $@).exe > $(basename $@).num
84        $(SIZE) $(basename $@).exe
85endef
86endif
87
88# Miscellaneous additions go here
89
90SHGEN=$(PROJECT_ROOT)/c/src/exec/score/tools/sh/$(ARCH)/shgen
Note: See TracBrowser for help on using the repository browser.