Skip to contentSkip to conversation

bpftool: add native and nativesdk support

PATCH New Denys Zagorui 1 participant 1 message Sep 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpftool: add native and nativesdk support

There are issues with nativesdk variant
...
ERROR: nativesdk-bpftool-1.0-r0 do_package: QA Issue:
nativesdk-bpftool: Files/directories were installed but not shipped in any package:
/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-xesdk-linux/usr/sbin/bpftool /usr/share/bash-completion/completions/bpftool
...

nativesdk.bbclass sets sbindir = "${bindir}" but bpftool is installed under sbin to fix that add sbin to FILES

for bpftool completions {prefix} is not used but it seems that bitbake expects that installed files should be perfixed with "${SDKPATHNATIVE}${prefix_nativesdk}" to fix that override bash_compdir

---
 meta-oe/recipes-kernel/bpftool/bpftool.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-kernel/bpftool/bpftool.bb +5 -0
index bbfab47aa..317ec1926 100644
@@ -18,6 +18,7 @@ EXTRA_OEMAKE = "\
     LD="${LD}" \
     AR=${AR} \
     ARCH=${ARCH} \
+    bash_compdir=${prefix}/share/bash-completion \
 "
 
 SECURITY_CFLAGS = ""
@@ -42,3 +43,7 @@ python do_package:prepend() {
 }
 
 B = "${WORKDIR}/${BPN}-${PV}"
+
+FILES:${PN} += "${exec_prefix}/sbin/*"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.35.6