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

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Denys Zagorui 2023-09-01 05:56:53 -07:00 committed by Khem Raj
parent 10e2559081
commit 0bcfd6291f

View File

@ -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"