282c7b6e64
systemd is an optional dependency (enabled by default) since version
1.10 and
48c10dbfaf
Fixes:
- http://autobuild.buildroot.org/results/8d14a5702aa1ffe3f036d1e1505e9596e3d4d466
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# nvme
|
|
#
|
|
################################################################################
|
|
|
|
NVME_VERSION = 1.12
|
|
NVME_SITE = $(call github,linux-nvme,nvme-cli,v$(NVME_VERSION))
|
|
NVME_LICENSE = GPL-2.0+
|
|
NVME_LICENSE_FILES = LICENSE
|
|
|
|
# Yes, LIBUUID=0 means libuuid support enabled.
|
|
# LIBUUID=1 means libuuid support disabled.
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
|
NVME_DEPENDENCIES += util-linux
|
|
NVME_MAKE_OPTS += LIBUUID=0
|
|
else
|
|
NVME_MAKE_OPTS += LIBUUID=1
|
|
endif
|
|
|
|
# Yes, HAVE_SYSTEMD=0 means systemd support enabled.
|
|
# HAVE_SYSTEMD=1 means systemd support disabled.
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
NVME_DEPENDENCIES += systemd
|
|
NVME_MAKE_OPTS += HAVE_SYSTEMD=0
|
|
else
|
|
NVME_MAKE_OPTS += HAVE_SYSTEMD=1
|
|
endif
|
|
|
|
define NVME_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
|
$(NVME_MAKE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define NVME_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(NVME_MAKE_OPTS) -C $(@D) \
|
|
DESTDIR=$(TARGET_DIR) PREFIX=/usr install-bin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|