aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-04-07 15:36:42 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-07 16:02:20 +0200
commitccbb25b3fa50d998ac8f861af9b643ee4f5d54f6 (patch)
treed83794145e1a45041e275a1e8a13b02187c7e6d2
parent086de0847e330adce2ae4f1ada41fad9fe9dc3da (diff)
downloadbuildroot-ccbb25b3fa50d998ac8f861af9b643ee4f5d54f6.tar.gz
buildroot-ccbb25b3fa50d998ac8f861af9b643ee4f5d54f6.tar.bz2
package/nvme: add optional util-linux dependency
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/nvme/nvme.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/package/nvme/nvme.mk b/package/nvme/nvme.mk
index 8eab1dacfa..513720becb 100644
--- a/package/nvme/nvme.mk
+++ b/package/nvme/nvme.mk
@@ -9,13 +9,23 @@ NVME_SITE = $(call github,linux-nvme,nvme-cli,$(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
+
define NVME_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+ $(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
+ $(TARGET_MAKE_ENV) $(MAKE) $(NVME_MAKE_OPTS) -C $(@D) \
+ DESTDIR=$(TARGET_DIR) PREFIX=/usr install-bin
endef
$(eval $(generic-package))