suricata: improve PACKAGECONFIG[unittests] control

Allow downstream users to explicitly select desired PACKAGECONFIG
options (e.g. via "=").

Users are currently forced to use ":remove" (with "ptest").

Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
This commit is contained in:
Clayton Casciato
2026-01-21 20:51:42 -07:00
committed by Scott Murray
parent 9e6d962250
commit 83008a93aa
+1 -1
View File
@@ -46,8 +46,8 @@ PACKAGECONFIG ??= "file \
cap-ng \
net \
${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'unittests', '', d)} \
"
PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'unittests', '', d)}"
PACKAGECONFIG[pcre2] = "--with-libpcre2-includes=${STAGING_INCDIR} --with-libpcre2-libraries=${STAGING_LIBDIR}, ,libpcre2 ,"
PACKAGECONFIG[yaml] = "--with-libyaml-includes=${STAGING_INCDIR} --with-libyaml-libraries=${STAGING_LIBDIR}, ,libyaml ,"