package/nvme: needs dynamic library

Buildroot commit f75faf4350 bumped nvme
from 1.12 to 2.15 which depends on dynamic library:

../libnvme-wrap.c:8:10: fatal error: dlfcn.h: No such file or directory
    8 | #include <dlfcn.h>

Fixes:
https://autobuild.buildroot.net/results/5bc/5bccbbd7ad4ce4a6898f6bcfd0a92c09e61324ca/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls
2025-11-05 19:51:49 +01:00
committed by Peter Korsgaard
parent c530f9d846
commit 9e8a6c0dc2
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
config BR2_PACKAGE_NVME
bool "nvme"
depends on !BR2_STATIC_LIBS # dlfcn.h
depends on BR2_USE_MMU # libnvme
select BR2_PACKAGE_LIBNVME
help
@@ -7,3 +8,7 @@ config BR2_PACKAGE_NVME
Express (optimized PCI Express SSD interface) devices.
https://github.com/linux-nvme/nvme-cli
comment "nvme needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
depends on BR2_USE_MMU

View File

@@ -3,7 +3,7 @@ config BR2_PACKAGE_PETITBOOT
depends on BR2_PACKAGE_KEXEC_ARCH_SUPPORTS || BR2_PACKAGE_KEXEC_LITE_ARCH_SUPPORTS
depends on BR2_USE_MMU # lvm2, agetty
depends on BR2_USE_WCHAR # elfutils, kexec-lite
depends on !BR2_STATIC_LIBS # elfutils, kexec-lite, lvm2
depends on !BR2_STATIC_LIBS # elfutils, kexec-lite, lvm2, nvme
depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils, kexec-lite, lvm2
depends on BR2_PACKAGE_HAS_UDEV
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 || !BR2_PACKAGE_KEXEC_ARCH_SUPPORTS # kexec