source: rtems/make/custom/gensh4.cfg @ c682b89

4.104.114.84.95
Last change on this file since c682b89 was c682b89, checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/01 at 21:11:18

2001-10-11 Alexandra Kossovsky <sasha@…>

  • custom/gensh4.cfg, custom/simsh4.cfg: New files in support of Hitachi SH4 BSPs of the same name. Reviewed and some cleanup by Joel Sherrill <joel@…>.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1#
2# gensh4.cfg
3#
4# default configuration for Hitachi SH7750 board
5#
6# Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
7# Author: Victor V. Vengerov <vvv@oktet.ru>
8#
9#  $Id$
10#
11
12HZ=96000000
13
14include $(RTEMS_ROOT)/make/custom/default.cfg
15
16RTEMS_CPU=sh
17RTEMS_CPU_MODEL=sh7750
18
19# This is the actual bsp directory used during the build process.
20RTEMS_BSP_FAMILY=gensh4
21
22#
23#  This contains the compiler options necessary to select the CPU model
24#  and (hopefully) optimize for it.
25#
26# Seems to be good without initialisation FPSCR.
27# Also works with SH4_FPSCR_DN bit set.
28#CPU_CFLAGS= -m4-single-only -mfmovd -ml
29#CPU_CFLAGS= -m4-single -ml
30#
31# It works with SH4_FPSCR_PR bit set
32CPU_CFLAGS= -m4 -ml
33
34
35# debug flags:
36CFLAGS_DEBUG_V = -O0 -ggdb
37
38# optimize flag: typically -0, could use -O4 or -fast
39# -O4 is ok for RTEMS
40CFLAGS_OPTIMIZE_V = -O4
41
42#  This section makes the target dependent options file.
43
44#  START_HW_INIT
45#     This switch selects whether 'early_hw_init()' is called from
46#     'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c'
47#
48
49define make-target-options
50        @echo "#define START_HW_INIT 1"                     >>$@
51endef
52
53
54# The following are definitions of make-exe which will work using ld as
55# is currently required.  It is expected that as of gcc 2.8, the end user
56# will be able to override parts of the compilers specs and link using gcc.
57
58ifeq ($(RTEMS_USE_GCC272),yes)
59define make-exe
60        $(LD) $(LDFLAGS) -N -e _start \
61            -T$(PROJECT_RELEASE)/lib/linkcmds\
62            -o $(basename $@).exe \
63            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
64        $(NM) -n $(basename $@).exe > $(basename $@).num
65        $(SIZE) $(basename $@).exe
66endef
67else
68define make-exe
69        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
70            $(LDLIBS) -o $@ \
71            $(LINK_OBJS) $(LINK_LIBS)
72        $(NM) -n $@ > $(basename $@).num
73        $(SIZE) $@
74endef
75endif
76
77# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.