source: rtems/make/custom/simhppa.cfg @ 65e6b542

4.104.114.84.95
Last change on this file since 65e6b542 was 65e6b542, checked in by Joel Sherrill <joel.sherrill@…>, on 04/26/01 at 16:41:44

2001-04-26 Ralf Corsepius <corsepiu@…>

  • compilers/gcc-no_bsp.cfg: Remove -ansi -fasm.
  • compilers/gcc-default.cfg: Dito.
  • compilers/gcc-portsw.cfg: Remove -Hansi.
  • custom/posix.cfg: Remove inclusion of target.cfg.
  • custom/simhppa.cfg: Remove -ansi -fasm.
  • Property mode set to 100644
File size: 3.3 KB
Line 
1#
2#  Config file for the 7100 pa-risc simulator
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=hppa1.1
10RTEMS_CPU_MODEL=hppa7200
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=simhppa
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17#
18#  Possibles:
19#  -mpa-risc-1-1        -- HPPA 1.1 instead of 1.0
20#  -mportable-runtime
21#
22CPU_CFLAGS = -mpa-risc-1-1 -mportable-runtime
23
24# Possibles:
25#  -Wall                -- lots of warnings
26#  -pipe                -- compiler uses pipes to talk to phases (usually faster)
27#  -mgas                -- we are using gas as assembler
28#  -fno-keep-inline-functions  -- do not emit any inlines as static
29CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall -mgas
30
31# optimize flag: typically -0, could use -O4 or -fast
32# -O4 is ok for RTEMS
33# NOTE: some level of -O may be actually required by inline assembler
34CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
35
36#  This makes the target dependent options file.
37
38#  SIMHPPA_FAST_IDLE (simhppa)
39#     If defined, speed up the clock ticks while the idle task is running so
40#     time spent in the idle task is minimized.  This significantly reduces
41#     the wall time required to execute the RTEMS test suites.
42#
43
44define make-target-options
45        @echo "#define SIMHPPA_FAST_IDLE  1 "               >>$@
46endef
47
48#
49# GNU ld options
50#   `-Tbss ORG'
51#   `-Tdata ORG'
52#   `-Ttext ORG'
53#      Use ORG as the starting address for--respectively--the `bss',
54#      `data', or the `text' segment of the output file.  ORG must be a
55#      single hexadecimal integer; for compatibility with other linkers,
56#      you may omit the leading `0x' usually associated with hexadecimal
57#      values.
58
59# 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile)
60# If NODE is set as an environment variable, don't trust it, zero it out.
61# (NODE turns out to be a very common environment variable)
62ifeq (,$(NODE))
63NODE=0
64else
65ifeq "$(origin NODE)" "environment"
66NODE=0
67endif
68endif
69
70# XXX some/all of this should move into 'linkcmds'
71# single processor
72DATA_0_BASE=0x40001000
73TEXT_0_BASE=0x00001000
74
75# first node (mptests number them from 1)
76DATA_1_BASE=$(DATA_0_BASE)
77TEXT_1_BASE=$(TEXT_0_BASE)
78
79# second node (mptests number them from 1)
80DATA_2_BASE=0x48001000
81TEXT_2_BASE=0x08001000
82
83# for hpux ld
84#LD_LOC_OPTIONS=-D $(DATA_$(NODE)_BASE) -R $(TEXT_$(NODE)_BASE)
85# for gnu ld
86LD_LOC_OPTIONS=-Tdata $(DATA_$(NODE)_BASE) -Ttext $(TEXT_$(NODE)_BASE)
87GCC_LD_LOC_OPTIONS=-W,l-T -W,ldata -W,l$(DATA_$(NODE)_BASE) \
88                   -W,l-T -W,ltext -W,l$(TEXT_$(NODE)_BASE)
89
90# The following are definitions of make-exe which will work using ld as
91# is currently required.  It is expected that as of gcc 2.8, the end user
92# will be able to override parts of the compilers specs and link using gcc.
93
94ifeq ($(RTEMS_USE_GCC272),yes)
95define make-exe
96        $(LDARGS) $(LD) $(LD_LOC_OPTIONS) $(XLDFLAGS) -a archive \
97            -o $@ -u atexit \
98            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
99        $(NM) -g -n $@ > $(basename $@).num
100        $(SIZE) $@
101endef
102else
103define make-exe
104        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(GCC_LD_LOC_OPTIONS) \
105            -o $@ \
106            $(LINK_OBJS) $(LINK_LIBS)
107        $(NM) -g -n $@ > $(basename $@).num
108        $(SIZE) $@
109endef
110endif
111
112# Miscellaneous additions go here
113
114# BSP-specific tools
115PRINTDUMP=$(PROJECT_TOOLS)/print_dump
Note: See TracBrowser for help on using the repository browser.