summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/bpftool
Commit message (Collapse)AuthorAgeFilesLines
* bpftool: fix libelf.h not found errorPreeti Sachan2025-01-201-1/+1
| | | | | | | | | | | | | When build host machine is not installed with elfutils-libelf-devel, it throws compile error "libelf.h: No such file or directory". Fix missing headers file by including path ${STAGING_INCDIR_NATIVE} via CFLAGS variable. Use headers file from ${STAGING_INCDIR_NATIVE} instead of host machine. Error: | libbpf_internal.h:19:10: fatal error: libelf.h: No such file or directory Signed-off-by: Preeti Sachan <preeti.sachan@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* bpftool: Add support for riscv64Harish Sadineni2024-09-221-1/+1
| | | | | | | bpftool is supported for riscv64 and tested on qemuriscv64. Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* bpftool: Add missing dep on elfutils-nativeKhem Raj2024-01-311-1/+2
| | | | | | Point host CC to OE defined BUILD_CC Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: add native and nativesdk supportDenys Zagorui2023-09-071-0/+5
| | | | | | | | | | | | | | | | | | | | 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>
* bpftool: return do_configure dependencyDenys Zagorui2023-05-241-0/+2
| | | | | | | | | | | return do_configure dependency that was removed by (3de33c7ecc99 "bpftool: Fix externalsrc support") do_configure and do_populate_lic runs independently and do_configure require prepared kernel sources dir Signed-off-by: Denys Zagorui <dzagorui@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: Fix externalsrc supportDenys Zagorui2023-05-231-3/+1
| | | | | | | | | | | | | | | When the externalsrc class is used the tasks listed in SRCTREECOVEREDTASKS are deleted to prevent them being executed. If externalsrc is used for the kernel then this will include virtual/kernel:do_patch. We can depend on do_shared_workdir instead as this will survive when externalsrc is used. Similar to [openembedded-core] (eab605bab945 "perf: Fix externalsrc support") Signed-off-by: Denys Zagorui <dzagorui@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: add aarch64 to COMPATIBLE_HOSTGianluigi Spagnuolo2022-09-291-1/+1
|
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-2/+2
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* bpftool: improve reproducibilityINC@Cisco)2021-03-301-1/+10
| | | | | | | | | Pass -f(debug|macro)-prefix-map through CC because libbpf build system overrides CFLAGS. Also remap STAGING_KERNEL_DIR because it is also stored in resulting executable Signed-off-by: Denys Zagorui <dzagorui@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: remove recipe from blacklistINC@Cisco)2021-03-281-1/+1
| | | | | | | | Have not seen build issues for 5.4 and 5.10 x86-64 kernels so allow to build it Signed-off-by: Denys Zagorui <dzagorui@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* use weak assignments for PNBLACKLIST in recipe filesRobert P. J. Day2020-05-261-1/+1
| | | | | | | | Make sure PNBLACKLIST assignments in recipe files use weak assignment, so they can be overridden in, for example, local.conf files. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* vboxguestdrivers,can-isotp,bpftool: Add to BlacklistKhem Raj2019-09-071-0/+1
| | | | | | They need forward porting to kernel 5.2+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool.bb: Disable SECURITY_CFLAGSKhem Raj2019-08-291-1/+3
| | | | | | | | | | | | | We do not pass CFLAGS to build and fortify sources needs some optimization to be enabled, its better to reset the additional flags and let the build system add them as it needs Fixes build failures like tools/include/tools/libc_compat.h:11:21: error: static declaration of 'reallocarray' follows non-static declaration | 11 | static inline void *reallocarray(void *ptr, size_t nmemb, size_t size) | | ^~~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: remove LIC_FILES_CHKSUMNicolas Dechesne2019-05-101-1/+0
| | | | | | | | | | | | | | | bpftool is a 'special' recipe since it does "inherit kernelsrc", like perf in oe-core or cpupower in meta-oe. they don't have their own sources, but reuse the kernel source tree, from virtual/kernel recipe. As such, checking the license file does not seem relevant, since the fetching (and license check) is deferred to the virtual/kernel recipe. Remove LIC_FILES_CHKSUM like it is done in perf and cpupower. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: remove True option to getVar calls (again)André Draszik2019-01-131-1/+1
| | | | | | | | | | | | | | A couple have still been missed in the past despite multiple attempts at doing so (or simply have re-appeared?). Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: don't build under muslKhem Raj2018-12-041-0/+2
| | | | | | | uses FTW_SKIP_SUBTREE which is GNU extentions, available in glibc but not in musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: add new recipeDaniel Díaz2018-06-271-0/+31
The bpftool allows for inspection and simple manipulation of eBPF programs and maps, so common in the kernel selftests. Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>