* [Buildroot] [git commit] package/hwloc: add optional dependencies to udev, libxml2, ncurses & numactl
@ 2021-05-23 12:13 Yann E. MORIN
0 siblings, 0 replies; only message in thread
From: Yann E. MORIN @ 2021-05-23 12:13 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=648ff342db3bac164e098673ded1a82bb843f91a
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
udev:
https://github.com/open-mpi/hwloc/blob/master/config/hwloc.m4#L626
libxml2:
https://github.com/open-mpi/hwloc/blob/master/config/hwloc.m4#L1273
ncurses:
https://github.com/open-mpi/hwloc/blob/master/config/hwloc_internal.m4#L340
numactl:
https://github.com/open-mpi/hwloc/blob/master/config/hwloc_internal.m4#L419
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[yann.morin.1998 at free.fr: drop unconditional --disable-libxml2]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
package/hwloc/hwloc.mk | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/package/hwloc/hwloc.mk b/package/hwloc/hwloc.mk
index 77a25a1775..2a5a82cea4 100644
--- a/package/hwloc/hwloc.mk
+++ b/package/hwloc/hwloc.mk
@@ -24,9 +24,15 @@ HWLOC_CONF_OPTS = \
--disable-nvml \
--disable-gl \
--disable-cairo \
- --disable-libxml2 \
--disable-doxygen
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+HWLOC_CONF_OPTS += --enable-libudev
+HWLOC_DEPENDENCIES += udev
+else
+HWLOC_CONF_OPTS += --disable-libudev
+endif
+
ifeq ($(BR2_PACKAGE_LIBPCIACCESS),y)
HWLOC_CONF_OPTS += --enable-pci
HWLOC_DEPENDENCIES += libpciaccess
@@ -34,4 +40,19 @@ else
HWLOC_CONF_OPTS += --disable-pci
endif
+ifeq ($(BR2_PACKAGE_LIBXML2),y)
+HWLOC_CONF_OPTS += --enable-libxml2
+HWLOC_DEPENDENCIES += libxml2
+else
+HWLOC_CONF_OPTS += --disable-libxml2
+endif
+
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+HWLOC_DEPENDENCIES += ncurses
+endif
+
+ifeq ($(BR2_PACKAGE_NUMACTL),y)
+HWLOC_DEPENDENCIES += numactl
+endif
+
$(eval $(autotools-package))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-23 12:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 12:13 [Buildroot] [git commit] package/hwloc: add optional dependencies to udev, libxml2, ncurses & numactl Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.