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