source: rtems/make/custom/simhppa.cfg @ 1ea9c3f

4.104.114.84.95
Last change on this file since 1ea9c3f was 1ea9c3f, checked in by Joel Sherrill <joel.sherrill@…>, on 04/06/98 at 16:33:48

Purged references to STACK_CHECKER_REPORT_USAGE

  • Property mode set to 100644
File size: 4.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#  -ansi                -- ANSI C compliance
28#  -fasm                -- ANSI, but allow inline assembler
29#  -mgas                -- we are using gas as assembler
30#  -fno-keep-inline-functions  -- do not emit any inlines as static
31CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall -ansi -fasm -mgas
32
33# optimize flag: typically -0, could use -O4 or -fast
34# -O4 is ok for RTEMS
35# NOTE: some level of -O may be actually required by inline assembler
36CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
37
38# Define this to yes if this target supports multiprocessor environments.
39HAS_MP=yes
40
41# This target does NOT support the KA9Q TCP/IP stack so ignore requests
42# to enable it.
43HAS_KA9Q=no
44
45#  This 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#  STACK_CHECKER_ON (RTEMS support code)
55#     If defined, stack bounds checking is enabled.
56#
57#  RTEMS_DEBUG (RTEMS)
58#     If defined, debug checks in RTEMS and support library code are enabled.
59#
60#  SIMHPPA_FAST_IDLE (simhppa)
61#     If defined, speed up the clock ticks while the idle task is running so
62#     time spent in the idle task is minimized.  This significantly reduces
63#     the wall time required to execute the RTEMS test suites.
64#
65
66define make-target-options
67        @echo "/* #define NDEBUG 1 */ "                     >>$@
68        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
69        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
70        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
71        @echo "#define SIMHPPA_FAST_IDLE  1 "               >>$@
72endef
73
74#
75# GNU ld options
76#   `-Tbss ORG'
77#   `-Tdata ORG'
78#   `-Ttext ORG'
79#      Use ORG as the starting address for--respectively--the `bss',
80#      `data', or the `text' segment of the output file.  ORG must be a
81#      single hexadecimal integer; for compatibility with other linkers,
82#      you may omit the leading `0x' usually associated with hexadecimal
83#      values.
84
85# 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile)
86# If NODE is set as an environment variable, don't trust it, zero it out.
87# (NODE turns out to be a very common environment variable)
88ifeq (,$(NODE))
89NODE=0
90else
91ifeq "$(origin NODE)" "environment"
92NODE=0
93endif
94endif
95
96# XXX some/all of this should move into 'linkcmds'
97# single processor
98DATA_0_BASE=0x40001000
99TEXT_0_BASE=0x00001000
100
101# first node (mptests number them from 1)
102DATA_1_BASE=$(DATA_0_BASE)
103TEXT_1_BASE=$(TEXT_0_BASE)
104
105# second node (mptests number them from 1)
106DATA_2_BASE=0x48001000
107TEXT_2_BASE=0x08001000
108
109# for hpux ld
110#LD_LOC_OPTIONS=-D $(DATA_$(NODE)_BASE) -R $(TEXT_$(NODE)_BASE)
111# for gnu ld
112LD_LOC_OPTIONS=-Tdata $(DATA_$(NODE)_BASE) -Ttext $(TEXT_$(NODE)_BASE)
113GCC_LD_LOC_OPTIONS=-W,l-T -W,ldata -W,l$(DATA_$(NODE)_BASE) \
114                   -W,l-T -W,ltext -W,l$(TEXT_$(NODE)_BASE)
115
116
117# The following are definitions of make-exe which will work using ld as
118# is currently required.  It is expected that as of gcc 2.8, the end user
119# will be able to override parts of the compilers specs and link using gcc.
120
121ifeq ($(RTEMS_USE_GCC272),yes)
122define make-exe
123        $(LDARGS) $(LD) $(LD_LOC_OPTIONS) $(XLDFLAGS) -a archive \
124            -o $@ -u atexit \
125            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
126        $(NM) -g -n $@ > $(basename $@).num
127        $(SIZE) $@
128endef
129else
130define make-exe
131        $(CC) $(CFLAGS) $(CFLAGS_LD) $(GCC_LD_LOC_OPTIONS) \
132            -o $(basename $@).exe $(LINK_OBJS)
133        $(NM) -g -n $@ > $(basename $@).num
134        $(SIZE) $@
135endef
136endif
137
138define make-rel
139        $(LDARGS) $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $(OBJS)
140endef
Note: See TracBrowser for help on using the repository browser.