bpftrace: fix do_configure failure when ptest disabled

After upgrade to 0.24.0, do_configure failed with error:

| CMake Error at cmake/Embed.cmake:3 (find_program):
|   Could not find XXD using the following names: xxd
| Call Stack (most recent call first):
|   src/stdlib/CMakeLists.txt:1 (include)

[1] df21d917d9

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Changqing Li 2025-10-16 15:28:36 +08:00 committed by Khem Raj
parent 97a9a1b93b
commit 8bc16df184
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -11,6 +11,7 @@ DEPENDS += "bison-native \
bcc \
libcereal \
libbpf \
xxd-native \
"
DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'pahole-native llvm-native', '', d)}"
@ -34,7 +35,7 @@ PACKAGECONFIG ?= " \
${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)} \
"
PACKAGECONFIG[tests] = "-DBUILD_TESTING=ON,-DBUILD_TESTING=OFF,gtest xxd-native"
PACKAGECONFIG[tests] = "-DBUILD_TESTING=ON,-DBUILD_TESTING=OFF,gtest"
PACKAGECONFIG[systemd] = "-DENABLE_SYSTEMD=ON,-DENABLE_SYSTEMD=OFF,systemd"
do_install_ptest() {