Skip to content

Commit 779fa9d

Browse files
committed
roms: enable ipxe cross builds
1 parent bcf06c1 commit 779fa9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roms/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ find-cross-gcc = $(firstword $(wildcard $(patsubst %ld,%gcc,$(call find-cross-ld
3131
find-cross-prefix = $(subst gcc,,$(notdir $(call find-cross-gcc,$(1))))
3232

3333
powerpc64_cross_prefix := $(call find-cross-prefix,powerpc64)
34+
x86_64_cross_prefix := $(call find-cross-prefix,x86_64)
3435

3536
#
3637
# EfiRom utility is shipped with edk2 / tianocore, in BaseTools/
@@ -95,10 +96,12 @@ efi-rom-%: build-pxe-roms build-efi-roms
9596

9697
build-pxe-roms: ipxe/src/config/local/general.h
9798
$(MAKE) $(MAKEFLAGS) -C ipxe/src GITVERSION="" \
99+
CROSS_COMPILE=$(x86_64_cross_prefix) \
98100
$(patsubst %,bin/%.rom,$(pxerom_targets))
99101

100102
build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h
101103
$(MAKE) $(MAKEFLAGS) -C ipxe/src GITVERSION="" \
104+
CROSS_COMPILE=$(x86_64_cross_prefix) \
102105
$(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \
103106
$(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets))
104107

0 commit comments

Comments
 (0)