1
<build condition="SPARC64">
3
<dictionary name="openbios-sparc64" init="openbios">
4
<object source="cpu.fs" target="forth"/>
5
<object source="tree.fs" target="forth"/>
6
<object source="init.fs" target="forth"/>
7
<object source="QEMU,VGA.bin" target="fcode" condition="DRIVER_VGA"/>
10
<library name="sparc64" type="static" target="target">
11
<object source="openbios.c"/>
12
<object source="console.c"/>
13
<object source="lib.c"/>
14
<object source="boot.c"/>
15
<object source="context.c"/>
16
<object source="switch.S"/>
17
<object source="linux_load.c"/>
18
<object source="sys_info.c"/>
19
<object source="ofmem_sparc64.c"/>
20
<object source="entry.S"/>
21
<object source="vectors.S"/>
22
<object source="call-client.S"/>
25
<executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
27
$(call quiet-command,$(LD) --warn-common -T $(SRCDIR)/arch/sparc64/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
28
$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms," GEN $(TARGET_DIR)$@.syms")
29
$(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
30
<object source="plainboot.c"/>
31
<external-object source="libsparc64.a"/>
32
<external-object source="libbootstrap.a"/>
33
<external-object source="libopenbios.a"/>
34
<external-object source="libpackages.a"/>
35
<external-object source="libdrivers.a"/>
36
<external-object source="libfs.a"/>
37
<external-object source="liblibc.a"/>
38
<external-object source="libgcc.a"/>
43
<executable name="target/include/static-dict.h" target="target" condition="IMAGE_ELF_EMBEDDED">
45
$(call quiet-command,$(ODIR)/forthstrap -x -D $@ -d $< </dev/null, " GEN $(TARGET_DIR)$@")]]></rule>
46
<external-object source="openbios-sparc64.dict"/>
49
<executable name="target/arch/sparc64/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
50
<rule><![CDATA[ $(SRCDIR)/arch/sparc64/builtin.c $(ODIR)/target/include/static-dict.h
51
$(call quiet-command,$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/arch/sparc64/builtin.c, " CC $(TARGET_DIR)$@")]]></rule>
54
<!-- END OF HACK ALERT -->
56
<executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
57
<!-- We use -N to reduce the file size by 1M -->
59
$(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/sparc64/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
60
$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms," GEN $(TARGET_DIR)$@.syms")
61
$(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
62
<external-object source="target/arch/sparc64/builtin.o"/>
63
<external-object source="libsparc64.a"/>
64
<external-object source="libbootstrap.a"/>
65
<external-object source="libopenbios.a"/>
66
<external-object source="libpackages.a"/>
67
<external-object source="libdrivers.a"/>
68
<external-object source="libfs.a"/>
69
<external-object source="liblibc.a"/>
70
<external-object source="libgcc.a"/>