2016-02-14 12:01:40 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nvme
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-04-07 15:36:43 +02:00
|
|
|
NVME_VERSION = v1.7
|
2016-02-14 12:01:40 +01:00
|
|
|
NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
NVME_LICENSE = GPL-2.0+
|
2016-03-02 23:46:42 +01:00
|
|
|
NVME_LICENSE_FILES = LICENSE
|
2016-02-14 12:01:40 +01:00
|
|
|
|
2019-04-07 15:36:42 +02:00
|
|
|
# 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
|
|
|
|
|
2016-02-14 12:01:40 +01:00
|
|
|
define NVME_BUILD_CMDS
|
2019-04-07 15:36:42 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
|
|
|
$(NVME_MAKE_OPTS) -C $(@D)
|
2016-02-14 12:01:40 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define NVME_INSTALL_TARGET_CMDS
|
2019-04-07 15:36:42 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(NVME_MAKE_OPTS) -C $(@D) \
|
|
|
|
DESTDIR=$(TARGET_DIR) PREFIX=/usr install-bin
|
2016-02-14 12:01:40 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|