Add support for configuring for multiple targets

git-svn-id: svn://coreboot.org/openbios/openbios-devel@420 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-01-23 20:09:26 +00:00
parent c2ccc6bf52
commit bcd092ad4a
21 changed files with 208 additions and 183 deletions

View File

@@ -22,13 +22,13 @@
</library>
<executable name="target/arch/x86/entry.o" target="target">
<rule><![CDATA[ arch/x86/entry.S
<rule><![CDATA[ $(SRCDIR)/arch/x86/entry.S
$(CC) $$EXTRACFLAGS $(AS_FLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $^]]></rule>
</executable>
<executable name="openbios.multiboot" target="target" condition="IMAGE_ELF_MULTIBOOT">
<rule>
$(LD) --warn-common -N -T arch/x86/ldscript -o $@.nostrip $^
$(LD) --warn-common -N -T $(SRCDIR)/arch/x86/ldscript -o $@.nostrip $^
$(NM) $@.nostrip | sort > $(ODIR)/openbios-multiboot.syms
cp $@.nostrip $@
$(STRIP) $@
@@ -47,7 +47,7 @@
<executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
<rule>
$(LD) --warn-common -N -T arch/x86/ldscript -o $@.nostrip $^
$(LD) --warn-common -N -T $(SRCDIR)/arch/x86/ldscript -o $@.nostrip $^
$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms
cp $@.nostrip $@
$(STRIP) $@
@@ -78,7 +78,7 @@
<executable name="target/arch/x86/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
<rule><![CDATA[
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ arch/x86/builtin.c
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/arch/x86/builtin.c
]]></rule>
<external-object source="target/include/static-dict.h"/>
</executable>
@@ -87,7 +87,7 @@
<executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
<rule>
$(LD) --warn-common -N -T arch/x86/ldscript -o $@.nostrip $^
$(LD) --warn-common -N -T $(SRCDIR)/arch/x86/ldscript -o $@.nostrip $^
$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms
cp $@.nostrip $@
$(STRIP) $@</rule>