Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / arch / sparc32 / build.xml
1 <build condition="SPARC32">
2
3  <dictionary name="openbios-sparc32" init="openbios">
4   <object source="tree.fs" target="forth"/>
5   <object source="init.fs" target="forth"/>
6   <object source="QEMU,tcx.bin" target="fcode" condition="DRIVER_SBUS"/>
7   <object source="QEMU,cgthree.bin" target="fcode" condition="DRIVER_SBUS"/>
8  </dictionary>
9
10  <library name="sparc32" 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="udiv.S"/>
18   <object source="linux_load.c"/>
19   <object source="sys_info.c"/>
20   <object source="ofmem_sparc32.c"/>
21   <object source="romvec.c"/>
22   <object source="call-romvec.S"/>
23   <object source="entry.S"/>
24   <object source="vectors.S"/>
25  </library>
26
27  <executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
28   <rule>
29         $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/sparc32/ldscript -o $@.nostrip --whole-archive $^,"  LINK  $(TARGET_DIR)$@")
30         $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms,"  GEN   $(TARGET_DIR)$@.syms")
31         $(call quiet-command,$(STRIP) $@.nostrip -o $@,"  STRIP $(TARGET_DIR)$@")</rule>
32   <object source="plainboot.c"/>
33   <external-object source="libsparc32.a"/>
34   <external-object source="libbootstrap.a"/>
35   <external-object source="libopenbios.a"/>
36   <external-object source="libpackages.a"/>
37   <external-object source="libdrivers.a"/>
38   <external-object source="libfs.a"/>
39   <external-object source="liblibc.a"/>
40   <external-object source="libgcc.a"/>
41  </executable>
42
43  <!-- HACK ALERT -->
44
45  <executable name="target/include/static-dict.h" target="target" condition="IMAGE_ELF_EMBEDDED">
46   <rule><![CDATA[
47         $(call quiet-command,$(ODIR)/forthstrap -x -D $@ -d $< </dev/null, "  GEN   $(TARGET_DIR)$@")]]></rule>
48   <external-object source="openbios-sparc32.dict"/>
49  </executable>
50
51  <executable name="target/arch/sparc32/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
52   <rule><![CDATA[ $(SRCDIR)/arch/sparc32/builtin.c $(ODIR)/target/include/static-dict.h
53         $(call quiet-command,$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/arch/sparc32/builtin.c, "  CC    $(TARGET_DIR)$@")]]></rule>
54  </executable>
55
56  <!-- END OF HACK ALERT -->
57
58  <executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
59   <rule>
60         $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/sparc32/ldscript -o $@.nostrip --whole-archive $^,"  LINK  $(TARGET_DIR)$@")
61         $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms,"  GEN   $(TARGET_DIR)$@.syms")
62         $(call quiet-command,$(STRIP) $@.nostrip -o $@,"  STRIP $(TARGET_DIR)$@")</rule>
63   <external-object source="target/arch/sparc32/builtin.o"/>
64   <external-object source="libsparc32.a"/>
65   <external-object source="libbootstrap.a"/>
66   <external-object source="libopenbios.a"/>
67   <external-object source="libpackages.a"/>
68   <external-object source="libdrivers.a"/>
69   <external-object source="libfs.a"/>
70   <external-object source="liblibc.a"/>
71   <external-object source="libgcc.a"/>
72  </executable>
73
74 </build>