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

4.104.114.84.95
Last change on this file since bffb938 was bffb938, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:30:30

Removed PROJECT_HOME and CONFIG_DIR variables.

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