From: kaf24@localhost.localdomain Date: Sun, 28 Jan 2007 18:45:04 +0000 (+0000) Subject: Fix firmware compile on Solaris. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15371^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6696b4ae8968e2dc2cf6c0ceb856ebce57a1f719;p=xen.git Fix firmware compile on Solaris. Use $(LD) not ld. Include right headers for x86 ELF bits. Signed-off-by: John Levon --- diff --git a/tools/firmware/hvmloader/32bitbios_support.c b/tools/firmware/hvmloader/32bitbios_support.c index f8a9e85975..f9274090cc 100644 --- a/tools/firmware/hvmloader/32bitbios_support.c +++ b/tools/firmware/hvmloader/32bitbios_support.c @@ -17,7 +17,12 @@ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place - Suite 330, Boston, MA 02111-1307 USA. */ +#include #include +#ifdef __sun__ +#include +#endif + #include #include "util.h" #include "config.h" @@ -35,7 +40,7 @@ static int relocate_elf(unsigned char *elfarray) { int i; if (ehdr->e_type != ET_REL) { - printf("Not a relocatabel BIOS object file. Has type %d, need %d\n", + printf("Not a relocatable BIOS object file. Has type %d, need %d\n", ehdr->e_type, ET_REL); return -1; } diff --git a/tools/firmware/rombios/32bit/Makefile b/tools/firmware/rombios/32bit/Makefile index 01e6864683..f47e1dbf98 100644 --- a/tools/firmware/rombios/32bit/Makefile +++ b/tools/firmware/rombios/32bit/Makefile @@ -30,7 +30,7 @@ clean: done; $(TARGET): subdirs 32bitbios.o util.o - ld $(LDFLAGS_DIRECT) -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o + $(LD) $(LDFLAGS_DIRECT) -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o @nm 32bitbios_all.o | \ grep -E -q '^ +U ' && { \ echo "There are undefined symbols in the BIOS:"; \ diff --git a/tools/firmware/rombios/32bit/tcgbios/Makefile b/tools/firmware/rombios/32bit/tcgbios/Makefile index 44b115ebad..871b8d6c31 100644 --- a/tools/firmware/rombios/32bit/tcgbios/Makefile +++ b/tools/firmware/rombios/32bit/tcgbios/Makefile @@ -19,4 +19,4 @@ clean: rm -rf *.o $(TARGET) $(TARGET): $(OBJECTS) - ld $(LDFLAGS_DIRECT) -r $^ -o $@ + $(LD) $(LDFLAGS_DIRECT) -r $^ -o $@