V2: Add machine qemuaarch64
cover V2: Add machine qemuaarch64
V2:
* fix kernel linux-yocto build faiure
* redefine position of dynamic linker from /lib to /lib64
* other fixes of userspace packages
Test with Joe Slater's patches:
* siteinfo: account for 32 and 64 bit arm
* sysprof: add aarch64 support
The following changes since commit fceef0cace6670a8c5f15cd2f31a191176732730:
bitbake: data_smart: Fix remove operator and its interaction with data expansion (2014-09-13 08:52:49 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib kangkai/qemuarm64
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/qemuarm64
Kai Kang (9):
linux-yocto: depend on libgcc for aarch64 Add machine qemuarm64
gcc-4.9: redefine dynamic linker for aarch64
libatomics-ops: add aarch64 target iniitial support
qt4-native: add aarch64 support
qt4: add aarch64 support
qt4-embedded: disable webkit
libpng: add neon option for aarch64
perf: disable libunwind support for aarch64
meta/conf/bitbake.conf | 1 + meta/conf/machine/include/arm/arch-armv8.inc | 20 + meta/conf/machine/qemuarm64.conf | 12 + meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++ meta/recipes-kernel/linux/linux-yocto.inc | 1 + meta/recipes-kernel/perf/perf-features.inc | 1 + meta/recipes-multimedia/libpng/libpng_1.6.13.bb | 1 + .../0001-libatomic_ops-Aarch64-basic-port.patch | 239 ++++++++++ .../pulseaudio/libatomics-ops_7.2.bb | 1 + meta/recipes-qt/qt4/qt4-4.8.6.inc | 4 + .../0029-aarch64_arm64_fix_arch_detection.patch | 53 +++ .../0030-aarch64_arm64_qatomic_support.patch | 491 +++++++++++++++++++++ .../qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patch | 124 ++++++ .../qt4/qt4-4.8.6/0032-aarch64_add_header.patch | 18 + meta/recipes-qt/qt4/qt4-embedded_4.8.6.bb | 1 + meta/recipes-qt/qt4/qt4-native.inc | 4 + meta/recipes-qt/qt4/qt4-x11-free_4.8.6.bb | 3 + meta/recipes-qt/qt4/qt4_arch.inc | 1 + 19 files changed, 1010 insertions(+) create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc create mode 100644 meta/conf/machine/qemuarm64.conf create mode 100644 meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch create mode 100644 meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0029-aarch64_arm64_fix_arch_detection.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0030-aarch64_arm64_qatomic_support.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0032-aarch64_add_header.patch
Signature · 1 line
1.9.1
PATCH 1/9 linux-yocto: depend on libgcc for aarch64
Make aarch aarch64 kernel depend on libgcc. In arch/arm64/Makefile, it adds LIBGCC to libs-y:
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
libs-y += $(LIBGCC)
If build without libgcc, the value of LIBGCC is just libgcc.a without parent directory. linux-yocto fails to build:
| LD vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
Add libgcc to aarch64 kernel dependency.
--- meta/recipes-kernel/linux/linux-yocto.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-kernel/linux/linux-yocto.inc +1 -0
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" INC_PR = "r4" DEPENDS += "xz-native bc-native" +DEPENDS_aarch64 += "libgcc" # A KMACHINE is the mapping of a yocto $MACHINE to what is built # by the kernel. This is typically the branch that should be built,
Signature · 1 line
1.9.1
Re: [PATCH 1/9] linux-yocto: depend on libgcc for aarch64
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 6 lines · Kai Kang
Make aarch aarch64 kernel depend on libgcc. In
arch/arm64/Makefile, it adds LIBGCC to libs-y:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
libs-y += $(LIBGCC)
Quoted 7 lines
If build without libgcc, the value of LIBGCC is just libgcc.a without parent directory. linux-yocto fails to build:
| LD vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directoryAdd libgcc to aarch64 kernel dependency.
really ? usually kernel has its own routines to substitute libgcc needs. why is it different here.
Quoted 11 lines
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-kernel/linux/linux-yocto.inc | 1 + 1 file changed, 1 insertion(+)meta/recipes-kernel/linux/linux-yocto.inc +0
-0
meta/recipes-kernel/linux/linux-yocto.inc LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" · line 11
Quoted 5 lines
meta/recipes-kernel/linux/linux-yocto.inc +1
-0@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" INC_PR = "r4" DEPENDS += "xz-native bc-native" +DEPENDS_aarch64 += "libgcc"
this should be using append instead of +=
meta/recipes-kernel/linux/linux-yocto.inc LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" · line 13
Quoted 3 lines
meta/recipes-kernel/linux/linux-yocto.inc +0
-0# A KMACHINE is the mapping of a yocto $MACHINE to what is built # by the kernel. This is typically the branch that should be built,
- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAlQagi0ACgkQuwUzVZGdMxQfGwCaAuY+dIXbAnQ9tTOIA4MFSwhe wEwAn1FxFeun292octWdy0sYJqtGRPOb
=5Tcg
-----END PGP SIGNATURE-----
Re: [PATCH 1/9] linux-yocto: depend on libgcc for aarch64
Quoted 15 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 9 lines · Kai Kang
Make aarch aarch64 kernel depend on libgcc. In
arch/arm64/Makefile, it adds LIBGCC to libs-y:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
libs-y += $(LIBGCC)If build without libgcc, the value of LIBGCC is just libgcc.a without parent directory. linux-yocto fails to build:
Quoted 6 lines
Quoted 4 lines
| LD vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directoryAdd libgcc to aarch64 kernel dependency.
really ? usually kernel has its own routines to substitute libgcc needs. why is it different here.
It calls script link-vmlinux.sh to link vmlinux.o. It runs function vmlinux_link() in the script:
if [ "${SRCARCH}" != "um" ]; then
${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} \
-T ${lds} ${KBUILD_VMLINUX_INIT} \
--start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}
var KBUILD_VMLINUX_MAIN is defined in top Makefile:
export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
And arch aarch64 adds LIBGCC to var libs-y:
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
libs-y += $(LIBGCC)
If doesn't do libgcc:popualte_sysroot, LIBGCC just get value 'libgcc.a' rather than 'absolute path' to libgcc.a.
In script link-vmlinux.sh, it expands to:
+ modpost_link vmlinux.o
+ aarch64-poky-linux-ld.bfd -r -o vmlinux.o arch/arm64/kernel/head.o init/built-in.o --start-group usr/built-in.o arch/arm64/kernel/built-in.o arch/arm64/mm/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o arch/arm64/lib/lib.a lib/lib.a *libgcc.a* arch/arm64/lib/built-in.o lib/built-in.o *libgcc.a* drivers/built-in.o sound/built-in.o firmware/built-in.o net/built-in.o --end-group
Because no libgcc.a in current directory, error shows twice:
aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
So I add libgcc as dependency of aarch64 kernel.
And one thing more, in kernel source directory arch, only few arches depends on LIBGCC:
$ grep -rw LIBGCC arch/ ./openrisc/Makefile:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./openrisc/Makefile:libs-y += $(LIBGCC) ./parisc/Makefile:LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./parisc/Makefile:libs-y += arch/parisc/lib/ $(LIBGCC) ./hexagon/Makefile:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./hexagon/Makefile:libs-y += $(LIBGCC) ./arc/Makefile:LIBGCC := $(shell $(CC) $(ARC_LIBGCC) $(cflags-y) --print-libgcc-file-name) ./arc/Makefile:libs-y += arch/arc/lib/ $(LIBGCC) ./m32r/Makefile:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./m32r/Makefile:libs-y += arch/m32r/lib/ $(LIBGCC) ./xtensa/Makefile:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./xtensa/Makefile:libs-y += arch/xtensa/lib/ $(LIBGCC) ./xtensa/boot/boot-redboot/Makefile:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./xtensa/boot/boot-redboot/Makefile: $(Q)$(LD) $(LD_ARGS) -o $@ $^ -L/xtensa-elf/lib $(LIBGCC) ./cris/Makefile:LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) ./cris/Makefile:libs-y += arch/cris/$(SARCH)/lib/ $(LIBGCC) ./arm64/Makefile:LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) ./arm64/Makefile:libs-y += $(LIBGCC)
By coincidence, there is no arch Yocto support before.
Regards,
Kai
Quoted 13 lines
Quoted 13 lines
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-kernel/linux/linux-yocto.inc | 1 + 1 file changed, 1 insertion(+)meta/recipes-kernel/linux/linux-yocto.inc +0
-0@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" INC_PR = "r4"
Quoted 4 lines
meta/recipes-kernel/linux/linux-yocto.inc LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" · line 11
Quoted 3 lines
meta/recipes-kernel/linux/linux-yocto.inc +1
-0DEPENDS += "xz-native bc-native" +DEPENDS_aarch64 += "libgcc"this should be using append instead of +=
OK.
Thanks,
--Kai
Quoted 14 lines
meta/recipes-kernel/linux/linux-yocto.inc LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" · line 13
Quoted 4 lines
meta/recipes-kernel/linux/linux-yocto.inc +0
-0# A KMACHINE is the mapping of a yocto $MACHINE to what is built # by the kernel. This is typically the branch that should be built,- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQagi0ACgkQuwUzVZGdMxQfGwCaAuY+dIXbAnQ9tTOIA4MFSwhe wEwAn1FxFeun292octWdy0sYJqtGRPOb
=5Tcg
-----END PGP SIGNATURE-----
Signature · 2 lines
Regards, Neil | Kai Kang
PATCH 2/9 Add machine qemuarm64
In reply to Kai KangAdd machine qemuarm64. The configure files are derived from linaro.
Update:
* rename genericarmv8 to qemuarm64 for coordination in oe-core
* include qemu.inc then remove common part of config
* disable using autoserial
* move arch-armv8.inc from machine/include/arm64 to machine/include/arm
And set BASELIB to lib64 in bitbake.conf. libgcc uses 'aarch64-poky-linux-gcc -print-multi-os-directory' to get install directory that the value is 'lib64' then cause [installed-vs-shipped] error. The value is set in gcc source file gcc/config/aarch64/t-aarch64-linux.
[YOCTO #6487]
--- meta/conf/bitbake.conf | 1 + meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++++++++ meta/conf/machine/qemuarm64.conf | 12 ++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc create mode 100644 meta/conf/machine/qemuarm64.conf
meta/conf/bitbake.conf +1 -0
@@ -10,6 +10,7 @@ baselib = "${BASELIB}" baselib[vardepvalue] = "${baselib}" BASELIB = "lib" +BASELIB_aarch64 = "lib64" BASELIB_powerpc64 = "lib64" # Path prefixes
meta/conf/machine/include/arm/arch-armv8.inc new file +20 -0
@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "aarch64" + +ARMPKGARCH ?= "aarch64" + +TUNEVALID[aarch64] = "Enable instructions for aarch64" +TUNEVALID[bigendian] = "Enable big-endian mode." +TUNECONFLICTS[aarch64] = "" +MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", ":aarch64", "" ,d)}" + +# Little Endian base configs +AVAILTUNES += "aarch64 aarch64_be" +TUNE_FEATURES_tune-aarch64 ?= "aarch64" +TUNE_FEATURES_tune-aarch64_be ?= "${TUNE_FEATURES_tune-aarch64} bigendian" + +ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "_be", "", d)}" + +TUNE_ARCH = "aarch64${ARMPKGSFX_ENDIAN}" +TUNE_PKGARCH = "aarch64${ARMPKGSFX_ENDIAN}" + +PACKAGE_EXTRA_ARCHS = "aarch64${ARMPKGSFX_ENDIAN}"
meta/conf/machine/qemuarm64.conf new file +12 -0
@@ -0,0 +1,12 @@ +#@TYPE: Machine +#@NAME: generic armv8 machine +#@DESCRIPTION: Machine configuration for running a generic armv8 + +require conf/machine/include/arm/arch-armv8.inc +require conf/machine/include/qemu.inc + +MACHINE_FEATURES = "" + +KERNEL_IMAGETYPE = "Image" + +SERIAL_CONSOLE = "38400 ttyAMA0"
Signature · 1 line
1.9.1
PATCH 3/9 gcc-4.9: redefine dynamic linker for aarch64
In reply to Kai KangRedefine dynamic linker for aarch64 from /lib to /lib64.
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
--- meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch
meta/recipes-devtools/gcc/gcc-4.9.inc +1 -0
@@ -70,6 +70,7 @@ SRC_URI = "\ file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ file://0055-PR-rtl-optimization-61801.patch \ + file://0056-redefine-dynamic-linker-for-aarch64.patch \ " SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1" SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" ++#define GLIBC_DYNAMIC_LINKER "/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1" + + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +
Signature · 1 line
1.9.1
Re: [PATCH 3/9] gcc-4.9: redefine dynamic linker for aarch64
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 5 lines · Kai Kang
Redefine dynamic linker for aarch64 from /lib to /lib64.
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
hmmm since the ldso name is different it can still live in /lib and there will be ilp32 version ldso multilib as well later. can we keep ldso in /lib ?
Quoted 51 lines
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +1
-0@@ -70,6 +70,7 @@ SRC_URI = "\ file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ file://0055-PR-rtl-optimization-61801.patch \ + file://0056-redefine-dynamic-linker-for-aarch64.patch \ " SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1" SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +24
-0@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch line 34
Quoted 10 lines
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +10
-0+ #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" ++#define GLIBC_DYNAMIC_LINKER "/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1" + + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +
- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAlQah2UACgkQuwUzVZGdMxT98wCghPbcAP/2xFgFn9Lv3Wisexa6 kHkAni6hykOqPq44VheOimbMbcimHaZD
=jpy6
-----END PGP SIGNATURE-----
Re: [PATCH 3/9] gcc-4.9: redefine dynamic linker for aarch64
Quoted 6 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On 9/16/14 8:06 AM, Kai Kang wrote:
Quoted 8 lines
Quoted 5 lines
Redefine dynamic linker for aarch64 from /lib to /lib64.
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
hmmm since the ldso name is different it can still live in /lib and there will be ilp32 version ldso multilib as well later. can we keep ldso in /lib ?
Should not we use '/lib64' and '/lib' for mutlilib? I remember intel-x86-64 uses that way rather than '/lib' and '/lib32'.
--Kai
Quoted 71 lines
Quoted 51 lines
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)create mode 100644
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +1
-0@@ -70,6 +70,7 @@ SRC_URI = "\ file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ file://0055-PR-rtl-optimization-61801.patch \ + file://0056-redefine-dynamic-linker-for-aarch64.patch \ " SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1" SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +24
-0@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_Hmeta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch line 34
Quoted 10 lines
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +10
-0+ #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" ++#define GLIBC_DYNAMIC_LINKER "/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1" + + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQah2UACgkQuwUzVZGdMxT98wCghPbcAP/2xFgFn9Lv3Wisexa6 kHkAni6hykOqPq44VheOimbMbcimHaZD
=jpy6
-----END PGP SIGNATURE-----
Signature · 2 lines
Regards, Neil | Kai Kang
Re: [PATCH 3/9] gcc-4.9: redefine dynamic linker for aarch64
In reply to Khem RajQuoted 8 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Kai Kang
Redefine dynamic linker for aarch64 from /lib to /lib64.
Quoted 7 lines
Quoted 3 lines
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
hmmm since the ldso name is different it can still live in /lib and there will be ilp32 version ldso multilib as well later. can we keep ldso in /lib ?
I thought the upstream definition (managed by ARM Ltd, and Linaro) for the ld.so had changed a few months back so that /lib64 was the 'standard' location for the ldso. Perhaps I'm mistaken?
--Mark
Quoted 73 lines
Quoted 51 lines
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)create mode 100644
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +1
-0@@ -70,6 +70,7 @@ SRC_URI = "\ file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ file://0055-PR-rtl-optimization-61801.patch \ + file://0056-redefine-dynamic-linker-for-aarch64.patch \ " SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1" SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +24
-0@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_Hmeta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch line 34
Quoted 10 lines
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +10
-0+ #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" ++#define GLIBC_DYNAMIC_LINKER "/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1" + + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQah2UACgkQuwUzVZGdMxT98wCghPbcAP/2xFgFn9Lv3Wisexa6 kHkAni6hykOqPq44VheOimbMbcimHaZD
=jpy6
-----END PGP SIGNATURE-----
Re: [PATCH 3/9] gcc-4.9: redefine dynamic linker for aarch64
Quoted 13 lines · Mark Hatle
Quoted 12 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 5 lines · Kai Kang
Redefine dynamic linker for aarch64 from /lib to /lib64.
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
Quoted 7 lines
Quoted 3 lines
hmmm since the ldso name is different it can still live in /lib and there will be ilp32 version ldso multilib as well later. can we keep ldso in /lib ?
I thought the upstream definition (managed by ARM Ltd, and Linaro) for the ld.so had changed a few months back so that /lib64 was the 'standard' location for the ldso. Perhaps I'm mistaken?
I did some research and I'm confused.. aarch64 is screwed up by consensus apparently..
Dynamic libraries live in /lib64, and the dynamic linker in /lib.. Whee!
So ya, this patch isn't correct.. the dynamic linker needs to stay in /lib. (Nothing says you can't sym/hardlink to lib64.. but it has to refer to in in /lib for the ABI conformance.)
--Mark
Quoted 76 lines
--Mark
Quoted 73 lines
Quoted 51 lines
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)create mode 100644
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +1
-0@@ -70,6 +70,7 @@ SRC_URI = "\ file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ file://0055-PR-rtl-optimization-61801.patch \ + file://0056-redefine-dynamic-linker-for-aarch64.patch \ " SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1" SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +24
-0@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_Hmeta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch line 34
Quoted 10 lines
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch new file +10
-0+ #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" ++#define GLIBC_DYNAMIC_LINKER "/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1" + + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQah2UACgkQuwUzVZGdMxT98wCghPbcAP/2xFgFn9Lv3Wisexa6 kHkAni6hykOqPq44VheOimbMbcimHaZD
=jpy6
-----END PGP SIGNATURE-----
Re: [PATCH 3/9] gcc-4.9: redefine dynamic linker for aarch64
Quoted 22 lines · Mark Hatle
Quoted 13 lines · Mark Hatle
Quoted 12 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 5 lines · Kai Kang
Redefine dynamic linker for aarch64 from /lib to /lib64.
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
Quoted 7 lines
Quoted 3 lines
hmmm since the ldso name is different it can still live in /lib and there will be ilp32 version ldso multilib as well later. can we keep ldso in /lib ?
I thought the upstream definition (managed by ARM Ltd, and Linaro) for the ld.so had changed a few months back so that /lib64 was the 'standard' location for the ldso. Perhaps I'm mistaken?
Quoted 5 lines
I did some research and I'm confused.. aarch64 is screwed up by consensus apparently..
Dynamic libraries live in /lib64, and the dynamic linker in /lib.. Whee!
So ya, this patch isn't correct.. the dynamic linker needs to stay in /lib. (Nothing says you can't sym/hardlink to lib64.. but it has to refer to in in /lib for the ABI conformance.)
OK. Keep dynamic linker in /lib and change libraries directory from /lib64 to /lib.
--Kai
Quoted 87 lines
--Mark
Quoted 83 lines
--Mark
Quoted 80 lines
Quoted 62 lines
Signed-off-by Kai Kang <[email protected]>---
meta/recipes-devtools/gcc/gcc-4.9.inc | 1 +.../0056-redefine-dynamic-linker-for-aarch64.patch| 34
++++++++++++++++++++++2 files changed, 35 insertions(+)create mode 100644
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +1
-0@@ -70,6 +70,7 @@ SRC_URI = "\ file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ file://0055-PR-rtl-optimization-61801.patch \ + file://0056-redefine-dynamic-linker-for-aarch64.patch \"
SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1"
SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch +0
-0new file mode 100644
index 0000000..6933e2f
---/dev/null
+++b/meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch +1
-0@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:002001
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch +18
-0+From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h
b/gcc/config/aarch64/aarch64-linux.hmeta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch +8
-0+index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER"/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1"
++#defineGLIBC_DYNAMIC_LINKER
"/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1"meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch line 34
Quoted 6 lines
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patch +6
-0+ + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQah2UACgkQuwUzVZGdMxT98wCghPbcAP/2xFgFn9Lv3Wisexa6 kHkAni6hykOqPq44VheOimbMbcimHaZD
=jpy6
-----END PGP SIGNATURE-----
Signature · 2 lines
Regards, Neil | Kai Kang
Re: [PATCH 3/9] gcc-4.9: redefine dynamic linker for aarch64
Quoted 29 lines · Kang Kai
Quoted 28 lines · Mark Hatle
Quoted 18 lines · Mark Hatle
Quoted 8 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Kai Kang
Redefine dynamic linker for aarch64 from /lib to /lib64.
Quoted 8 lines
Quoted 3 lines
BASELIB of aarch64 has to be defined with 'lib64', then linker file ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So update it here too.
hmmm since the ldso name is different it can still live in /lib and there will be ilp32 version ldso multilib as well later. can we keep
ldso in /lib ?Quoted 5 lines
I thought the upstream definition (managed by ARM Ltd, and Linaro) for the ld.so
had changed a few months back so that /lib64 was the 'standard' location for the
ldso. Perhaps I'm mistaken?I did some research and I'm confused.. aarch64 is screwed up by consensus apparently..
Quoted 8 lines
Quoted 5 lines
Dynamic libraries live in /lib64, and the dynamic linker in /lib.. Whee!
So ya, this patch isn't correct.. the dynamic linker needs to stay in /lib. (Nothing says you can't sym/hardlink to lib64.. but it has to refer to in in /lib for the ABI conformance.)
OK. Keep dynamic linker in /lib and change libraries directory from /lib64 to /lib.
The dynamic linker (ldso) goes into '/lib'. The library directory is /lib or /lib64. (/lib64 when multilib arm is enabled.) It's a bit odd, but it means that the link inside of gcc must be hard coded to the default /lib/... path.
The shared libraries would be referenced in the same way they are in the other distributions where either lib, lib64 (or any alternative can be set in the OE code.)
--Mark
Quoted 97 lines
--Kai
Quoted 93 lines
--Mark
Quoted 89 lines
--Mark
Quoted 86 lines
Quoted 68 lines
Signed-off-by Kai Kang <[email protected]>---
meta/recipes-devtools/gcc/gcc-4.9.inc | 1 +.../0056-redefine-dynamic-linker-for-aarch64.patch| 34
++++++++++++++++++++++2 files changed, 35 insertions(+)create mode 100644
meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +0
-0@@ -70,6 +70,7 @@ SRC_URI = "\file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \
file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \
file://0055-PR-rtl-optimization-61801.patch \
+ file://0056-redefine-dynamic-linker-for-aarch64.patch \
"
SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1" SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e" diff --gita/meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchb/meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchnew file mode 100644
index 0000000..6933e2f
---/dev/null
+++b/meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchmeta/recipes-devtools/gcc/gcc-4.9.inc +1
-0@@ -0,0 +1,34 @@ +From 8fbb60d89e569b68b13e4fd419e20640eb49cabc Mon Sep 17 00:00:002001
meta/recipes-devtools/gcc/gcc-4.9.inc +18
-0+From: Kai Kang <[email protected]> +Date: Tue, 16 Sep 2014 16:01:31 +0800 +Subject: [PATCH] Redefine dynamic linker for aarch64 + +Redefine dynamic linker for aarch64 from /lib to /lib64. + +BASELIB of aarch64 has to be defined with 'lib64', then linker file +ld-linux-aarch64.so.1 is installed into /lib64 rather than /lib. So +update it here too. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h
b/gcc/config/aarch64/aarch64-linux.hmeta/recipes-devtools/gcc/gcc-4.9.inc +8
-0+index a8f0771..2a6f06d 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER"/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1"
++#defineGLIBC_DYNAMIC_LINKER
"/lib64/ld-linux-aarch64%{mbig-endian:_be}.so.1"meta/recipes-devtools/gcc/gcc-4.9.inc
Quoted 6 lines
meta/recipes-devtools/gcc/gcc-4.9.inc +6
-0+ + #define CPP_SPEC "%{pthread:-D_REENTRANT}" + +-- +1.9.1 +- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQah2UACgkQuwUzVZGdMxT98wCghPbcAP/2xFgFn9Lv3Wisexa6 kHkAni6hykOqPq44VheOimbMbcimHaZD
=jpy6
-----END PGP SIGNATURE-----
PATCH 4/9 libatomics-ops: add aarch64 target iniitial support
In reply to Kai KangAdd patch for libatomics-ops to add aarch64 target iniitial support. It is from linaro repo.
--- .../0001-libatomic_ops-Aarch64-basic-port.patch | 239 +++++++++++++++++++++ .../pulseaudio/libatomics-ops_7.2.bb | 1 + 2 files changed, 240 insertions(+) create mode 100644 meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patch
meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patch new file +239 -0
@@ -0,0 +1,239 @@ +From aac120d778ae5fc619b2fb8ef18ea18d3d5d20cc Mon Sep 17 00:00:00 2001 +From: Yvan Roux <[email protected]> +Date: Wed, 23 Jan 2013 17:14:16 +0100 +Subject: [PATCH] Aarch64 basic port + +Adapted-for-OpenEmbedded-by: Marcin Juszkiewicz <[email protected]> + + +Upstream-Status: Backport + +It is original from +https://github.com/ivmai/libatomic_ops/commit/cbbf86330fcb600cfe0f895cb970d922456005d6 + +Signed-off-by: Kai Kang <[email protected]> +--- + src/atomic_ops.h | 4 + src/atomic_ops/sysdeps/Makefile.am | 1 + src/atomic_ops/sysdeps/gcc/aarch64.h | 184 +++++++++++++++++++++++++++++++++++ + 3 files changed, 189 insertions(+) + create mode 100644 src/atomic_ops/sysdeps/gcc/aarch64.h + +--- libatomic_ops-7.2.orig/src/atomic_ops.h ++++ libatomic_ops-7.2/src/atomic_ops.h +@@ -242,10 +242,14 @@ + # endif /* __m68k__ */ + # if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) \ + || defined(__powerpc64__) || defined(__ppc64__) + # include "atomic_ops/sysdeps/gcc/powerpc.h" + # endif /* __powerpc__ */ ++# if defined(__aarch64__) ++# include "atomic_ops/sysdeps/gcc/aarch64.h" ++# define AO_CAN_EMUL_CAS ++# endif /* __aarch64__ */ + # if defined(__arm__) && !defined(AO_USE_PTHREAD_DEFS) + # include "atomic_ops/sysdeps/gcc/arm.h" + # define AO_CAN_EMUL_CAS + # endif /* __arm__ */ + # if defined(__cris__) || defined(CRIS) +--- libatomic_ops-7.2.orig/src/atomic_ops/sysdeps/Makefile.am ++++ libatomic_ops-7.2/src/atomic_ops/sysdeps/Makefile.am +@@ -24,10 +24,11 @@ nobase_sysdep_HEADERS= generic_pthread.h + standard_ao_double_t.h \ + README \ + \ + armcc/arm_v6.h \ + \ ++ gcc/aarch64.h \ + gcc/alpha.h gcc/arm.h gcc/avr32.h gcc/cris.h \ + gcc/hexagon.h gcc/hppa.h gcc/ia64.h gcc/m68k.h \ + gcc/mips.h gcc/powerpc.h gcc/s390.h \ + gcc/sh.h gcc/sparc.h gcc/x86.h gcc/x86_64.h \ + \ +--- /dev/null ++++ libatomic_ops-7.2/src/atomic_ops/sysdeps/gcc/aarch64.h +@@ -0,0 +1,184 @@ ++/* ++ * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. ++ * Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved. ++ * Copyright (c) 1999-2003 by Hewlett-Packard Company. All rights reserved. ++ * ++ * ++ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED ++ * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. ++ * ++ * Permission is hereby granted to use or copy this program ++ * for any purpose, provided the above notices are retained on all copies. ++ * Permission to modify the code and to distribute modified code is granted, ++ * provided the above notices are retained, and a notice that the code was ++ * modified is included with the above copyright notice. ++ * ++ */ ++ ++#include "../read_ordered.h" ++ ++#include "../test_and_set_t_is_ao_t.h" ++ ++AO_INLINE void ++AO_nop_full(void) ++{ ++# ifndef AO_UNIPROCESSOR ++__sync_synchronize (); ++# endif ++} ++#define AO_HAVE_nop_full ++ ++AO_INLINE AO_t ++AO_load(const volatile AO_t *addr) ++{ ++ return __atomic_load_n (addr, __ATOMIC_RELAXED); ++} ++#define AO_HAVE_load ++ ++AO_INLINE AO_t ++AO_load_acquire(const volatile AO_t *addr) ++{ ++ return __atomic_load_n (addr, __ATOMIC_ACQUIRE); ++} ++#define AO_HAVE_load_acquire ++ ++AO_INLINE void ++ AO_store(volatile AO_t *addr, AO_t value) ++{ ++ __atomic_store_n(addr, value, __ATOMIC_RELAXED); ++} ++#define AO_HAVE_store ++ ++AO_INLINE void ++ AO_store_release(volatile AO_t *addr, AO_t value) ++{ ++ __atomic_store_n(addr, value, __ATOMIC_RELEASE); ++} ++#define AO_HAVE_store_release ++ ++AO_INLINE AO_TS_VAL_t ++AO_test_and_set(volatile AO_TS_t *addr) ++{ ++ return __atomic_test_and_set(addr, __ATOMIC_RELAXED); ++} ++# define AO_HAVE_test_and_set ++ ++AO_INLINE AO_TS_VAL_t ++AO_test_and_set_acquire(volatile AO_TS_t *addr) ++{ ++ return __atomic_test_and_set(addr, __ATOMIC_ACQUIRE); ++} ++# define AO_HAVE_test_and_set_acquire ++ ++AO_INLINE AO_TS_VAL_t ++AO_test_and_set_release(volatile AO_TS_t *addr) ++{ ++ return __atomic_test_and_set(addr, __ATOMIC_RELEASE); ++} ++# define AO_HAVE_test_and_set_release ++ ++AO_INLINE AO_TS_VAL_t ++AO_test_and_set_full(volatile AO_TS_t *addr) ++{ ++ return __atomic_test_and_set(addr, __ATOMIC_SEQ_CST); ++} ++# define AO_HAVE_test_and_set_full ++ ++AO_INLINE AO_t ++AO_fetch_and_add(volatile AO_t *p, AO_t incr) ++{ ++ return __atomic_fetch_add(p, incr, __ATOMIC_RELAXED); ++} ++#define AO_HAVE_fetch_and_add ++ ++AO_INLINE AO_t ++AO_fetch_and_add_acquire(volatile AO_t *p, AO_t incr) ++{ ++ return __atomic_fetch_add(p, incr, __ATOMIC_ACQUIRE); ++} ++#define AO_HAVE_fetch_and_add_acquire ++ ++AO_INLINE AO_t ++AO_fetch_and_add_release(volatile AO_t *p, AO_t incr) ++{ ++ return __atomic_fetch_add(p, incr, __ATOMIC_RELEASE); ++} ++#define AO_HAVE_fetch_and_add_release ++ ++AO_INLINE AO_t ++AO_fetch_and_add_full(volatile AO_t *p, AO_t incr) ++{ ++ return __atomic_fetch_add(p, incr, __ATOMIC_SEQ_CST); ++} ++#define AO_HAVE_fetch_and_add_full ++ ++AO_INLINE AO_t ++AO_fetch_and_add1(volatile AO_t *p) ++{ ++ return __atomic_fetch_add(p, 1, __ATOMIC_RELAXED); ++} ++#define AO_HAVE_fetch_and_add1 ++ ++AO_INLINE AO_t ++AO_fetch_and_add1_acquire(volatile AO_t *p) ++{ ++ return __atomic_fetch_add(p, 1, __ATOMIC_ACQUIRE); ++} ++#define AO_HAVE_fetch_and_add1_acquire ++ ++AO_INLINE AO_t ++AO_fetch_and_add1_release(volatile AO_t *p) ++{ ++ return __atomic_fetch_add(p, 1, __ATOMIC_RELEASE); ++} ++#define AO_HAVE_fetch_and_add1_release ++ ++AO_INLINE AO_t ++AO_fetch_and_add1_full(volatile AO_t *p) ++{ ++ return __atomic_fetch_add(p, 1, __ATOMIC_SEQ_CST); ++} ++#define AO_HAVE_fetch_and_add1_full ++ ++AO_INLINE AO_t ++AO_fetch_and_sub1(volatile AO_t *p) ++{ ++ return __atomic_fetch_sub(p, 1, __ATOMIC_RELAXED); ++} ++#define AO_HAVE_fetch_and_sub1 ++ ++AO_INLINE AO_t ++AO_fetch_and_sub1_acquire(volatile AO_t *p) ++{ ++ return __atomic_fetch_sub(p, 1, __ATOMIC_ACQUIRE); ++} ++#define AO_HAVE_fetch_and_sub1_acquire ++ ++AO_INLINE AO_t ++AO_fetch_and_sub1_release(volatile AO_t *p) ++{ ++ return __atomic_fetch_sub(p, 1, __ATOMIC_RELEASE); ++} ++#define AO_HAVE_fetch_and_sub1_release ++ ++AO_INLINE AO_t ++AO_fetch_and_sub1_full(volatile AO_t *p) ++{ ++ return __atomic_fetch_sub(p, 1, __ATOMIC_SEQ_CST); ++} ++#define AO_HAVE_fetch_and_sub1_full ++ ++/* Returns nonzero if the comparison succeeded. */ ++AO_INLINE int ++AO_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) ++{ ++ return __sync_bool_compare_and_swap(addr, old_val, new_val); ++} ++# define AO_HAVE_compare_and_swap ++ ++AO_INLINE AO_t ++AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) ++{ ++ return __sync_val_compare_and_swap(addr, old_val, new_val); ++} ++# define AO_HAVE_fetch_compare_and_swap
meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb +1 -0
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://doc/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ PR = "r1" SRC_URI = "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-${PV}.tar.gz \ + file://0001-libatomic_ops-Aarch64-basic-port.patch \ " SRC_URI[md5sum] = "890acdc83a7cd10e2e9536062d3741c8"
Signature · 1 line
1.9.1
PATCH 5/9 qt4-native: add aarch64 support
In reply to Kai KangAdd qt4 aarch64 support.
Most of the patches are derived from debian:
http://anonscm.debian.org/cgit/pkg-kde/qt/qt4-x11.git/tree/debian/patches
--- .../0029-aarch64_arm64_fix_arch_detection.patch | 53 +++ .../0030-aarch64_arm64_qatomic_support.patch | 491 +++++++++++++++++++++ .../qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patch | 124 ++++++ .../qt4/qt4-4.8.6/0032-aarch64_add_header.patch | 18 + meta/recipes-qt/qt4/qt4-native.inc | 4 + 5 files changed, 690 insertions(+) create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0029-aarch64_arm64_fix_arch_detection.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0030-aarch64_arm64_qatomic_support.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patch create mode 100644 meta/recipes-qt/qt4/qt4-4.8.6/0032-aarch64_add_header.patch
meta/recipes-qt/qt4/qt4-4.8.6/0029-aarch64_arm64_fix_arch_detection.patch new file +53 -0
@@ -0,0 +1,53 @@ +From 800abbba658203fc8e746e3fc780a297cd4110cf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lisandro=20Dami=C3=A1n=20Nicanor=20P=C3=A9rez=20Meyer?= + <[email protected]> +Date: Wed, 20 Aug 2014 17:52:49 -0300 +Subject: [PATCH] Fix AArch64/arm64 detection. + +The detection needs to go before arm, else the system will detect AArch64/arm64 +as arm. + +This patch comes from Wookey, he has agreed to put it under BSD or Expat +to allow it's inclusion in here: +<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735488#255> + +Change-Id: Ic2171c03fca8bb871347940fa3a2bc467776f797 + + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- + configure | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/configure b/configure +index a9ba7c8..eb88b72 100755 +--- a/configure ++++ b/configure +@@ -3241,17 +3241,17 @@ if [ -z "${CFG_HOST_ARCH}" ]; then + fi + CFG_HOST_ARCH=s390 + ;; +- *:*:arm*) ++ *:*:aarch64*|*:*:arm64*) + if [ "$OPT_VERBOSE" = "yes" ]; then +- echo " ARM (arm)" ++ echo " AArch64 (aarch64)" + fi +- CFG_HOST_ARCH=arm ++ CFG_HOST_ARCH=aarch64 + ;; +- *:*:aarch64*) ++ *:*:arm*) + if [ "$OPT_VERBOSE" = "yes" ]; then +- echo " AArch64 (aarch64)" ++ echo " ARM (arm)" + fi +- CFG_HOST_ARCH=aarch64 ++ CFG_HOST_ARCH=arm + ;; + Linux:*:sparc*) + if [ "$OPT_VERBOSE" = "yes" ]; then +-- +2.1.0
meta/recipes-qt/qt4/qt4-4.8.6/0030-aarch64_arm64_qatomic_support.patch new file +491 -0
491 lines not on this page · raw message
meta/recipes-qt/qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patch new file +124 -0
124 lines not on this page · raw message
meta/recipes-qt/qt4/qt4-4.8.6/0032-aarch64_add_header.patch new file +18 -0
@@ -0,0 +1,18 @@ +Add missing header for aarch64. And install ../corelib/arch/qatomic_aarch64.h. + +Upstream-Status: Pending + +Signed-off-by: Kai Kang <[email protected]> +--- +diff -Nru qt-everywhere-opensource-src-4.8.6.orig/include/QtCore/qatomic_aarch64.h qt-everywhere-opensource-src-4.8.6/include/QtCore/qatomic_aarch64.h +--- qt-everywhere-opensource-src-4.8.6.orig/include/QtCore/qatomic_aarch64.h 1970-01-01 08:30:00.000000000 +0830 ++++ qt-everywhere-opensource-src-4.8.6/include/QtCore/qatomic_aarch64.h 2014-09-09 17:18:03.768352551 +0800 +@@ -0,0 +1 @@ ++#include "../../src/corelib/arch/qatomic_aarch64.h" +--- qt-everywhere-opensource-src-4.8.6/include/QtCore/headers.pri.orig 2014-09-09 18:05:37.100430311 +0800 ++++ qt-everywhere-opensource-src-4.8.6/include/QtCore/headers.pri 2014-09-09 18:05:59.112430911 +0800 +@@ -1,3 +1,3 @@ +-SYNCQT.HEADER_FILES = ../corelib/statemachine/qabstractstate.h ../corelib/statemachine/qabstracttransition.h ../corelib/statemachine/qeventtransition.h ../corelib/statemachine/qfinalstate.h ../corelib/statemachine/qhistorystate.h ../corelib/statemachine/qsignaltransition.h ../corelib/statemachine/qstate.h ../corelib/statemachine/qstatemachine.h ../corelib/arch/qatomic_alpha.h ../corelib/arch/qatomic_arch.h ../corelib/arch/qatomic_arm.h ../corelib/arch/qatomic_armv5.h ../corelib/arch/qatomic_armv6.h ../corelib/arch/qatomic_armv7.h ../corelib/arch/qatomic_avr32.h ../corelib/arch/qatomic_bfin.h ../corelib/arch/qatomic_bootstrap.h ../corelib/arch/qatomic_generic.h ../corelib/arch/qatomic_i386.h ../corelib/arch/qatomic_ia64.h ../corelib/arch/qatomic_integrity.h ../corelib/arch/qatomic_m68k.h ../corelib/arch/qatomic_macosx.h ../corelib/arch/qatomic_mips.h ../corelib/arch/qatomic_parisc.h ../corelib/arch/qatomic_powerpc.h ../corelib/arch/qatomic_s390.h ../corelib/arch/qatomic_sh.h ../corelib/arch/qatomic_sh4a.h ../corelib/arch/qatomic_sparc.h ../corelib/arch/qatomic_symbian.h ../corelib/arch/qatomic_vxworks.h ../corelib/arch/qatomic_windows.h ../corelib/arch/qatomic_windowsce.h ../corelib/arch/qatomic_x86_64.h ../corelib/thread/qatomic.h ../corelib/thread/qbasicatomic.h ../corelib/thread/qmutex.h ../corelib/thread/qreadwritelock.h ../corelib/thread/qsemaphore.h ../corelib/thread/qthread.h ../corelib/thread/qthreadstorage.h ../corelib/thread/qwaitcondition.h ../corelib/xml/qxmlstream.h ../corelib/concurrent/qfuture.h ../corelib/concurrent/qfutureinterface.h ../corelib/concurrent/qfuturesynchronizer.h ../corelib/concurrent/qfuturewatcher.h ../corelib/concurrent/qrunnable.h ../corelib/concurrent/qtconcurrentcompilertest.h ../corelib/concurrent/qtconcurrentexception.h ../corelib/concurrent/qtconcurrentfilter.h ../corelib/concurrent/qtconcurrentfilterkernel.h ../corelib/concurrent/qtconcurrentfunctionwrappers.h ../corelib/concurrent/qtconcurrentiteratekernel.h ../corelib/concurrent/qtconcurrentmap.h ../corelib/concurrent/qtconcurrentmapkernel.h ../corelib/concurrent/qtconcurrentmedian.h ../corelib/concurrent/qtconcurrentreducekernel.h ../corelib/concurrent/qtconcurrentresultstore.h ../corelib/concurrent/qtconcurrentrun.h ../corelib/concurrent/qtconcurrentrunbase.h ../corelib/concurrent/qtconcurrentstoredfunctioncall.h ../corelib/concurrent/qtconcurrentthreadengine.h ../corelib/concurrent/qthreadpool.h ../corelib/kernel/qabstracteventdispatcher.h ../corelib/kernel/qabstractitemmodel.h ../corelib/kernel/qbasictimer.h ../corelib/kernel/qcoreapplication.h ../corelib/kernel/qcoreevent.h ../corelib/kernel/qeventloop.h ../corelib/kernel/qfunctions_nacl.h ../corelib/kernel/qfunctions_vxworks.h ../corelib/kernel/qfunctions_wince.h ../corelib/kernel/qmath.h ../corelib/kernel/qmetaobject.h ../corelib/kernel/qmetatype.h ../corelib/kernel/qmimedata.h ../corelib/kernel/qobject.h ../corelib/kernel/qobjectcleanuphandler.h ../corelib/kernel/qobjectdefs.h ../corelib/kernel/qpointer.h ../corelib/kernel/qsharedmemory.h ../corelib/kernel/qsignalmapper.h ../corelib/kernel/qsocketnotifier.h ../corelib/kernel/qsystemsemaphore.h ../corelib/kernel/qtimer.h ../corelib/kernel/qtranslator.h ../corelib/kernel/qvariant.h ../corelib/plugin/qfactoryinterface.h ../corelib/plugin/qlibrary.h ../corelib/plugin/qplugin.h ../corelib/plugin/qpluginloader.h ../corelib/plugin/quuid.h ../corelib/global/qconfig-dist.h ../corelib/global/qconfig-large.h ../corelib/global/qconfig-medium.h ../corelib/global/qconfig-minimal.h ../corelib/global/qconfig-nacl.h ../corelib/global/qconfig-small.h ../corelib/global/qendian.h ../corelib/global/qfeatures.h ../corelib/global/qglobal.h ../corelib/global/qlibraryinfo.h ../corelib/global/qnamespace.h ../corelib/global/qnumeric.h ../corelib/global/qt_windows.h ../corelib/global/qconfig.h ../corelib/codecs/qtextcodec.h ../corelib/codecs/qtextcodecplugin.h ../corelib/io/qabstractfileengine.h ../corelib/io/qbuffer.h ../corelib/io/qdatastream.h ../corelib/io/qdebug.h ../corelib/io/qdir.h ../corelib/io/qdiriterator.h ../corelib/io/qfile.h ../corelib/io/qfileinfo.h ../corelib/io/qfilesystemwatcher.h ../corelib/io/qfsfileengine.h ../corelib/io/qiodevice.h ../corelib/io/qprocess.h ../corelib/io/qresource.h ../corelib/io/qsettings.h ../corelib/io/qtemporaryfile.h ../corelib/io/qtextstream.h ../corelib/io/qurl.h ../corelib/animation/qabstractanimation.h ../corelib/animation/qanimationgroup.h ../corelib/animation/qparallelanimationgroup.h ../corelib/animation/qpauseanimation.h ../corelib/animation/qpropertyanimation.h ../corelib/animation/qsequentialanimationgroup.h ../corelib/animation/qvariantanimation.h ../corelib/tools/qalgorithms.h ../corelib/tools/qbitarray.h ../corelib/tools/qbytearray.h ../corelib/tools/qbytearraymatcher.h ../corelib/tools/qcache.h ../corelib/tools/qchar.h ../corelib/tools/qcontainerfwd.h ../corelib/tools/qcontiguouscache.h ../corelib/tools/qcryptographichash.h ../corelib/tools/qdatetime.h ../corelib/tools/qeasingcurve.h ../corelib/tools/qelapsedtimer.h ../corelib/tools/qhash.h ../corelib/tools/qiterator.h ../corelib/tools/qline.h ../corelib/tools/qlinkedlist.h ../corelib/tools/qlist.h ../corelib/tools/qlocale.h ../corelib/tools/qlocale_blackberry.h ../corelib/tools/qmap.h ../corelib/tools/qmargins.h ../corelib/tools/qpair.h ../corelib/tools/qpoint.h ../corelib/tools/qqueue.h ../corelib/tools/qrect.h ../corelib/tools/qregexp.h ../corelib/tools/qscopedpointer.h ../corelib/tools/qscopedvaluerollback.h ../corelib/tools/qset.h ../corelib/tools/qshareddata.h ../corelib/tools/qsharedpointer.h ../corelib/tools/qsharedpointer_impl.h ../corelib/tools/qsize.h ../corelib/tools/qstack.h ../corelib/tools/qstring.h ../corelib/tools/qstringbuilder.h ../corelib/tools/qstringlist.h ../corelib/tools/qstringmatcher.h ../corelib/tools/qtextboundaryfinder.h ../corelib/tools/qtimeline.h ../corelib/tools/qvarlengtharray.h ../corelib/tools/qvector.h ../../include/QtCore/QtCore ++SYNCQT.HEADER_FILES = ../corelib/statemachine/qabstractstate.h ../corelib/statemachine/qabstracttransition.h ../corelib/statemachine/qeventtransition.h ../corelib/statemachine/qfinalstate.h ../corelib/statemachine/qhistorystate.h ../corelib/statemachine/qsignaltransition.h ../corelib/statemachine/qstate.h ../corelib/statemachine/qstatemachine.h ../corelib/arch/qatomic_alpha.h ../corelib/arch/qatomic_arch.h ../corelib/arch/qatomic_arm.h ../corelib/arch/qatomic_armv5.h ../corelib/arch/qatomic_armv6.h ../corelib/arch/qatomic_armv7.h ../corelib/arch/qatomic_aarch64.h ../corelib/arch/qatomic_avr32.h ../corelib/arch/qatomic_bfin.h ../corelib/arch/qatomic_bootstrap.h ../corelib/arch/qatomic_generic.h ../corelib/arch/qatomic_i386.h ../corelib/arch/qatomic_ia64.h ../corelib/arch/qatomic_integrity.h ../corelib/arch/qatomic_m68k.h ../corelib/arch/qatomic_macosx.h ../corelib/arch/qatomic_mips.h ../corelib/arch/qatomic_parisc.h ../corelib/arch/qatomic_powerpc.h ../corelib/arch/qatomic_s390.h ../corelib/arch/qatomic_sh.h ../corelib/arch/qatomic_sh4a.h ../corelib/arch/qatomic_sparc.h ../corelib/arch/qatomic_symbian.h ../corelib/arch/qatomic_vxworks.h ../corelib/arch/qatomic_windows.h ../corelib/arch/qatomic_windowsce.h ../corelib/arch/qatomic_x86_64.h ../corelib/thread/qatomic.h ../corelib/thread/qbasicatomic.h ../corelib/thread/qmutex.h ../corelib/thread/qreadwritelock.h ../corelib/thread/qsemaphore.h ../corelib/thread/qthread.h ../corelib/thread/qthreadstorage.h ../corelib/thread/qwaitcondition.h ../corelib/xml/qxmlstream.h ../corelib/concurrent/qfuture.h ../corelib/concurrent/qfutureinterface.h ../corelib/concurrent/qfuturesynchronizer.h ../corelib/concurrent/qfuturewatcher.h ../corelib/concurrent/qrunnable.h ../corelib/concurrent/qtconcurrentcompilertest.h ../corelib/concurrent/qtconcurrentexception.h ../corelib/concurrent/qtconcurrentfilter.h ../corelib/concurrent/qtconcurrentfilterkernel.h ../corelib/concurrent/qtconcurrentfunctionwrappers.h ../corelib/concurrent/qtconcurrentiteratekernel.h ../corelib/concurrent/qtconcurrentmap.h ../corelib/concurrent/qtconcurrentmapkernel.h ../corelib/concurrent/qtconcurrentmedian.h ../corelib/concurrent/qtconcurrentreducekernel.h ../corelib/concurrent/qtconcurrentresultstore.h ../corelib/concurrent/qtconcurrentrun.h ../corelib/concurrent/qtconcurrentrunbase.h ../corelib/concurrent/qtconcurrentstoredfunctioncall.h ../corelib/concurrent/qtconcurrentthreadengine.h ../corelib/concurrent/qthreadpool.h ../corelib/kernel/qabstracteventdispatcher.h ../corelib/kernel/qabstractitemmodel.h ../corelib/kernel/qbasictimer.h ../corelib/kernel/qcoreapplication.h ../corelib/kernel/qcoreevent.h ../corelib/kernel/qeventloop.h ../corelib/kernel/qfunctions_nacl.h ../corelib/kernel/qfunctions_vxworks.h ../corelib/kernel/qfunctions_wince.h ../corelib/kernel/qmath.h ../corelib/kernel/qmetaobject.h ../corelib/kernel/qmetatype.h ../corelib/kernel/qmimedata.h ../corelib/kernel/qobject.h ../corelib/kernel/qobjectcleanuphandler.h ../corelib/kernel/qobjectdefs.h ../corelib/kernel/qpointer.h ../corelib/kernel/qsharedmemory.h ../corelib/kernel/qsignalmapper.h ../corelib/kernel/qsocketnotifier.h ../corelib/kernel/qsystemsemaphore.h ../corelib/kernel/qtimer.h ../corelib/kernel/qtranslator.h ../corelib/kernel/qvariant.h ../corelib/plugin/qfactoryinterface.h ../corelib/plugin/qlibrary.h ../corelib/plugin/qplugin.h ../corelib/plugin/qpluginloader.h ../corelib/plugin/quuid.h ../corelib/global/qconfig-dist.h ../corelib/global/qconfig-large.h ../corelib/global/qconfig-medium.h ../corelib/global/qconfig-minimal.h ../corelib/global/qconfig-nacl.h ../corelib/global/qconfig-small.h ../corelib/global/qendian.h ../corelib/global/qfeatures.h ../corelib/global/qglobal.h ../corelib/global/qlibraryinfo.h ../corelib/global/qnamespace.h ../corelib/global/qnumeric.h ../corelib/global/qt_windows.h ../corelib/global/qconfig.h ../corelib/codecs/qtextcodec.h ../corelib/codecs/qtextcodecplugin.h ../corelib/io/qabstractfileengine.h ../corelib/io/qbuffer.h ../corelib/io/qdatastream.h ../corelib/io/qdebug.h ../corelib/io/qdir.h ../corelib/io/qdiriterator.h ../corelib/io/qfile.h ../corelib/io/qfileinfo.h ../corelib/io/qfilesystemwatcher.h ../corelib/io/qfsfileengine.h ../corelib/io/qiodevice.h ../corelib/io/qprocess.h ../corelib/io/qresource.h ../corelib/io/qsettings.h ../corelib/io/qtemporaryfile.h ../corelib/io/qtextstream.h ../corelib/io/qurl.h ../corelib/animation/qabstractanimation.h ../corelib/animation/qanimationgroup.h ../corelib/animation/qparallelanimationgroup.h ../corelib/animation/qpauseanimation.h ../corelib/animation/qpropertyanimation.h ../corelib/animation/qsequentialanimationgroup.h ../corelib/animation/qvariantanimation.h ../corelib/tools/qalgorithms.h ../corelib/tools/qbitarray.h ../corelib/tools/qbytearray.h ../corelib/tools/qbytearraymatcher.h ../corelib/tools/qcache.h ../corelib/tools/qchar.h ../corelib/tools/qcontainerfwd.h ../corelib/tools/qcontiguouscache.h ../corelib/tools/qcryptographichash.h ../corelib/tools/qdatetime.h ../corelib/tools/qeasingcurve.h ../corelib/tools/qelapsedtimer.h ../corelib/tools/qhash.h ../corelib/tools/qiterator.h ../corelib/tools/qline.h ../corelib/tools/qlinkedlist.h ../corelib/tools/qlist.h ../corelib/tools/qlocale.h ../corelib/tools/qlocale_blackberry.h ../corelib/tools/qmap.h ../corelib/tools/qmargins.h ../corelib/tools/qpair.h ../corelib/tools/qpoint.h ../corelib/tools/qqueue.h ../corelib/tools/qrect.h ../corelib/tools/qregexp.h ../corelib/tools/qscopedpointer.h ../corelib/tools/qscopedvaluerollback.h ../corelib/tools/qset.h ../corelib/tools/qshareddata.h ../corelib/tools/qsharedpointer.h ../corelib/tools/qsharedpointer_impl.h ../corelib/tools/qsize.h ../corelib/tools/qstack.h ../corelib/tools/qstring.h ../corelib/tools/qstringbuilder.h ../corelib/tools/qstringlist.h ../corelib/tools/qstringmatcher.h ../corelib/tools/qtextboundaryfinder.h ../corelib/tools/qtimeline.h ../corelib/tools/qvarlengtharray.h ../corelib/tools/qvector.h ../../include/QtCore/QtCore + SYNCQT.HEADER_CLASSES = ../../include/QtCore/QAbstractState ../../include/QtCore/QAbstractTransition ../../include/QtCore/QEventTransition ../../include/QtCore/QFinalState ../../include/QtCore/QHistoryState ../../include/QtCore/QSignalTransition ../../include/QtCore/QState ../../include/QtCore/QStateMachine ../../include/QtCore/QAtomicInt ../../include/QtCore/QAtomicPointer ../../include/QtCore/QBasicAtomicInt ../../include/QtCore/QBasicAtomicPointer ../../include/QtCore/QMutex ../../include/QtCore/QMutexLocker ../../include/QtCore/QMutexData ../../include/QtCore/QReadWriteLock ../../include/QtCore/QReadLocker ../../include/QtCore/QWriteLocker ../../include/QtCore/QSemaphore ../../include/QtCore/QThread ../../include/QtCore/QThreadStorageData ../../include/QtCore/QThreadStorage ../../include/QtCore/QWaitCondition ../../include/QtCore/QXmlStreamStringRef ../../include/QtCore/QXmlStreamAttribute ../../include/QtCore/QXmlStreamAttributes ../../include/QtCore/QXmlStreamNamespaceDeclaration ../../include/QtCore/QXmlStreamNamespaceDeclarations ../../include/QtCore/QXmlStreamNotationDeclaration ../../include/QtCore/QXmlStreamNotationDeclarations ../../include/QtCore/QXmlStreamEntityDeclaration ../../include/QtCore/QXmlStreamEntityDeclarations ../../include/QtCore/QXmlStreamEntityResolver ../../include/QtCore/QXmlStreamReader ../../include/QtCore/QXmlStreamWriter ../../include/QtCore/QFuture ../../include/QtCore/QFutureIterator ../../include/QtCore/QMutableFutureIterator ../../include/QtCore/QFutureInterfaceBase ../../include/QtCore/QFutureInterface ../../include/QtCore/QFutureSynchronizer ../../include/QtCore/QFutureWatcherBase ../../include/QtCore/QFutureWatcher ../../include/QtCore/QRunnable ../../include/QtCore/QtConcurrentFilter ../../include/QtCore/QtConcurrentMap ../../include/QtCore/QtConcurrentRun ../../include/QtCore/QThreadPool ../../include/QtCore/QAbstractEventDispatcher ../../include/QtCore/QModelIndex ../../include/QtCore/QPersistentModelIndex ../../include/QtCore/QModelIndexList ../../include/QtCore/QAbstractItemModel ../../include/QtCore/QAbstractTableModel ../../include/QtCore/QAbstractListModel ../../include/QtCore/QBasicTimer ../../include/QtCore/QCoreApplication ../../include/QtCore/QtCleanUpFunction ../../include/QtCore/QEvent ../../include/QtCore/QTimerEvent ../../include/QtCore/QChildEvent ../../include/QtCore/QCustomEvent ../../include/QtCore/QDynamicPropertyChangeEvent ../../include/QtCore/QEventLoop ../../include/QtCore/QMetaMethod ../../include/QtCore/QMetaEnum ../../include/QtCore/QMetaProperty ../../include/QtCore/QMetaClassInfo ../../include/QtCore/QMetaType ../../include/QtCore/QMetaTypeId ../../include/QtCore/QMetaTypeId2 ../../include/QtCore/QMimeData ../../include/QtCore/QObjectList ../../include/QtCore/QObjectData ../../include/QtCore/QObject ../../include/QtCore/QObjectUserData ../../include/QtCore/QObjectCleanupHandler ../../include/QtCore/QGenericArgument ../../include/QtCore/QGenericReturnArgument ../../include/QtCore/QArgument ../../include/QtCore/QReturnArgument ../../include/QtCore/QMetaObject ../../include/QtCore/QMetaObjectAccessor ../../include/QtCore/QMetaObjectExtraData ../../include/QtCore/QPointer ../../include/QtCore/QSharedMemory ../../include/QtCore/QSignalMapper ../../include/QtCore/QSocketNotifier ../../include/QtCore/QSystemSemaphore ../../include/QtCore/QTimer ../../include/QtCore/QTranslator ../../include/QtCore/QVariant ../../include/QtCore/QVariantList ../../include/QtCore/QVariantMap ../../include/QtCore/QVariantHash ../../include/QtCore/QVariantComparisonHelper ../../include/QtCore/QFactoryInterface ../../include/QtCore/QLibrary ../../include/QtCore/QtPlugin ../../include/QtCore/QtPluginInstanceFunction ../../include/QtCore/QPluginLoader ../../include/QtCore/QUuid ../../include/QtCore/QtEndian ../../include/QtCore/QtGlobal ../../include/QtCore/QIntegerForSize ../../include/QtCore/QNoImplicitBoolCast ../../include/QtCore/Q_INT8 ../../include/QtCore/Q_UINT8 ../../include/QtCore/Q_INT16 ../../include/QtCore/Q_UINT16 ../../include/QtCore/Q_INT32 ../../include/QtCore/Q_UINT32 ../../include/QtCore/Q_INT64 ../../include/QtCore/Q_UINT64 ../../include/QtCore/Q_LLONG ../../include/QtCore/Q_ULLONG ../../include/QtCore/Q_LONG ../../include/QtCore/Q_ULONG ../../include/QtCore/QSysInfo ../../include/QtCore/QtMsgHandler ../../include/QtCore/QGlobalStatic ../../include/QtCore/QGlobalStaticDeleter ../../include/QtCore/QBool ../../include/QtCore/QTypeInfo ../../include/QtCore/QFlag ../../include/QtCore/QIncompatibleFlag ../../include/QtCore/QFlags ../../include/QtCore/QForeachContainer ../../include/QtCore/QForeachContainerBase ../../include/QtCore/QLibraryInfo ../../include/QtCore/Qt ../../include/QtCore/QInternal ../../include/QtCore/QCOORD ../../include/QtCore/QtConfig ../../include/QtCore/QTextCodec ../../include/QtCore/QTextEncoder ../../include/QtCore/QTextDecoder ../../include/QtCore/QTextCodecFactoryInterface ../../include/QtCore/QTextCodecPlugin ../../include/QtCore/QAbstractFileEngine ../../include/QtCore/QAbstractFileEngineHandler ../../include/QtCore/QAbstractFileEngineIterator ../../include/QtCore/QBuffer ../../include/QtCore/QDataStream ../../include/QtCore/QtDebug ../../include/QtCore/QDebug ../../include/QtCore/QNoDebug ../../include/QtCore/QDir ../../include/QtCore/QDirIterator ../../include/QtCore/QFile ../../include/QtCore/QFileInfo ../../include/QtCore/QFileInfoList ../../include/QtCore/QFileInfoListIterator ../../include/QtCore/QFileSystemWatcher ../../include/QtCore/QFSFileEngine ../../include/QtCore/QIODevice ../../include/QtCore/Q_PID ../../include/QtCore/QProcessEnvironment ../../include/QtCore/QProcess ../../include/QtCore/QResource ../../include/QtCore/QSettings ../../include/QtCore/QTemporaryFile ../../include/QtCore/QTextStream ../../include/QtCore/QTextStreamFunction ../../include/QtCore/QTextStreamManipulator ../../include/QtCore/QTS ../../include/QtCore/QTextIStream ../../include/QtCore/QTextOStream ../../include/QtCore/QUrl ../../include/QtCore/QAbstractAnimation ../../include/QtCore/QAnimationDriver ../../include/QtCore/QAnimationGroup ../../include/QtCore/QParallelAnimationGroup ../../include/QtCore/QPauseAnimation ../../include/QtCore/QPropertyAnimation ../../include/QtCore/QSequentialAnimationGroup ../../include/QtCore/QVariantAnimation ../../include/QtCore/QtAlgorithms ../../include/QtCore/QBitArray ../../include/QtCore/QBitRef ../../include/QtCore/QByteArray ../../include/QtCore/QByteRef ../../include/QtCore/QByteArrayMatcher ../../include/QtCore/QCache ../../include/QtCore/QLatin1Char ../../include/QtCore/QChar ../../include/QtCore/QtContainerFwd ../../include/QtCore/QContiguousCacheData ../../include/QtCore/QContiguousCacheTypedData ../../include/QtCore/QContiguousCache ../../include/QtCore/QCryptographicHash ../../include/QtCore/QDate ../../include/QtCore/QTime ../../include/QtCore/QDateTime ../../include/QtCore/QEasingCurve ../../include/QtCore/QElapsedTimer ../../include/QtCore/QHashData ../../include/QtCore/QHashDummyValue ../../include/QtCore/QHashDummyNode ../../include/QtCore/QHashNode ../../include/QtCore/QHash ../../include/QtCore/QMultiHash ../../include/QtCore/QHashIterator ../../include/QtCore/QMutableHashIterator ../../include/QtCore/QLine ../../include/QtCore/QLineF ../../include/QtCore/QLinkedListData ../../include/QtCore/QLinkedListNode ../../include/QtCore/QLinkedList ../../include/QtCore/QLinkedListIterator ../../include/QtCore/QMutableLinkedListIterator ../../include/QtCore/QListData ../../include/QtCore/QList ../../include/QtCore/QListIterator ../../include/QtCore/QMutableListIterator ../../include/QtCore/QSystemLocale ../../include/QtCore/QLocale ../../include/QtCore/QBBSystemLocaleData ../../include/QtCore/QMapData ../../include/QtCore/QMapNode ../../include/QtCore/QMapPayloadNode ../../include/QtCore/QMap ../../include/QtCore/QMultiMap ../../include/QtCore/QMapIterator ../../include/QtCore/QMutableMapIterator ../../include/QtCore/QMargins ../../include/QtCore/QPair ../../include/QtCore/QPoint ../../include/QtCore/QPointF ../../include/QtCore/QQueue ../../include/QtCore/QRect ../../include/QtCore/QRectF ../../include/QtCore/QRegExp ../../include/QtCore/QScopedPointerDeleter ../../include/QtCore/QScopedPointerArrayDeleter ../../include/QtCore/QScopedPointerPodDeleter ../../include/QtCore/QScopedPointer ../../include/QtCore/QScopedArrayPointer ../../include/QtCore/QScopedValueRollback ../../include/QtCore/QSet ../../include/QtCore/QSetIterator ../../include/QtCore/QMutableSetIterator ../../include/QtCore/QSharedData ../../include/QtCore/QSharedDataPointer ../../include/QtCore/QExplicitlySharedDataPointer ../../include/QtCore/QSharedPointer ../../include/QtCore/QWeakPointer ../../include/QtCore/QSize ../../include/QtCore/QSizeF ../../include/QtCore/QStack ../../include/QtCore/QStdWString ../../include/QtCore/QString ../../include/QtCore/QLatin1String ../../include/QtCore/QCharRef ../../include/QtCore/QConstString ../../include/QtCore/QStringRef ../../include/QtCore/QLatin1Literal ../../include/QtCore/QAbstractConcatenable ../../include/QtCore/QConcatenable ../../include/QtCore/QStringBuilder ../../include/QtCore/QStringListIterator ../../include/QtCore/QMutableStringListIterator ../../include/QtCore/QStringList ../../include/QtCore/QStringMatcher ../../include/QtCore/QTextBoundaryFinder ../../include/QtCore/QTimeLine ../../include/QtCore/QVarLengthArray ../../include/QtCore/QVectorData ../../include/QtCore/QVectorTypedData ../../include/QtCore/QVector ../../include/QtCore/QVectorIterator ../../include/QtCore/QMutableVectorIterator + SYNCQT.PRIVATE_HEADER_FILES = ../corelib/statemachine/qabstractstate_p.h ../corelib/statemachine/qabstracttransition_p.h ../corelib/statemachine/qeventtransition_p.h ../corelib/statemachine/qhistorystate_p.h ../corelib/statemachine/qsignaleventgenerator_p.h ../corelib/statemachine/qsignaltransition_p.h ../corelib/statemachine/qstate_p.h ../corelib/statemachine/qstatemachine_p.h ../corelib/thread/qmutex_p.h ../corelib/thread/qmutexpool_p.h ../corelib/thread/qorderedmutexlocker_p.h ../corelib/thread/qreadwritelock_p.h ../corelib/thread/qthread_p.h ../corelib/xml/qxmlstream_p.h ../corelib/xml/qxmlutils_p.h ../corelib/concurrent/qfutureinterface_p.h ../corelib/concurrent/qfuturewatcher_p.h ../corelib/concurrent/qthreadpool_p.h ../corelib/kernel/qabstracteventdispatcher_p.h ../corelib/kernel/qabstractitemmodel_p.h ../corelib/kernel/qcore_mac_p.h ../corelib/kernel/qcore_symbian_p.h ../corelib/kernel/qcore_unix_p.h ../corelib/kernel/qcoreapplication_p.h ../corelib/kernel/qcorecmdlineargs_p.h ../corelib/kernel/qcoreglobaldata_p.h ../corelib/kernel/qcrashhandler_p.h ../corelib/kernel/qeventdispatcher_blackberry_p.h ../corelib/kernel/qeventdispatcher_glib_p.h ../corelib/kernel/qeventdispatcher_symbian_p.h ../corelib/kernel/qeventdispatcher_unix_p.h ../corelib/kernel/qeventdispatcher_win_p.h ../corelib/kernel/qfunctions_p.h ../corelib/kernel/qmetaobject_p.h ../corelib/kernel/qobject_p.h ../corelib/kernel/qsharedmemory_p.h ../corelib/kernel/qsystemerror_p.h ../corelib/kernel/qsystemsemaphore_p.h ../corelib/kernel/qtranslator_p.h ../corelib/kernel/qvariant_p.h ../corelib/kernel/qwineventnotifier_p.h ../corelib/plugin/qelfparser_p.h ../corelib/plugin/qfactoryloader_p.h ../corelib/plugin/qlibrary_p.h ../corelib/plugin/qsystemlibrary_p.h ../corelib/global/qnumeric_p.h ../corelib/global/qt_pch.h ../corelib/codecs/qfontlaocodec_p.h ../corelib/codecs/qiconvcodec_p.h ../corelib/codecs/qisciicodec_p.h ../corelib/codecs/qlatincodec_p.h ../corelib/codecs/qsimplecodec_p.h ../corelib/codecs/qtextcodec_p.h ../corelib/codecs/qtsciicodec_p.h ../corelib/codecs/qutfcodec_p.h ../corelib/io/qabstractfileengine_p.h ../corelib/io/qdatastream_p.h ../corelib/io/qdataurl_p.h ../corelib/io/qdir_p.h ../corelib/io/qfile_p.h ../corelib/io/qfileinfo_p.h ../corelib/io/qfilesystemengine_p.h ../corelib/io/qfilesystementry_p.h ../corelib/io/qfilesystemiterator_p.h ../corelib/io/qfilesystemmetadata_p.h ../corelib/io/qfilesystemwatcher_dnotify_p.h ../corelib/io/qfilesystemwatcher_fsevents_p.h ../corelib/io/qfilesystemwatcher_inotify_p.h ../corelib/io/qfilesystemwatcher_kqueue_p.h ../corelib/io/qfilesystemwatcher_p.h ../corelib/io/qfilesystemwatcher_symbian_p.h ../corelib/io/qfilesystemwatcher_win_p.h ../corelib/io/qfsfileengine_iterator_p.h ../corelib/io/qfsfileengine_p.h ../corelib/io/qiodevice_p.h ../corelib/io/qnoncontiguousbytedevice_p.h ../corelib/io/qprocess_p.h ../corelib/io/qresource_iterator_p.h ../corelib/io/qresource_p.h ../corelib/io/qsettings_p.h ../corelib/io/qtldurl_p.h ../corelib/io/qurltlds_p.h ../corelib/io/qwindowspipewriter_p.h ../corelib/animation/qabstractanimation_p.h ../corelib/animation/qanimationgroup_p.h ../corelib/animation/qparallelanimationgroup_p.h ../corelib/animation/qpropertyanimation_p.h ../corelib/animation/qsequentialanimationgroup_p.h ../corelib/animation/qvariantanimation_p.h ../corelib/tools/qbytedata_p.h ../corelib/tools/qdatetime_p.h ../corelib/tools/qharfbuzz_p.h ../corelib/tools/qlocale_data_p.h ../corelib/tools/qlocale_p.h ../corelib/tools/qlocale_tools_p.h ../corelib/tools/qpodlist_p.h ../corelib/tools/qringbuffer_p.h ../corelib/tools/qscopedpointer_p.h ../corelib/tools/qsimd_p.h ../corelib/tools/qtools_p.h ../corelib/tools/qunicodetables_p.h
meta/recipes-qt/qt4/qt4-native.inc +4 -0
@@ -18,6 +18,10 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever file://0002-qkbdtty_qws-fix-build-with-old-kernel-headers.patch \ file://0003-webkit2-set-OUTPUT_DIR-value-if-empty.patch \ file://0021-configure-make-qt4-native-work-with-long-building-pa.patch \ + file://0029-aarch64_arm64_fix_arch_detection.patch \ + file://0030-aarch64_arm64_qatomic_support.patch \ + file://0031-aarch64_arm64_mkspecs.patch \ + file://0032-aarch64_add_header.patch \ file://g++.conf \ file://linux.conf \ "
Signature · 1 line
1.9.1
PATCH 6/9 qt4: add aarch64 support
In reply to Kai KangAdd qt4 aarch64 support. Use same patches with qt-native. Add arch check to set right QT_ARCH.
Disable webkit temporarily that it fails to build:
| runtime/JSValueInlineMethods.h: In constructor 'JSC::JSValue::JSValue(const JSC::JSCell*)':
| runtime/JSValueInlineMethods.h:242:78: error: cast from 'JSC::JSCell*' to 'int32_t {aka int}' loses precision [-fpermissive]
It has been fix by Qt5, but didn't backport to Qt4. There is an still open defect for it:
https://bugreports.qt-project.org/browse/QTBUG-35442
--- meta/recipes-qt/qt4/qt4-4.8.6.inc | 4 ++++ meta/recipes-qt/qt4/qt4-x11-free_4.8.6.bb | 3 +++ meta/recipes-qt/qt4/qt4_arch.inc | 1 + 3 files changed, 8 insertions(+)
meta/recipes-qt/qt4/qt4-4.8.6.inc +4 -0
@@ -22,6 +22,10 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever file://0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch \ file://0027-tools.pro-disable-qmeegographicssystemhelper.patch \ file://0028-Don-t-crash-on-broken-GIF-images.patch \ + file://0029-aarch64_arm64_fix_arch_detection.patch \ + file://0030-aarch64_arm64_qatomic_support.patch \ + file://0031-aarch64_arm64_mkspecs.patch \ + file://0032-aarch64_add_header.patch \ file://g++.conf \ file://linux.conf \ "
meta/recipes-qt/qt4/qt4-x11-free_4.8.6.bb +3 -0
@@ -7,3 +7,6 @@ QT_CONFIG_FLAGS += " \ -no-embedded \ -xrandr \ -x11" + +# disable webkit for aarch64 temporarily that fails to compile +QT_CONFIG_FLAGS_append_aarch64 = " -no-webkit"
meta/recipes-qt/qt4/qt4_arch.inc +1 -0
@@ -4,6 +4,7 @@ ARM_INSTRUCTION_SET = "arm" set_arch() { case ${TARGET_ARCH} in + aarch64) QT_ARCH=aarch64 ;; arm*) QT_ARCH=arm ;; i*86*) QT_ARCH=i386 ;; mips*) QT_ARCH=mips ;;
Signature · 1 line
1.9.1
PATCH 7/9 qt4-embedded: disable webkit
In reply to Kai KangDisable webkit for aarch64 that make qt4-embedded build.
--- meta/recipes-qt/qt4/qt4-embedded_4.8.6.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-qt/qt4/qt4-embedded_4.8.6.bb +1 -0
@@ -7,3 +7,4 @@ QT_CONFIG_FLAGS += " \ -exceptions \ " +QT_CONFIG_FLAGS_append_aarch64 = " -no-webkit"
Signature · 1 line
1.9.1
PATCH 8/9 libpng: add neon option for aarch64
In reply to Kai KangAdd neon option for aarch64 just as for arm. It fails with:
| ./.libs/libpng16.so: undefined reference to `png_init_filter_functions_neon' | collect2: error: ld returned 1 exit status
--- meta/recipes-multimedia/libpng/libpng_1.6.13.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-multimedia/libpng/libpng_1.6.13.bb +1 -0
@@ -20,6 +20,7 @@ inherit autotools binconfig-disabled pkgconfig # Work around missing symbols EXTRA_OECONF_append_arm = " ${@bb.utils.contains("TUNE_FEATURES", "neon", "--enable-arm-neon=on", "--enable-arm-neon=off" ,d)}" +EXTRA_OECONF_append_aarch64 = " ${@bb.utils.contains("TUNE_FEATURES", "neon", "--enable-arm-neon=on", "--enable-arm-neon=off" ,d)}" PACKAGES =+ "${PN}-tools"
Signature · 1 line
1.9.1
PATCH 9/9 perf: disable libunwind support for aarch64
In reply to Kai KangDisable libunwind support of perl for aarch aarch64 that libunwind doesn't support aarch64.
--- meta/recipes-kernel/perf/perf-features.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-kernel/perf/perf-features.inc +1 -0
@@ -1,4 +1,5 @@ PERF_FEATURES_ENABLE ?= "perf-scripting perf-tui perf-libunwind" +PERF_FEATURES_ENABLE_aarch64 ?= "perf-scripting perf-tui" def perf_feature_enabled(feature, trueval, falseval, d): """
Signature · 1 line
1.9.1
Re: [PATCH 9/9] perf: disable libunwind support for aarch64
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 13 lines · Kai Kang
Disable libunwind support of perl for aarch aarch64 that libunwind doesn't support aarch64.
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-kernel/perf/perf-features.inc | 1 + 1 file changed, 1 insertion(+)meta/recipes-kernel/perf/perf-features.inc +0
-0
meta/recipes-kernel/perf/perf-features.inc line 3
Quoted 3 lines
meta/recipes-kernel/perf/perf-features.inc +1
-0@@ -1,4 +1,5 @@ PERF_FEATURES_ENABLE ?= "perf-scripting perf-tui perf-libunwind" +PERF_FEATURES_ENABLE_aarch64 ?= "perf-scripting perf-tui"
you could also say PERF_FEATURES_ENABLE_remove_aarch64 = "perf-libunwind"
meta/recipes-kernel/perf/perf-features.inc line 5
Quoted 3 lines
meta/recipes-kernel/perf/perf-features.inc +0
-0def perf_feature_enabled(feature, trueval, falseval, d): """
- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAlQahLUACgkQuwUzVZGdMxRUTgCbB9mselfaJ3OdHJTFnZp34n15 OacAni2H6G+Mri1zW7+W5OCHBbgzfE5L
=lgJC
-----END PGP SIGNATURE-----
Re: [PATCH 9/9] perf: disable libunwind support for aarch64
Quoted 14 lines · Khem Raj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 8 lines · Kai Kang
Disable libunwind support of perl for aarch aarch64 that libunwind doesn't support aarch64.
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-kernel/perf/perf-features.inc | 1 + 1 file changed, 1 insertion(+)
Quoted 9 lines
meta/recipes-kernel/perf/perf-features.inc line 3
Quoted 8 lines
meta/recipes-kernel/perf/perf-features.inc +1
-0@@ -1,4 +1,5 @@ PERF_FEATURES_ENABLE ?= "perf-scripting perf-tui perf-libunwind" +PERF_FEATURES_ENABLE_aarch64 ?= "perf-scripting perf-tui"you could also say
PERF_FEATURES_ENABLE_remove_aarch64= "perf-libunwind"
Thanks. I'll try it.
--Kai
Quoted 14 lines
meta/recipes-kernel/perf/perf-features.inc line 5
Quoted 4 lines
meta/recipes-kernel/perf/perf-features.inc +0
-0def perf_feature_enabled(feature, trueval, falseval, d): """- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.orgiEYEARECAAYFAlQahLUACgkQuwUzVZGdMxRUTgCbB9mselfaJ3OdHJTFnZp34n15 OacAni2H6G+Mri1zW7+W5OCHBbgzfE5L
=lgJC
-----END PGP SIGNATURE-----
Signature · 2 lines
Regards, Neil | Kai Kang
Quoted 8 lines · Kai Kang
V2:
* fix kernel linux-yocto build faiure
* redefine position of dynamic linker from /lib to /lib64
* other fixes of userspace packagesTest with Joe Slater's patches:
* siteinfo: account for 32 and 64 bit arm
* sysprof: add aarch64 support
Add there are 2 known failures of build world:
1 meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb: it needs a valid kernel config. CONFIG_MODULES is not set for now.
2 meta/recipes-support/libunwind/libunwind_1.1.bb: it was added recently and seems not support aarch64. Maybe we should exclude it from world for aarch64.
Regards,
Kai
Quoted 50 lines
The following changes since commit
fceef0cace6670a8c5f15cd2f31a191176732730:bitbake:
data_smart: Fix remove operator and its interaction with data expansion (2014-09-13 08:52:49 +0100)are available in the git repository at:
git://git.pokylinux.org/poky-contribkangkai/qemuarm64
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/qemuarm64Kai Kang (9):
linux-yocto: depend on libgcc for aarch64 Add machine qemuarm64
gcc-4.9: redefine dynamic linker for aarch64
libatomics-ops: add aarch64 target iniitial support
qt4-native: add aarch64 support
qt4: add aarch64 support
qt4-embedded: disable webkit
libpng: add neon option for aarch64
perf: disable libunwind support for aarch64meta/conf/bitbake.conf | 1 + meta/conf/machine/include/arm/arch-armv8.inc | 20 + meta/conf/machine/qemuarm64.conf | 12 + meta/recipes-devtools/gcc/gcc-4.9.inc | 1 + .../0056-redefine-dynamic-linker-for-aarch64.patch | 34 ++ meta/recipes-kernel/linux/linux-yocto.inc | 1 + meta/recipes-kernel/perf/perf-features.inc | 1 + meta/recipes-multimedia/libpng/libpng_1.6.13.bb | 1 + .../0001-libatomic_ops-Aarch64-basic-port.patch | 239 ++++++++++ .../pulseaudio/libatomics-ops_7.2.bb | 1 + meta/recipes-qt/qt4/qt4-4.8.6.inc | 4 + .../0029-aarch64_arm64_fix_arch_detection.patch | 53 +++ .../0030-aarch64_arm64_qatomic_support.patch | 491 +++++++++++++++++++++ .../qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patch | 124 ++++++ .../qt4/qt4-4.8.6/0032-aarch64_add_header.patch | 18 + meta/recipes-qt/qt4/qt4-embedded_4.8.6.bb | 1 + meta/recipes-qt/qt4/qt4-native.inc | 4 + meta/recipes-qt/qt4/qt4-x11-free_4.8.6.bb | 3 + meta/recipes-qt/qt4/qt4_arch.inc | 1 + 19 files changed, 1010 insertions(+)create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
create mode 100644meta/conf/machine/qemuarm64.conf
create mode 100644meta/recipes-devtools/gcc/gcc-4.9/0056-redefine-dynamic-linker-for-aarch64.patchcreate mode 100644meta/recipes-multimedia/pulseaudio/files/0001-libatomic_ops-Aarch64-basic-port.patchcreate mode 100644meta/recipes-qt/qt4/qt4-4.8.6/0029-aarch64_arm64_fix_arch_detection.patchcreate mode 100644meta/recipes-qt/qt4/qt4-4.8.6/0030-aarch64_arm64_qatomic_support.patchcreate mode 100644meta/recipes-qt/qt4/qt4-4.8.6/0031-aarch64_arm64_mkspecs.patchcreate mode 100644meta/recipes-qt/qt4/qt4-4.8.6/0032-aarch64_add_header.patch
Signature · 2 lines
Regards, Neil | Kai Kang
Quoted 8 lines · Kai Kang
V2:
* fix kernel linux-yocto build faiure
* redefine position of dynamic linker from /lib to /lib64
* other fixes of userspace packagesTest with Joe Slater's patches:
* siteinfo: account for 32 and 64 bit arm
* sysprof: add aarch64 support
So aarch64 support really needs qemuarm64 in oe-core to be tested, and qemuarm64 is a new feature, and we froze for new features two weeks ago. Blindly merging aarch64 patches that we can't currently test doesn't seem sensible.
Could someone who is actually testing and working on the aarch64 support (you?) manage a single branch that tracks master, so when 1.7 branches off we can do a merge straight away.
Ross
Quoted 9 lines · Ross
Quoted 8 lines · Kai Kang
V2:
* fix kernel linux-yocto build faiure
* redefine position of dynamic linker from /lib to /lib64
* other fixes of userspace packagesTest with Joe Slater's patches:
* siteinfo: account for 32 and 64 bit arm
* sysprof: add aarch64 support
Quoted 8 lines
So aarch64 support really needs qemuarm64 in oe-core to be tested, and qemuarm64 is a new feature, and we froze for new features two weeks ago. Blindly merging aarch64 patches that we can't currently test doesn't seem sensible.
Could someone who is actually testing and working on the aarch64 support (you?) manage a single branch that tracks master, so when 1.7 branches off we can do a merge straight away.
OK. We will continue to work on arch aarch64 and do runtime tests.
--Kai
Quoted 4 lines
Ross
Signature · 2 lines
Regards, Neil | Kai Kang