[PATCH] arm/edk2-basetools-native: Add missing libuuid dependency

Alex Chapman <[email protected]> Wed, 20 May 2026 14:43:54 +0100
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
GenFv requires libuuid in the native sysroot.

Add util-linux-libuuid-native and pass required flags through to the
BaseTools makefiles. This can be missed on machines with libuuid
headers installed, as the build may find the host copy instead.

Signed-off-by: Alex Chapman <[email protected]>
---
 .../recipes-bsp/uefi/edk2-basetools-native_202602.bb  | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta-arm/recipes-bsp/uefi/edk2-basetools-native_202602.bb b/=
meta-arm/recipes-bsp/uefi/edk2-basetools-native_202602.bb
index e2d927e2..28bd0dba 100644
--- a/meta-arm/recipes-bsp/uefi/edk2-basetools-native_202602.bb
+++ b/meta-arm/recipes-bsp/uefi/edk2-basetools-native_202602.bb
@@ -27,6 +27,17 @@ inherit native
=20
 RDEPENDS:${PN} +=3D "python3-core"
=20
+DEPENDS +=3D "util-linux-libuuid-native"
+
+EXTRA_OEMAKE +=3D "\
+    CC=3D'${BUILD_CC}' \
+    CXX=3D'${BUILD_CXX}' \
+    AR=3D'${BUILD_AR}' \
+    LINKER=3D'${BUILD_CC}' \
+    EXTRA_OPTFLAGS=3D'${BUILD_CFLAGS}' \
+    EXTRA_LDFLAGS=3D'${BUILD_LDFLAGS}' \
+"
+
 do_compile() {
     BASE_C=3D"${S}/BaseTools/Source/C"
=20