source: rtems/make/custom/simhppa.cfg @ 28e7d7fa

4.104.114.84.95
Last change on this file since 28e7d7fa was 28e7d7fa, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/98 at 22:04:22

Patches from Eric Norum

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