neard: use WIRELESS_DAEMON

Honor WIRELESS_DAEMON when wifi is enable for DISTRO_FEATURE.

(From OE-Core rev: 86b408919d9506b6f1ba69c96f1bc6212e724bbc)

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
João Henrique Ferreira de Freitas
2025-03-21 21:55:52 -03:00
committed by Richard Purdie
parent 6988ab0efa
commit 239a262c12

View File

@@ -40,9 +40,10 @@ do_install:append() {
RDEPENDS:${PN} = "dbus"
# Bluez & Wifi are not mandatory except for handover
WIRELESS_DAEMON ??= "wpa-supplicant"
RRECOMMENDS:${PN} = "\
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wifi','wpa-supplicant', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wifi','${WIRELESS_DAEMON}', '', d)} \
"
INITSCRIPT_NAME = "neard"