2015-03-19 06:29:19 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# hwloc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-01-20 18:49:39 +01:00
|
|
|
HWLOC_VERSION_MAJOR = 2.7
|
|
|
|
HWLOC_VERSION = $(HWLOC_VERSION_MAJOR).0
|
2015-03-19 06:29:19 +01:00
|
|
|
HWLOC_SOURCE = hwloc-$(HWLOC_VERSION).tar.bz2
|
2021-05-07 20:30:09 +02:00
|
|
|
HWLOC_SITE = https://download.open-mpi.org/release/hwloc/v$(HWLOC_VERSION_MAJOR)
|
2017-03-30 15:43:38 +02:00
|
|
|
HWLOC_LICENSE = BSD-3-Clause
|
2015-03-19 06:29:19 +01:00
|
|
|
HWLOC_LICENSE_FILES = COPYING
|
|
|
|
HWLOC_DEPENDENCIES = host-pkgconf
|
2017-05-30 20:04:23 +02:00
|
|
|
HWLOC_INSTALL_STAGING = YES
|
2021-01-28 10:27:52 +01:00
|
|
|
HWLOC_SELINUX_MODULES = hwloc
|
2015-03-19 06:29:19 +01:00
|
|
|
|
2021-05-07 20:30:09 +02:00
|
|
|
# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
|
|
|
|
# provided by autoconf relies on wchar_t.
|
|
|
|
HWLOC_CONF_ENV = ac_cv_prog_cc_c99=-std=gnu99
|
|
|
|
|
2015-03-19 06:29:19 +01:00
|
|
|
HWLOC_CONF_OPTS = \
|
|
|
|
--disable-opencl \
|
|
|
|
--disable-cuda \
|
|
|
|
--disable-nvml \
|
|
|
|
--disable-gl \
|
|
|
|
--disable-cairo \
|
|
|
|
--disable-doxygen
|
|
|
|
|
2021-05-23 11:43:46 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
HWLOC_CONF_OPTS += --enable-libudev
|
|
|
|
HWLOC_DEPENDENCIES += udev
|
|
|
|
else
|
|
|
|
HWLOC_CONF_OPTS += --disable-libudev
|
|
|
|
endif
|
|
|
|
|
2015-03-19 06:29:19 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCIACCESS),y)
|
|
|
|
HWLOC_CONF_OPTS += --enable-pci
|
|
|
|
HWLOC_DEPENDENCIES += libpciaccess
|
|
|
|
else
|
|
|
|
HWLOC_CONF_OPTS += --disable-pci
|
|
|
|
endif
|
|
|
|
|
2021-05-23 11:43:46 +02:00
|
|
|
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
|
|
|
|
|
2015-03-19 06:29:19 +01:00
|
|
|
$(eval $(autotools-package))
|