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

4.104.114.84.95
Last change on this file since d13b247 was c1dc8228, checked in by Joel Sherrill <joel.sherrill@…>, on 04/27/98 at 14:21:04

Removed forced enable of POSIX API. Now follow configuration flag.

  • 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
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 this target supports multiprocessor environments.
30HAS_MP=no
31
32# This target does NOT support the KA9Q TCP/IP stack so ignore requests
33# to enable it.
34HAS_KA9Q=no
35
36# debug flags: typically none, but we use -O1 as it produces better code
37CFLAGS_DEBUG_V = -O1
38
39# optimize flag: typically -0, could use -O4 or -fast
40# -O4 is ok for RTEMS
41CFLAGS_OPTIMIZE_V = -O4
42
43#  This section makes the target dependent options file.
44
45#  NDEBUG (C library)
46#     if defined asserts do not generate code.  This is commonly used
47#     as a command line option.
48#
49#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
50#     do not pause between screens of output in the rtems tests
51#
52#  RTEMS_DEBUG (RTEMS)
53#     If defined, debug checks in RTEMS and support library code are enabled.
54#
55
56define make-target-options
57        @echo "/* #define NDEBUG 1 */ "                     >>$@
58        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
59        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
60endef
61
62
63# The following are definitions of make-exe which will work using ld as
64# is currently required.  It is expected that as of gcc 2.8, the end user
65# will be able to override parts of the compilers specs and link using gcc.
66#           -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) -lrtemsall -lc $(LD_PATHS:%=-L %)
67
68ifeq ($(RTEMS_USE_GCC272),yes)
69define make-exe
70        $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
71        -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
72        $(NM) -n $(basename $@).exe > $(basename $@).num
73        $(SIZE) $(basename $@).exe
74endef
75else
76define make-exe
77        $(CC) -Wl,-Map,$(basename $@).map $(CFLAGS) \
78             -o $(basename $@).exe $(LINK_OBJS)
79        $(NM) -n $(basename $@).exe > $(basename $@).num
80        $(SIZE) $(basename $@).exe
81endef
82endif
83
84# Miscellaneous additions go here
85
86# Workaround for missing ranlib support in rtems
87MKLIB=$(RANLIB)
Note: See TracBrowser for help on using the repository browser.