summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/mdadm_3.3.4.bb
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2015-10-15 23:24:14 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-25 08:08:09 +0000
commit82107b120947171293d8aed839c2144139951828 (patch)
tree1a12375c38579f59397c6cabbe5d9bcf31d47c97 /meta/recipes-extended/mdadm/mdadm_3.3.4.bb
parentd8adfd28f71136e67fffbf79c32384a81ef29676 (diff)
downloadpoky-82107b120947171293d8aed839c2144139951828.tar.gz
mdadm: fix CFLAGS and ptest issues
* Pass global CFLAGS to build: The CFLAGS does not pass to build at all since it was redefined by mdadm Makefile: CFLAGS = $(CWFLAGS) $(CXFLAGS) ... This could be done by setting 'CXFLAGS="${CFLAGS}"'. * Also fix ptest build errors caused by global CFLAGS: raid6check.c:352:2: error: ignoring return value of posix_memalign, \ declared with attribute warn_unused_result [-Werror=unused-result] raid6check.c:315:8: error: 'stripe_buf' may be used uninitialized \ in this function [-Werror=maybe-uninitialized] (From OE-Core rev: 60f71fa4da86ca4c7c37115c343db194a3b7b47b) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/mdadm_3.3.4.bb')
-rw-r--r--meta/recipes-extended/mdadm/mdadm_3.3.4.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.4.bb b/meta/recipes-extended/mdadm/mdadm_3.3.4.bb
index 11981670e5..099361181e 100644
--- a/meta/recipes-extended/mdadm/mdadm_3.3.4.bb
+++ b/meta/recipes-extended/mdadm/mdadm_3.3.4.bb
@@ -13,6 +13,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \
13 file://gcc-4.9.patch \ 13 file://gcc-4.9.patch \
14 file://mdadm-3.3.2_x32_abi_time_t.patch \ 14 file://mdadm-3.3.2_x32_abi_time_t.patch \
15 file://0001-Fix-typo-in-comparision.patch \ 15 file://0001-Fix-typo-in-comparision.patch \
16 file://mdadm-fix-ptest-build-errors.patch \
16 file://run-ptest \ 17 file://run-ptest \
17 " 18 "
18SRC_URI[md5sum] = "7ca8b114710f98f53f20c5787b674a09" 19SRC_URI[md5sum] = "7ca8b114710f98f53f20c5787b674a09"
@@ -22,7 +23,7 @@ CFLAGS += "-fno-strict-aliasing"
22 23
23inherit autotools-brokensep 24inherit autotools-brokensep
24 25
25EXTRA_OEMAKE = "CHECK_RUN_DIR=0" 26EXTRA_OEMAKE = 'CHECK_RUN_DIR=0 CXFLAGS="${CFLAGS}"'
26# PPC64 and MIPS64 uses long long for u64 in the kernel, but powerpc's asm/types.h 27# PPC64 and MIPS64 uses long long for u64 in the kernel, but powerpc's asm/types.h
27# prevents 64-bit userland from seeing this definition, instead defaulting 28# prevents 64-bit userland from seeing this definition, instead defaulting
28# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get 29# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get