blob: 41fce3c999c3b35acab3d05b5d683234123b7659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
if !MAY_SUPPLY_SYSCALLS
multilibtool_DATA += %D%/crt0.o
endif
%C%_SPECS =
## nano files.
%C%_SPECS += %D%/nano.specs
## Linux files.
%C%_SPECS += %D%/linux.specs
multilibtool_DATA += %D%/linux-crt0.o
multilibtool_LIBRARIES += %D%/libgloss-linux.a
%C%_libgloss_linux_a_SOURCES = \
%D%/linux-syscalls0.c \
%D%/linux-syscalls1.c
## RedBoot files.
%C%_SPECS += %D%/redboot.ld %D%/redboot.specs
multilibtool_DATA += \
%D%/redboot-crt0.o \
%D%/redboot-syscalls.o
%D%/redboot-syscalls.o: %D%/redboot-syscalls.c
$(AM_V_CC)$(COMPILE) -DSEMIHOST_V2 -o $@ -c $<
## rdpmon files.
%C%_SPECS += %D%/rdpmon.specs
multilibtool_DATA += %D%/rdpmon-crt0.o
multilibtool_LIBRARIES += %D%/librdpmon.a
%C%_librdpmon_a_SOURCES = \
%D%/_exit.c \
%D%/_kill.c \
%D%/ftruncate.c \
%D%/libcfunc.c \
%D%/syscalls.c \
%D%/trap.S \
%D%/truncate.c
%D%/rdpmon-crt0.o: %D%/crt0.S
$(AM_V_CPPAS)$(CPPASCOMPILE) -DSEMIHOST_V2 -DARM_RDP_MONITOR -o $@ -c $<
## rdimon files.
%C%_SPECS += \
%D%/rdimon.specs \
%D%/rdimon-v2m.specs \
%D%/aprofile-validation.specs \
%D%/aprofile-validation-v2m.specs \
%D%/aprofile-ve-v2m.specs \
%D%/aprofile-ve.specs
multilibtool_DATA += \
%D%/rdimon-crt0.o \
%D%/rdimon-crt0-v2m.o
multilibtool_LIBRARIES += \
%D%/librdimon.a \
%D%/librdimon-v2m.a
%C%_RDIMON_CPPFLAGS = -DSEMIHOST_V2 -DARM_RDI_MONITOR
%C%_RDIMON_V2M_CPPFLAGS = $(%C%_RDIMON_CPPFLAGS) -DSEMIHOST_V2_MIXED_MODE
%D%/rdimon-crt0.o: %D%/crt0.S
$(AM_V_CPPAS)$(CPPASCOMPILE) $(%C%_RDIMON_CPPFLAGS) -o $@ -c $<
%D%/rdimon-crt0-v2m.o: %D%/crt0.S
$(AM_V_CPPAS)$(CPPASCOMPILE) $(%C%_RDIMON_V2M_CPPFLAGS) -o $@ -c $<
%C%_librdimon_a_SOURCES = $(%C%_librdpmon_a_SOURCES)
%C%_librdimon_a_CPPFLAGS = $(AM_CPPFLAGS) $(%C%_RDIMON_CPPFLAGS)
%C%_librdimon_v2m_a_SOURCES = $(%C%_librdpmon_a_SOURCES)
%C%_librdimon_v2m_a_CPPFLAGS = $(AM_CPPFLAGS) $(%C%_RDIMON_V2M_CPPFLAGS)
## Here is all of the eval board stuff.
%C%_SPECS += \
%D%/pid.specs \
%D%/iq80310.specs
multilibtool_DATA += \
$(%C%_SPECS)
## Make copies of the scripts to facilitate in-tree bootstrapping.
%D%/%.specs: %D%/$(ARM_OBJTYPE)%.specs
$(AM_V_GEN)cp $< $@
%D%/%.ld: %D%/$(ARM_OBJTYPE)%.ld
$(AM_V_GEN)cp $< $@
CLEANFILES += $(%C%_SPECS)
include %D%/cpu-init/Makefile.inc
|