1 | # |
---|
2 | # Config file for the posix based RTEMS |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(PROJECT_ROOT)/make/target.cfg |
---|
8 | include $(PROJECT_ROOT)/make/host.cfg |
---|
9 | |
---|
10 | # Set them here, otherwise gcc-target-default.cfg will set them to values |
---|
11 | # not working on some os variants (linux-RH5.0, glibc versions 2.0.0 - 2.0.7) |
---|
12 | # These should be available on all unices |
---|
13 | LIBC_LIBC=-lc |
---|
14 | LIBC_LIBM=-lm |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_HOST)-posix.cfg |
---|
17 | |
---|
18 | # Setting formerly contained in gcc-<TARGET_ARCH>.cfg |
---|
19 | |
---|
20 | # Not applicable - let's override 'em |
---|
21 | LINKCMDS= |
---|
22 | START_FILE= |
---|
23 | START_BASE= |
---|
24 | |
---|
25 | # Here is the rule to actually build a $(ARCH)/foo.exe |
---|
26 | # It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm |
---|
27 | # Usage ref: src/tests/sptest/sp1/Makefile |
---|
28 | # |
---|
29 | # 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile) |
---|
30 | # If NODE is set as an environment variable, don't trust it, zero it out. |
---|
31 | # (NODE turns out to be a very common environment variable) |
---|
32 | ifeq (,$(NODE)) |
---|
33 | NODE=0 |
---|
34 | else |
---|
35 | ifeq "$(origin NODE)" "environment" |
---|
36 | NODE=0 |
---|
37 | endif |
---|
38 | endif |
---|
39 | # Setting formerly contained in gcc-<TARGET_ARCH>.cfg |
---|
40 | |
---|
41 | # Not applicable - let's override 'em |
---|
42 | LINKCMDS= |
---|
43 | START_FILE= |
---|
44 | START_BASE= |
---|
45 | |
---|
46 | # Here is the rule to actually build a $(ARCH)/foo.exe |
---|
47 | # It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm |
---|
48 | # Usage ref: src/tests/sptest/sp1/Makefile |
---|
49 | # |
---|
50 | # 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile) |
---|
51 | # If NODE is set as an environment variable, don't trust it, zero it out. |
---|
52 | # (NODE turns out to be a very common environment variable) |
---|
53 | ifeq (,$(NODE)) |
---|
54 | NODE=0 |
---|
55 | else |
---|
56 | ifeq "$(origin NODE)" "environment" |
---|
57 | NODE=0 |
---|
58 | endif |
---|
59 | endif |
---|
60 | |
---|