[oe] [meta-networking][PATCH 1/2] dhcpcd: cleanup recipe

Pascal Bach pascal.bach at siemens.com
Thu Mar 17 13:25:10 UTC 2016


- use autotools-brokensep instead of B = "${S}"
- make udev configurable via PACKAGECONFIG
- make ipv6 configurable via PACKAGECONFIG

Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
Signed-off-by: Freudiger Raphael <raphael.freudiger at siemens.com>
---
 meta-networking/recipes-connectivity/dhcpcd/dhcpcd_6.10.0.bb | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/meta-networking/recipes-connectivity/dhcpcd/dhcpcd_6.10.0.bb b/meta-networking/recipes-connectivity/dhcpcd/dhcpcd_6.10.0.bb
index 058a932..76d0103 100644
--- a/meta-networking/recipes-connectivity/dhcpcd/dhcpcd_6.10.0.bb
+++ b/meta-networking/recipes-connectivity/dhcpcd/dhcpcd_6.10.0.bb
@@ -12,11 +12,13 @@ SRC_URI = "http://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz"
 SRC_URI[md5sum] = "f39c5773e7c4bea352d9fb7367c899de"
 SRC_URI[sha256sum] = "ab56af9b2e86913c55a965cb0f835e87749df78318564acf90d5d698f413ad35"
 
-inherit autotools
+inherit autotools-brokensep
 
-B = "${S}"
-EXTRA_OECONF = "--enable-ipv4 --enable-ipv6"
+PACKAGECONFIG ?= "udev ${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", d)}"
 
-FILES_${PN}-dbg += "${libdir}/dhcpcd/dev/.debug"
+PACKAGECONFIG[udev] = "--with-udev,--without-udev,udev,udev"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
+
+EXTRA_OECONF = "--enable-ipv4"
 
-RDEPENDS_${PN} = "udev"
+FILES_${PN}-dbg += "${libdir}/dhcpcd/dev/.debug"
-- 
2.1.4




More information about the Openembedded-devel mailing list