summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/mdadm_3.3.bb
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-01-26 17:14:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-02 11:22:10 +0000
commitc914e2779da8915c3fb70083373ac619da561779 (patch)
treeb69785096d3f31094b01ac668efd3f643179bffc /meta/recipes-extended/mdadm/mdadm_3.3.bb
parent1712cd62e7ba97a292e91dab325c4cb195ff4179 (diff)
downloadpoky-c914e2779da8915c3fb70083373ac619da561779.tar.gz
mdadm: fix build on qemumips64
The mips64 uses long long for u64 in the kernel, but powerpc's asm/types.h prevents 64-bit userland from seeing this definition, instead defaulting to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get int-ll64.h included. We had a similar fix on ppc64, use it for mips64 will fix the problem. [YOCTO #5758] (From OE-Core rev: 97bc0d1575b08830e3953933cbbc5732b1a82b31) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/mdadm_3.3.bb')
-rw-r--r--meta/recipes-extended/mdadm/mdadm_3.3.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.bb b/meta/recipes-extended/mdadm/mdadm_3.3.bb
index cfb9ccd5c3..596b04ded8 100644
--- a/meta/recipes-extended/mdadm/mdadm_3.3.bb
+++ b/meta/recipes-extended/mdadm/mdadm_3.3.bb
@@ -25,11 +25,12 @@ do_configure_prepend () {
25} 25}
26 26
27EXTRA_OEMAKE = "CHECK_RUN_DIR=0" 27EXTRA_OEMAKE = "CHECK_RUN_DIR=0"
28# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h 28# PPC64 and MIPS64 uses long long for u64 in the kernel, but powerpc's asm/types.h
29# prevents 64-bit userland from seeing this definition, instead defaulting 29# prevents 64-bit userland from seeing this definition, instead defaulting
30# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get 30# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get
31# int-ll64.h included 31# int-ll64.h included
32EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__' 32EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
33EXTRA_OEMAKE_append_mips64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
33 34
34do_compile() { 35do_compile() {
35 oe_runmake 36 oe_runmake