diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-16 11:22:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-17 16:53:05 +0000 |
commit | 17e7ff4be94ee6179208548e55f88c2568676d51 (patch) | |
tree | e13a4e43007d28dd251a4675b577668e4e11fdae /meta/recipes-sato/webkit | |
parent | ed602b58ed4d2f059e159b5898c788557e435d22 (diff) | |
download | poky-17e7ff4be94ee6179208548e55f88c2568676d51.tar.gz |
webkitgtk: Fix build on aarch64
Do not try to do runtime tests during cross compile
Fixes
| CMake Error at Source/cmake/OptionsCommon.cmake:73 (math):
| math cannot parse the expression: "-1": syntax error, unexpected exp_MINUS,
| expecting exp_OPENPARENT or exp_NUMBER (1)
(From OE-Core rev: 528006009dddd876a830e0a8f248658182a37f37)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/webkit')
-rw-r--r-- | meta/recipes-sato/webkit/files/cross-compile.patch | 23 | ||||
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.14.5.bb | 3 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/files/cross-compile.patch b/meta/recipes-sato/webkit/files/cross-compile.patch new file mode 100644 index 0000000000..4d1de72851 --- /dev/null +++ b/meta/recipes-sato/webkit/files/cross-compile.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Disable the tests meant to run when compiling natively | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | |||
6 | Index: webkitgtk-2.14.5/Source/cmake/OptionsCommon.cmake | ||
7 | =================================================================== | ||
8 | --- webkitgtk-2.14.5.orig/Source/cmake/OptionsCommon.cmake | ||
9 | +++ webkitgtk-2.14.5/Source/cmake/OptionsCommon.cmake | ||
10 | @@ -67,8 +67,11 @@ endif () | ||
11 | # Detect Cortex-A53 core if CPU is ARM64 and OS is Linux. | ||
12 | # Query /proc/cpuinfo for each available core and check reported CPU part number: 0xd03 signals Cortex-A53. | ||
13 | # (see Main ID Register in ARM Cortex-A53 MPCore Processor Technical Reference Manual) | ||
14 | -set(WTF_CPU_ARM64_CORTEXA53_INITIALVALUE OFF) | ||
15 | -if (WTF_CPU_ARM64 AND (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")) | ||
16 | +if( NOT WTF_CPU_ARM64_CORTEXA53_INITIALVALUE) | ||
17 | + set(WTF_CPU_ARM64_CORTEXA53_INITIALVALUE OFF) | ||
18 | +endif(WTF_CPU_ARM64_CORTEXA53_INITIALVALUE) | ||
19 | + | ||
20 | +if (WTF_CPU_ARM64 AND NOT CMAKE_CROSSCOMPILING AND (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")) | ||
21 | execute_process(COMMAND nproc OUTPUT_VARIABLE PROC_COUNT) | ||
22 | math(EXPR PROC_MAX ${PROC_COUNT}-1) | ||
23 | foreach (PROC_ID RANGE ${PROC_MAX}) | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.14.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.14.5.bb index 1eb5b0b6e1..daa17a94da 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.14.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.14.5.bb | |||
@@ -20,6 +20,7 @@ SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \ | |||
20 | file://0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch \ | 20 | file://0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch \ |
21 | file://detect_atomics.patch \ | 21 | file://detect_atomics.patch \ |
22 | file://x32_support.patch \ | 22 | file://x32_support.patch \ |
23 | file://cross-compile.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRC_URI[md5sum] = "7fe3cb2699e64f969b285823c5ae2516" | 26 | SRC_URI[md5sum] = "7fe3cb2699e64f969b285823c5ae2516" |
@@ -83,6 +84,8 @@ EXTRA_OECMAKE_append_aarch64 = " -DUSE_LD_GOLD=OFF " | |||
83 | EXTRA_OECMAKE_append_mipsarch = " -DUSE_LD_GOLD=OFF " | 84 | EXTRA_OECMAKE_append_mipsarch = " -DUSE_LD_GOLD=OFF " |
84 | EXTRA_OECMAKE_append_toolchain-clang = " -DUSE_LD_GOLD=OFF " | 85 | EXTRA_OECMAKE_append_toolchain-clang = " -DUSE_LD_GOLD=OFF " |
85 | 86 | ||
87 | EXTRA_OECMAKE_append_aarch64 = " -DWTF_CPU_ARM64_CORTEXA53=ON" | ||
88 | |||
86 | # JIT not supported on MIPS either | 89 | # JIT not supported on MIPS either |
87 | EXTRA_OECMAKE_append_mipsarch = " -DENABLE_JIT=OFF " | 90 | EXTRA_OECMAKE_append_mipsarch = " -DENABLE_JIT=OFF " |
88 | 91 | ||