diff options
| author | Robert Joslyn <robert.joslyn@redrectangle.org> | 2020-02-04 20:23:07 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-02-04 22:03:14 -0800 |
| commit | e2bf7b572c2e47b838dde2112f4af91f3da10cea (patch) | |
| tree | 7cd327f529dbd8329789162b75b3a3536b55460e | |
| parent | e44ff416216f970d18b98ba90eb02d1a6bb18b69 (diff) | |
| download | meta-openembedded-e2bf7b572c2e47b838dde2112f4af91f3da10cea.tar.gz | |
iwd: Add PACKAGECONFIG options
Make it easier to disable optional client, monitor, and man page
components and their dependencies. A user may want to disable the client
to avoid the use of GPLv3 readline.
Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/iwd/iwd_1.4.bb b/meta-oe/recipes-connectivity/iwd/iwd_1.4.bb index ed8f21ac1b..cfced50a0e 100644 --- a/meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +++ b/meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | |||
| @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" | |||
| 4 | 4 | ||
| 5 | inherit autotools pkgconfig systemd python3native | 5 | inherit autotools pkgconfig systemd python3native |
| 6 | 6 | ||
| 7 | DEPENDS = "ell readline python3-docutils-native" | 7 | DEPENDS = "ell" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ | 9 | SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ |
| 10 | file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ | 10 | file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ |
| @@ -13,7 +13,15 @@ SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ | |||
| 13 | SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261" | 13 | SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261" |
| 14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 15 | 15 | ||
| 16 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 16 | PACKAGECONFIG ??= " \ |
| 17 | client \ | ||
| 18 | monitor \ | ||
| 19 | manual-pages \ | ||
| 20 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | ||
| 21 | " | ||
| 22 | PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" | ||
| 23 | PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor" | ||
| 24 | PACKAGECONFIG[manual-pages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native" | ||
| 17 | PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" | 25 | PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" |
| 18 | PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" | 26 | PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" |
| 19 | PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" | 27 | PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" |
| @@ -27,6 +35,8 @@ do_configure_prepend () { | |||
| 27 | do_install_append() { | 35 | do_install_append() { |
| 28 | mkdir --parents ${D}${docdir}/${BPN} | 36 | mkdir --parents ${D}${docdir}/${BPN} |
| 29 | install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN} | 37 | install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN} |
| 38 | # If client and monitor are disabled, bindir is empty, causing a QA error | ||
| 39 | rmdir --ignore-fail-on-non-empty ${D}/${bindir} | ||
| 30 | } | 40 | } |
| 31 | 41 | ||
| 32 | FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/" | 42 | FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/" |
