]> Git Repo - qemu.git/commitdiff
roms: enable ipxe cross builds
authorGerd Hoffmann <[email protected]>
Mon, 23 Sep 2013 09:05:48 +0000 (11:05 +0200)
committerGerd Hoffmann <[email protected]>
Mon, 30 Sep 2013 07:44:35 +0000 (09:44 +0200)
roms/Makefile

index 5fcc77d7c22d9423821051c564a67396000c50d7..1966f040899198c1fac1d5cfb60b4af6fd57e1d6 100644 (file)
@@ -31,6 +31,7 @@ find-cross-gcc = $(firstword $(wildcard $(patsubst %ld,%gcc,$(call find-cross-ld
 find-cross-prefix = $(subst gcc,,$(notdir $(call find-cross-gcc,$(1))))
 
 powerpc64_cross_prefix := $(call find-cross-prefix,powerpc64)
+x86_64_cross_prefix := $(call find-cross-prefix,x86_64)
 
 #
 # EfiRom utility is shipped with edk2 / tianocore, in BaseTools/
@@ -95,10 +96,12 @@ efi-rom-%: build-pxe-roms build-efi-roms
 
 build-pxe-roms: ipxe/src/config/local/general.h
        $(MAKE) $(MAKEFLAGS) -C ipxe/src GITVERSION="" \
+               CROSS_COMPILE=$(x86_64_cross_prefix) \
                $(patsubst %,bin/%.rom,$(pxerom_targets))
 
 build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h
        $(MAKE) $(MAKEFLAGS) -C ipxe/src GITVERSION="" \
+               CROSS_COMPILE=$(x86_64_cross_prefix) \
                $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \
                $(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets))
 
This page took 0.025211 seconds and 4 git commands to generate.