diff options
author | Chunrong Guo <B40290@freescale.com> | 2013-11-12 11:40:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-20 14:03:23 +0000 |
commit | 1ef7240bf3aac129fb3e67dfffb2275854d3c8d5 (patch) | |
tree | 15f820fdec37c78476905566781ff10b988f47af /meta/recipes-extended | |
parent | 943f4c161ca50df6c84f8882aa39113c05099e15 (diff) | |
download | poky-1ef7240bf3aac129fb3e67dfffb2275854d3c8d5.tar.gz |
mdadm: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
*PPC64 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.
*fix the below error
|super-ddf.c:4542:5: error: format '%llu' expects argument of type 'long long unsigned int',
|but argument 5 has type '__u64' [-Werror=format=]
|dprintf("BVD %u has %08x at %llu\n", 0,
(From OE-Core rev: d3caab6eb03264b4f4d744f914598022299011ba)
Signed-off-by: Chunrong Guo <B40290@freescale.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')
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_3.3.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.bb b/meta/recipes-extended/mdadm/mdadm_3.3.bb index 586e04aa5a..41816bc414 100644 --- a/meta/recipes-extended/mdadm/mdadm_3.3.bb +++ b/meta/recipes-extended/mdadm/mdadm_3.3.bb | |||
@@ -26,6 +26,11 @@ do_configure_prepend () { | |||
26 | } | 26 | } |
27 | 27 | ||
28 | EXTRA_OEMAKE = "CHECK_RUN_DIR=0" | 28 | EXTRA_OEMAKE = "CHECK_RUN_DIR=0" |
29 | # PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h | ||
30 | # prevents 64-bit userland from seeing this definition, instead defaulting | ||
31 | # to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get | ||
32 | # int-ll64.h included | ||
33 | EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__' | ||
29 | 34 | ||
30 | do_compile() { | 35 | do_compile() { |
31 | oe_runmake | 36 | oe_runmake |