5408db0d9f
Disable -Werror by setting CWFLAGS to ""
This will avoid the following build failure raised since bump to version
4.2 in commit b03fc79745
:
mdadm.c: In function 'main':
mdadm.c:156:28: error: this statement may fall through [-Werror=implicit-fallthrough=]
154 | if (mode == ASSEMBLE || mode == BUILD ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/c0f216b7aadb794110409d03dcef7fa58e833cd4
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
43 lines
1005 B
Makefile
43 lines
1005 B
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_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
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
MDADM_BUILD_OPTS += USE_PTHREADS=
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
MDADM_DEPENDENCIES += 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) install-bin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|