summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2025-08-28 15:34:23 +0100
committerKhem Raj <raj.khem@gmail.com>2025-08-28 07:56:52 -0700
commit9b5fc1605be1dfd44bbbe6a1f06fd4d5655ebb7f (patch)
tree48739bc11fb31a6fd4f7d6ce0149ed5a60c74c14
parentc800a3ed96c267cdb4fd6cf3a7b1040850e331e8 (diff)
downloadmeta-openembedded-9b5fc1605be1dfd44bbbe6a1f06fd4d5655ebb7f.tar.gz
libiio: Add sysvinit support
Libiio can also be built with a sysvinit init script. Hence, enable it as iiod still runs on some system running sysvinit init scripts. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/libiio/libiio_0.26.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libiio/libiio_0.26.bb b/meta-oe/recipes-support/libiio/libiio_0.26.bb
index 2fcb9e02aa..99c153149c 100644
--- a/meta-oe/recipes-support/libiio/libiio_0.26.bb
+++ b/meta-oe/recipes-support/libiio/libiio_0.26.bb
@@ -16,7 +16,7 @@ DEPENDS = " \
16 flex-native bison-native libaio \ 16 flex-native bison-native libaio \
17" 17"
18 18
19inherit cmake python3native systemd setuptools3 pkgconfig 19inherit cmake python3native systemd setuptools3 pkgconfig update-rc.d
20 20
21EXTRA_OECMAKE = " \ 21EXTRA_OECMAKE = " \
22 -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 22 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -25,6 +25,7 @@ EXTRA_OECMAKE = " \
25 -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines' \ 25 -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines' \
26 -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \ 26 -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \ 27 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '-DWITH_SYSVINIT=on', '', d)} \
28" 29"
29 30
30PACKAGECONFIG ??= " \ 31PACKAGECONFIG ??= " \
@@ -59,6 +60,7 @@ FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}"
59 60
60SYSTEMD_PACKAGES = "${PN}-iiod" 61SYSTEMD_PACKAGES = "${PN}-iiod"
61SYSTEMD_SERVICE:${PN}-iiod = "iiod.service" 62SYSTEMD_SERVICE:${PN}-iiod = "iiod.service"
63INITSCRIPT_NAME = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'iiod', '', d)}"
62 64
63# Explicitly define do_configure, do_compile and do_install because both cmake and setuptools3 have 65# Explicitly define do_configure, do_compile and do_install because both cmake and setuptools3 have
64# EXPORT_FUNCTIONS do_configure do_compile do_install 66# EXPORT_FUNCTIONS do_configure do_compile do_install