mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add Make dependencies for some files, unify Sparc32/64 build.xml files
git-svn-id: svn://coreboot.org/openbios/openbios-devel@194 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -3,7 +3,6 @@ TODO-list:
|
||||
Sparc common:
|
||||
- Unimplemented features/bugs:
|
||||
- Send keycode on keypress
|
||||
- Add Make dependencies for .S files
|
||||
- Remove compiler warnings
|
||||
- Clean up
|
||||
|
||||
|
||||
@@ -23,14 +23,12 @@
|
||||
</library>
|
||||
|
||||
<executable name="target/arch/sparc32/entry.o" target="target">
|
||||
<rule><![CDATA[
|
||||
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ arch/sparc32/entry.S
|
||||
]]></rule>
|
||||
<rule><![CDATA[ arch/sparc32/entry.S
|
||||
$(CC) $$EXTRACFLAGS $(AS_FLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $^]]></rule>
|
||||
</executable>
|
||||
<executable name="target/arch/sparc32/vectors.o" target="target">
|
||||
<rule><![CDATA[
|
||||
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ arch/sparc32/vectors.S
|
||||
]]></rule>
|
||||
<rule><![CDATA[ arch/sparc32/vectors.S
|
||||
$(CC) $$EXTRACFLAGS $(AS_FLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $^]]></rule>
|
||||
</executable>
|
||||
|
||||
<executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
|
||||
@@ -38,8 +36,7 @@
|
||||
$(LD) -N -T arch/sparc32/ldscript -o $@.nostrip $^
|
||||
$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms
|
||||
cp $@.nostrip $@
|
||||
$(STRIP) $@
|
||||
</rule>
|
||||
$(STRIP) $@</rule>
|
||||
<object source="plainboot.c"/>
|
||||
<external-object source="target/arch/sparc32/vectors.o"/>
|
||||
<external-object source="target/arch/sparc32/entry.o"/>
|
||||
@@ -59,16 +56,13 @@
|
||||
@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>
|
||||
@echo "};" >> $@]]></rule>
|
||||
<external-object source="openbios-sparc32.dict"/>
|
||||
</executable>
|
||||
|
||||
<executable name="target/arch/sparc32/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
|
||||
<rule><![CDATA[
|
||||
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ arch/sparc32/builtin.c
|
||||
]]></rule>
|
||||
<external-object source="target/include/static-dict.h"/>
|
||||
<rule><![CDATA[ arch/sparc32/builtin.c
|
||||
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $^]]></rule>
|
||||
</executable>
|
||||
|
||||
<!-- END OF HACK ALERT -->
|
||||
@@ -78,8 +72,7 @@
|
||||
$(LD) -N -T arch/sparc32/ldscript -o $@.nostrip $^
|
||||
$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms
|
||||
cp $@.nostrip $@
|
||||
$(STRIP) $@
|
||||
</rule>
|
||||
$(STRIP) $@</rule>
|
||||
<external-object source="target/arch/sparc32/vectors.o"/>
|
||||
<external-object source="target/arch/sparc32/entry.o"/>
|
||||
<external-object source="target/arch/sparc32/builtin.o"/>
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
$(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 $^
|
||||
|
||||
Reference in New Issue
Block a user