mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
git-svn-id: svn://coreboot.org/openbios/openbios-devel@213 f158a5a8-5612-0410-a976-696ce0be7e32
89 lines
3.1 KiB
XML
89 lines
3.1 KiB
XML
<build condition="SPARC64">
|
|
|
|
<dictionary name="openbios-sparc64" init="openbios">
|
|
<object source="tree.fs" target="forth"/>
|
|
<object source="init.fs" target="forth"/>
|
|
</dictionary>
|
|
|
|
<library name="sparc64" type="static" target="target">
|
|
<object source="openbios.c"/>
|
|
<object source="console.c"/>
|
|
<object source="lib.c"/>
|
|
<object source="boot.c"/>
|
|
<object source="context.c"/>
|
|
<object source="switch.S"/>
|
|
<object source="linux_load.c"/>
|
|
<object source="sys_info.c"/>
|
|
<object source="elfload.c"/>
|
|
<object source="aoutload.c"/>
|
|
<object source="forthload.c"/>
|
|
<object source="fcodeload.c"/>
|
|
<object source="loadfs.c"/>
|
|
</library>
|
|
|
|
<executable name="target/arch/sparc64/entry.o" target="target">
|
|
<rule><![CDATA[ arch/sparc64/entry.S
|
|
$(CC) $$EXTRACFLAGS $(AS_FLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $^]]></rule>
|
|
</executable>
|
|
<executable name="target/arch/sparc64/vectors.o" target="target">
|
|
<rule><![CDATA[ arch/sparc64/vectors.S
|
|
$(CC) $$EXTRACFLAGS $(AS_FLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $^]]></rule>
|
|
</executable>
|
|
|
|
<executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
|
|
<rule>
|
|
$(LD) -T arch/sparc64/ldscript -o $@.nostrip $^
|
|
$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms
|
|
cp $@.nostrip $@
|
|
$(STRIP) $@</rule>
|
|
<object source="plainboot.c"/>
|
|
<external-object source="target/arch/sparc64/vectors.o"/>
|
|
<external-object source="target/arch/sparc64/entry.o"/>
|
|
<external-object source="libsparc64.a"/>
|
|
<external-object source="libbootstrap.a"/>
|
|
<external-object source="libmodules.a"/>
|
|
<external-object source="libdrivers.a"/>
|
|
<external-object source="liblibc.a"/>
|
|
<external-object source="libfs.a"/>
|
|
<external-object source="libgcc.a"/>
|
|
</executable>
|
|
|
|
<!-- HACK ALERT -->
|
|
|
|
<executable name="target/include/static-dict.h" target="target" condition="IMAGE_ELF_EMBEDDED">
|
|
<rule><![CDATA[
|
|
@echo "static const char forth_dictionary[] = {" > $@
|
|
@cat $< | hexdump -ve '1/0 "\t" 8/1 "0x%02x, " 1/0 "\n"' \
|
|
| sed 's/0x ,//g' >> $@
|
|
@echo "};" >> $@]]></rule>
|
|
<external-object source="openbios-sparc64.dict"/>
|
|
</executable>
|
|
|
|
<executable name="target/arch/sparc64/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
|
|
<rule><![CDATA[ arch/sparc64/builtin.c $(ODIR)/target/include/static-dict.h
|
|
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ arch/sparc64/builtin.c]]></rule>
|
|
</executable>
|
|
|
|
<!-- END OF HACK ALERT -->
|
|
|
|
<executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
|
|
<!-- We use -N to reduce the file size by 1M -->
|
|
<rule>
|
|
$(LD) -N -T arch/sparc64/ldscript -o $@.nostrip $^
|
|
$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms
|
|
cp $@.nostrip $@
|
|
$(STRIP) $@</rule>
|
|
<external-object source="target/arch/sparc64/vectors.o"/>
|
|
<external-object source="target/arch/sparc64/entry.o"/>
|
|
<external-object source="target/arch/sparc64/builtin.o"/>
|
|
<external-object source="libsparc64.a"/>
|
|
<external-object source="libbootstrap.a"/>
|
|
<external-object source="libmodules.a"/>
|
|
<external-object source="libdrivers.a"/>
|
|
<external-object source="liblibc.a"/>
|
|
<external-object source="libfs.a"/>
|
|
<external-object source="libgcc.a"/>
|
|
</executable>
|
|
|
|
</build>
|