mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
1712cd62e7
commit
c914e2779d
@@ -25,11 +25,12 @@ do_configure_prepend () {
|
||||
}
|
||||
|
||||
EXTRA_OEMAKE = "CHECK_RUN_DIR=0"
|
||||
# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
|
||||
# PPC64 and 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
|
||||
EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
|
||||
EXTRA_OEMAKE_append_mips64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
|
||||
|
||||
do_compile() {
|
||||
oe_runmake
|
||||
|
||||
Reference in New Issue
Block a user