Return-Path: X-Greylist: delayed 1279 seconds by postgrey-1.34 at layers.openembedded.org; Fri, 31 Jan 2020 21:44:59 UTC Received: from mslow2.mail.gandi.net (mslow2.mail.gandi.net [217.70.178.242]) by mail.openembedded.org (Postfix) with ESMTP id 7961C60592 for ; Fri, 31 Jan 2020 21:44:59 +0000 (UTC) Received: from relay8-d.mail.gandi.net (unknown [217.70.183.201]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 03C113A39D2 for ; Fri, 31 Jan 2020 21:21:48 +0000 (UTC) X-Originating-IP: 173.197.191.182 Received: from localhost.localdomain (rrcs-173-197-191-182.west.biz.rr.com [173.197.191.182]) (Authenticated sender: robert.joslyn@redrectangle.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 125121BF204; Fri, 31 Jan 2020 21:21:46 +0000 (UTC) From: Robert Joslyn To: openembedded-devel@lists.openembedded.org Date: Fri, 31 Jan 2020 13:20:56 -0800 Message-Id: <20200131212057.1856967-2-robert.joslyn@redrectangle.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200131212057.1856967-1-robert.joslyn@redrectangle.org> References: <20200131212057.1856967-1-robert.joslyn@redrectangle.org> MIME-Version: 1.0 Subject: [meta-oe][PATCH 2/3] iwd: Add PACKAGECONFIG options X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2020 21:45:01 -0000 Content-Transfer-Encoding: 8bit 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 --- meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 14 ++++++++++++-- 1 file 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 49fc45a74..a023c0d28 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" inherit autotools pkgconfig systemd python3native -DEPENDS = "ell readline python3-docutils-native" +DEPENDS = "ell" SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ @@ -12,7 +12,15 @@ SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261" S = "${WORKDIR}/git" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG ??= " \ + client \ + monitor \ + manual-pages \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ +" +PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" +PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor" +PACKAGECONFIG[manual-pages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native" PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" @@ -26,6 +34,8 @@ do_configure_prepend () { do_install_append() { mkdir --parents ${D}${docdir}/${BPN} install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN} + # If client and monitor are disabled, bindir is empty, causing a QA error + rmdir --ignore-fail-on-non-empty ${D}/${bindir} } FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/" -- 2.24.1