2016-02-14 12:01:40 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nvme
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
NVME_VERSION = v0.3
|
|
|
|
NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
|
|
|
|
NVME_LICENSE = GPLv2+
|
2016-03-02 23:46:42 +01:00
|
|
|
NVME_LICENSE_FILES = LICENSE
|
2016-02-14 12:01:40 +01:00
|
|
|
|
2016-04-19 03:54:24 +02:00
|
|
|
# Yes LIBUDEV=0 means udev support enabled, LIBUDEV=1 means udev
|
|
|
|
# support disabled.
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
NVME_DEPENDENCIES += udev
|
|
|
|
NVME_MAKE_OPTS += LIBUDEV=0
|
|
|
|
else
|
|
|
|
NVME_MAKE_OPTS += LIBUDEV=1
|
|
|
|
endif
|
|
|
|
|
2016-02-14 12:01:40 +01:00
|
|
|
# LIBUDEV=1 means that libudev is _disabled_
|
|
|
|
define NVME_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
2016-04-19 03:54:24 +02:00
|
|
|
$(NVME_MAKE_OPTS) -C $(@D)
|
2016-02-14 12:01:40 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define NVME_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
|
|
|
PREFIX=/usr install-bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|