diff mbox series

[1/4] gnu-efi: pass HOSTCC and INCLUDEDIR

Message ID 20241129173803.3499627-1-ross.burton@arm.com
State New
Headers show
Series [1/4] gnu-efi: pass HOSTCC and INCLUDEDIR | expand

Commit Message

Ross Burton Nov. 29, 2024, 5:38 p.m. UTC
Pass the correct host compiler (HOSTCC) and include directory to the
build.

Also enable verbose builds (V=1).

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-bsp/gnu-efi/gnu-efi_3.0.18.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.18.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.18.bb
index 8257190568f..092e7ed863f 100644
--- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.18.bb
+++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.18.bb
@@ -39,8 +39,11 @@  do_compile:prepend() {
     unset LDFLAGS
 }
 
-EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \
-                'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 'LIBDIR=${libdir}' \
+EXTRA_OEMAKE = "'V=1' 'ARCH=${@gnu_efi_arch(d)}' \
+                'HOSTCC=${BUILD_CC}' 'CC=${CC}' \
+                'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \
+                'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' \
+                'PREFIX=${prefix}' 'LIBDIR=${libdir}' 'INCLUDEDIR=${includedir}' \
                 "
 
 # gnu-efi's Makefile treats prefix as toolchain prefix, so don't