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 | |
---|
11 | MHZ:=20 |
---|
12 | |
---|
13 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
14 | |
---|
15 | RTEMS_CPU=sh |
---|
16 | RTEMS_CPU_MODEL=sh7032 |
---|
17 | |
---|
18 | # This is the actual bsp directory used during the build process. |
---|
19 | RTEMS_BSP_FAMILY=gensh1 |
---|
20 | |
---|
21 | # |
---|
22 | # This contains the compiler options necessary to select the CPU model |
---|
23 | # and (hopefully) optimize for it. |
---|
24 | # |
---|
25 | CPU_CFLAGS=-m1 |
---|
26 | |
---|
27 | # Use the LIBC support for CYGNUS newlib |
---|
28 | # RTEMS_LIBC_DIR must already be set |
---|
29 | RTEMS_USE_NEWLIB=yes |
---|
30 | |
---|
31 | # Define this to yes if this target supports multiprocessor environments. |
---|
32 | HAS_MP=no |
---|
33 | |
---|
34 | # This target does NOT support the TCP/IP stack so ignore requests |
---|
35 | # to enable it. |
---|
36 | HAS_NETWORKING=no |
---|
37 | |
---|
38 | # debug flags: typically none, but we use -O1 as it produces better code |
---|
39 | CFLAGS_DEBUG_V = -O1 |
---|
40 | |
---|
41 | # optimize flag: typically -0, could use -O4 or -fast |
---|
42 | # -O4 is ok for RTEMS |
---|
43 | CFLAGS_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 | |
---|
58 | define make-target-options |
---|
59 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
60 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
61 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
62 | endef |
---|
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 | |
---|
69 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
70 | define 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 |
---|
77 | endef |
---|
78 | else |
---|
79 | define 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 |
---|
85 | endef |
---|
86 | endif |
---|
87 | |
---|
88 | # Miscellaneous additions go here |
---|
89 | |
---|
90 | SHGEN=$(PROJECT_ROOT)/c/src/exec/score/tools/sh/$(ARCH)/shgen |
---|