source: rtems/make/custom/gensh1.cfg @ f8b27df9

4.104.114.84.95
Last change on this file since f8b27df9 was f8b27df9, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 17:20:45

New port from Ralf Corsepius <corsepiu@…>.

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[f8b27df9]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
11include $(RTEMS_ROOT)/make/custom/default.cfg
12
13RTEMS_CPU=sh
14RTEMS_CPU_MODEL=sh7032
15
16# This is the actual bsp directory used during the build process.
17RTEMS_BSP_FAMILY=gensh1
18
19#
20#  This contains the compiler options necessary to select the CPU model
21#  and (hopefully) optimize for it.
22#
23CPU_CFLAGS=-m1
24
25# Use the LIBC support for CYGNUS newlib
26# RTEMS_LIBC_DIR must already be set
27RTEMS_USE_NEWLIB=yes
28
29# Define this to yes if C++ is included in the development environment.
30# This requires that at least the GNU C++ compiler and libg++ be installed.
31#
32#  Need "main" in BSP so can't link C++ sample test or you will get
33#     duplicate symbol errors for main
34#
35# not yet supported
36HAS_CPLUSPLUS=no
37
38# Define this to yes if this target supports multiprocessor environments.
39HAS_MP=no
40
41# This target does NOT support the KA9Q TCP/IP stack so ignore requests
42# to enable it.
43HAS_KA9Q=no
44
45# Define this for posix support
46HAS_POSIX_API=yes
47
48# debug flags: typically none, but we use -O1 as it produces better code
49CFLAGS_DEBUG_V = -O1
50
51# optimize flag: typically -0, could use -O4 or -fast
52# -O4 is ok for RTEMS
53CFLAGS_OPTIMIZE_V = -O4
54
55#  This section makes the target dependent options file.
56
57#  NDEBUG (C library)
58#     if defined asserts do not generate code.  This is commonly used
59#     as a command line option.
60#
61#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
62#     do not pause between screens of output in the rtems tests
63#
64#  STACK_CHECKER_ON (RTEMS support code)
65#     If defined, stack bounds checking is enabled.
66#
67#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
68#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
69#     per task is printed when the program exits.
70#
71#  RTEMS_DEBUG (RTEMS)
72#     If defined, debug checks in RTEMS and support library code are enabled.
73#
74
75define make-target-options
76        @echo "/* #define NDEBUG 1 */ "                     >>$@
77        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
78        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
79        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */" >>$@
80        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
81endef
82
83
84# The following are definitions of make-exe which will work using ld as
85# is currently required.  It is expected that as of gcc 2.8, the end user
86# will be able to override parts of the compilers specs and link using gcc.
87#           -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) -lrtemsall -lc $(LD_PATHS:%=-L %)
88
89ifeq ($(RTEMS_USE_GCC272),yes)
90define make-exe
91        $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
92        -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
93        $(NM) -n $(basename $@).exe > $(basename $@).num
94        $(SIZE) $(basename $@).exe
95endef
96else
97define make-exe
98        $(CC) -Wl,-Map,$(basename $@).map $(CFLAGS) \
99             -o $(basename $@).exe $(LINK_OBJS)
100        $(NM) -n $(basename $@).exe > $(basename $@).num
101        $(SIZE) $(basename $@).exe
102endef
103endif
104
105# Miscellaneous additions go here
106
107# Workaround for missing ranlib support in rtems
108MKLIB=$(RANLIB)
Note: See TracBrowser for help on using the repository browser.