bdab457768
cpe:2.3🅰️mdadm_project:mdadm is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/detail/A4FAEC6A-3572-48E9-ABB8-C96D8C8B91AF Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# mdadm
|
|
#
|
|
################################################################################
|
|
|
|
MDADM_VERSION = 4.2
|
|
MDADM_SOURCE = mdadm-$(MDADM_VERSION).tar.xz
|
|
MDADM_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/raid/mdadm
|
|
MDADM_LICENSE = GPL-2.0+
|
|
MDADM_LICENSE_FILES = COPYING
|
|
MDADM_CPE_ID_VENDOR = mdadm_project
|
|
|
|
MDADM_CXFLAGS = $(TARGET_CFLAGS)
|
|
|
|
MDADM_BUILD_OPTS = \
|
|
CC=$(TARGET_CC) \
|
|
COROSYNC=-DNO_COROSYNC \
|
|
DLM=-DNO_DLM \
|
|
CWFLAGS="" \
|
|
CXFLAGS="$(MDADM_CXFLAGS)" \
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
|
|
CHECK_RUN_DIR=0
|
|
|
|
MDADM_INSTALL_TARGET_OPTS = install-bin
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
MDADM_BUILD_OPTS += USE_PTHREADS=
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
MDADM_DEPENDENCIES += udev
|
|
MDADM_INSTALL_TARGET_OPTS += install-udev
|
|
else
|
|
MDADM_CXFLAGS += -DNO_LIBUDEV
|
|
endif
|
|
|
|
define MDADM_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(MDADM_BUILD_OPTS) mdadm mdmon
|
|
endef
|
|
|
|
define MDADM_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(MDADM_INSTALL_TARGET_OPTS)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|