roms/ipxe: use configured compiler for ipxe
PATCH 1/1 roms/ipxe: use configured compiler for ipxe
configure allows to run a dedicated compiler binary, which is stored in CC and HOST_CC variables, and overrides the default 'cc' command.
This command however is not used when building ipxe from source. "make -C roms pxerom" invokes the buildsystem of ipxe.git, which has the command "gcc" hardcoded. That binary may not be suitable to build ipxe. Reuse the same compiler command that is used to build qemu by specifying CC and HOST_CC as make commandline option to override the built-in defaults of ipxe.
--- roms/Makefile | 2 ++ 1 file changed, 2 insertions(+)
roms/Makefile +2 -0
@@ -127,11 +127,13 @@ efi-rom-%: build-pxe-roms build-efi-roms build-pxe-roms: $(MAKE) -C ipxe/src CONFIG=qemu \ + CC=$(CC) HOST_CC=$(HOST_CC) \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin/%.rom,$(pxerom_targets)) build-efi-roms: build-pxe-roms $(MAKE) -C ipxe/src CONFIG=qemu \ + CC=$(CC) HOST_CC=$(HOST_CC) \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \ $(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets))
Am Wed, 18 Apr 2018 10:13:10 +0200
schrieb Olaf Hering <[email protected]>:
Quoted 4 lines
configure allows to run a dedicated compiler binary, which is stored in CC and
HOST_CCvariables, and overrides the default 'cc' command. This command however is not used when building ipxe from source. "make -C roms pxerom" invokes ...
Scratch that patch. make -C operates just below 'roms/' and does not use results from configure. The CC variable built into make(1) happens to be cc.
Olaf