~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/openbios/arch/sparc64/build.xml

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<build condition="SPARC64">
 
2
 
 
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"/>
 
8
 </dictionary>
 
9
 
 
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"/>
 
23
 </library>
 
24
 
 
25
 <executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
 
26
  <rule>
 
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"/>
 
39
 </executable>
 
40
 
 
41
 <!-- HACK ALERT -->
 
42
 
 
43
 <executable name="target/include/static-dict.h" target="target" condition="IMAGE_ELF_EMBEDDED">
 
44
  <rule><![CDATA[
 
45
        $(call quiet-command,$(ODIR)/forthstrap -x -D $@ -d $< </dev/null, "  GEN   $(TARGET_DIR)$@")]]></rule>
 
46
  <external-object source="openbios-sparc64.dict"/>
 
47
 </executable>
 
48
 
 
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>
 
52
 </executable>
 
53
 
 
54
 <!-- END OF HACK ALERT -->
 
55
 
 
56
 <executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
 
57
 <!-- We use -N to reduce the file size by 1M -->
 
58
  <rule>
 
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"/>
 
71
 </executable>
 
72
 
 
73
</build>