mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 22:56:33 +00:00
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>
This commit is contained in:
parent
086de0847e
commit
ccbb25b3fa
@ -9,13 +9,23 @@ NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
|
|||||||
NVME_LICENSE = GPL-2.0+
|
NVME_LICENSE = GPL-2.0+
|
||||||
NVME_LICENSE_FILES = LICENSE
|
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
|
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
|
endef
|
||||||
|
|
||||||
define NVME_INSTALL_TARGET_CMDS
|
define NVME_INSTALL_TARGET_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
$(TARGET_MAKE_ENV) $(MAKE) $(NVME_MAKE_OPTS) -C $(@D) \
|
||||||
PREFIX=/usr install-bin
|
DESTDIR=$(TARGET_DIR) PREFIX=/usr install-bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user