diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-09-23 11:05:48 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-09-30 09:44:35 +0200 |
commit | 779fa9d7060c547059ff1993dd38bea565d7f2e7 (patch) | |
tree | 34c754faeae46c348a96eb8abe996c4a4564a6db /roms/Makefile | |
parent | bcf06c15e7beb31a9839951ee24a809b6919a85e (diff) |
roms: enable ipxe cross builds
Diffstat (limited to 'roms/Makefile')
-rw-r--r-- | roms/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roms/Makefile b/roms/Makefile index 5fcc77d7c2..1966f04089 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -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)) |