af31c309e7
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
33 lines
835 B
Makefile
33 lines
835 B
Makefile
################################################################################
|
|
#
|
|
# nvme
|
|
#
|
|
################################################################################
|
|
|
|
NVME_VERSION = v0.3
|
|
NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
|
|
NVME_LICENSE = GPL-2.0+
|
|
NVME_LICENSE_FILES = LICENSE
|
|
|
|
# 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
|
|
|
|
# LIBUDEV=1 means that libudev is _disabled_
|
|
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) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
|
PREFIX=/usr install-bin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|