From ee55f2a29a3e5f2d6566519e6d9c0c7be81163f6 Mon Sep 17 00:00:00 2001 From: "Qi.Chen@windriver.com" Date: Thu, 29 Jun 2017 10:23:38 +0800 Subject: hwloc: add several PACKAGECONFIG items Add PACKAGECONFIG items to allow for more flexiblity. Signed-off-by: Chen Qi Signed-off-by: Martin Jansa --- meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'meta-oe') diff --git a/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb index e067f27996..5cf6e7eb94 100644 --- a/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb +++ b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb @@ -13,10 +13,16 @@ SRC_URI[sha256sum] = "95d80286dfe658a3f79e2ac90698782bb36e5504f4bac1bba2394ba14d inherit autotools -DEPENDS += "cairo ncurses udev libxml2 zlib libpciaccess" -DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" +DEPENDS += "ncurses udev zlib" DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" +PACKAGECONFIG ?= "pci libxml2 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" + +PACKAGECONFIG[numactl] = "--enable-libnuma,--disable-libnuma,numactl,numactl" +PACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2,libxml2" +PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11 cairo,cairo" +PACKAGECONFIG[pci] = "--enable-pci,--disable-pci,libpciaccess,libpciaccess" + # Split hwloc library into separate subpackage PACKAGES_prepend = " lib${PN} " FILES_lib${PN} += "${libdir}/lib${PN}.so*" -- cgit 1.2.3-korg