kumquat-buildroot/package/mdadm/mdadm.mk
Bernd Kuhls 47b693fb9b package/mdadm: bump version to 4.0
This version of mdadm can optionally use the corosync and libdlm
packages. However, it checks for their presence by directly probing the
host /usr/include, which fails for cross-compilation:

http://git.neil.brown.name/?p=mdadm.git;a=commitdiff;h=7716570e6d906e7326f83d466f6ba73009649d03#patch2
http://git.neil.brown.name/?p=mdadm.git;a=commitdiff;h=d15a1f72bd92bc4724ee94b2ae8132633ffeb72b#patch1

Since Buildroot doesn't package either corosync nor libdlm, disable
them explicitly with -DNO_COROSYNC -DNO_DLM.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2017-08-10 00:12:13 +02:00

24 lines
646 B
Makefile

################################################################################
#
# mdadm
#
################################################################################
MDADM_VERSION = 4.0
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_MAKE_OPTS = \
CFLAGS="$(TARGET_CFLAGS) -DNO_COROSYNC -DNO_DLM" CC="$(TARGET_CC)" CHECK_RUN_DIR=0 -C $(MDADM_DIR) mdadm
MDADM_INSTALL_TARGET_OPTS = \
DESTDIR=$(TARGET_DIR)/usr -C $(MDADM_DIR) install-mdadm
define MDADM_CONFIGURE_CMDS
# Do nothing
endef
$(eval $(autotools-package))