[OpenBIOS] [PATCH 2/2] ppc: Don't hardcode "ppc" arch for openbios-qemu.elf

Andreas Färber andreas.faerber at web.de
Sun Oct 3 15:20:37 CEST 2010


Use $(ARCH) to allow using a different linker script for ppc64.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
 arch/ppc/build.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/build.xml b/arch/ppc/build.xml
index 9778a43..4aec62f 100644
--- a/arch/ppc/build.xml
+++ b/arch/ppc/build.xml
@@ -178,7 +178,7 @@
 
  <executable name="openbios-qemu.elf" target="target" condition="QEMU">
   <rule>
-	$(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/ppc/qemu/ldscript -o $@.nostrip --whole-archive $^,"  LINK  $(TARGET_DIR)$@")
+	$(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/$(ARCH)/qemu/ldscript -o $@.nostrip --whole-archive $^,"  LINK  $(TARGET_DIR)$@")
 	$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-qemu.syms,"  GEN   $(TARGET_DIR)$@.syms")
 	$(call quiet-command,$(STRIP) $@.nostrip -o $@,"  STRIP $(TARGET_DIR)$@")</rule>
   <object source="qemu/start.S"/>
-- 
1.7.3




More information about the OpenBIOS mailing list