diff options
author | Chunrong Guo <B40290@freescale.com> | 2013-11-12 11:40:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-12 17:00:19 +0000 |
commit | e5d7ea2baba26181ccfd72556ed4d9ffdb63c937 (patch) | |
tree | 3b366259f66ed96a77e508cc0c551b55e5f3fe37 /meta | |
parent | 5b616aa7b618f6ed221d6fa9738220a2c2349f7d (diff) | |
download | poky-e5d7ea2baba26181ccfd72556ed4d9ffdb63c937.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 master rev: d3caab6eb03264b4f4d744f914598022299011ba)
(From OE-Core rev: c5e59e68efcf2a3f902dbfd827da57ed3e8ad4ce)
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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_3.2.6.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_3.2.6.bb b/meta/recipes-extended/mdadm/mdadm_3.2.6.bb index 50f39dbc0d..382c0c128a 100644 --- a/meta/recipes-extended/mdadm/mdadm_3.2.6.bb +++ b/meta/recipes-extended/mdadm/mdadm_3.2.6.bb | |||
@@ -27,6 +27,11 @@ do_configure_prepend () { | |||
27 | } | 27 | } |
28 | 28 | ||
29 | EXTRA_OEMAKE = "CHECK_RUN_DIR=0" | 29 | EXTRA_OEMAKE = "CHECK_RUN_DIR=0" |
30 | # PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h | ||
31 | # prevents 64-bit userland from seeing this definition, instead defaulting | ||
32 | # to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get | ||
33 | # int-ll64.h included | ||
34 | EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__' | ||
30 | 35 | ||
31 | do_compile() { | 36 | do_compile() { |
32 | oe_runmake | 37 | oe_runmake |