libiio: Move sysvinit script to libiio-iiod package

There is no use in the init script outside of iiod package. Package it
accordingly.

Fixes: 9b5fc1605b ("libiio: Add sysvinit support")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Alexander Stein
2026-07-24 09:24:50 +02:00
committed by Khem Raj
parent 26c4d0beda
commit c9b783f2e1
@@ -52,6 +52,7 @@ RDEPENDS:${PN}:remove = "python3-core"
RDEPENDS:${PN}-python3 = "${PN} python3-core python3-ctypes python3-stringold" RDEPENDS:${PN}-python3 = "${PN} python3-core python3-ctypes python3-stringold"
FILES:${PN}-iiod = " \ FILES:${PN}-iiod = " \
${sysconfdir}/init.d/iiod \
${sbindir}/iiod \ ${sbindir}/iiod \
${systemd_system_unitdir}/iiod.service \ ${systemd_system_unitdir}/iiod.service \
" "
@@ -60,7 +61,8 @@ FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}"
SYSTEMD_PACKAGES = "${PN}-iiod" SYSTEMD_PACKAGES = "${PN}-iiod"
SYSTEMD_SERVICE:${PN}-iiod = "iiod.service" SYSTEMD_SERVICE:${PN}-iiod = "iiod.service"
INITSCRIPT_NAME = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'iiod', '', d)}" INITSCRIPT_PACKAGES = "${PN}-iiod"
INITSCRIPT_NAME:${PN}-iiod = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'iiod', '', d)}"
# Explicitly define do_configure, do_compile and do_install because both cmake and setuptools3 have # Explicitly define do_configure, do_compile and do_install because both cmake and setuptools3 have
# EXPORT_FUNCTIONS do_configure do_compile do_install # EXPORT_FUNCTIONS do_configure do_compile do_install