diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-04-09 07:11:16 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-16 17:41:30 +0100 |
| commit | b99893df3d8e0161682f838bfc75931220d58640 (patch) | |
| tree | dd1662623a9d42e19917e723d1fc9c234ece0da2 | |
| parent | 675ac3e14e154d16981bfe2bb1b828d7c111a0b4 (diff) | |
| download | poky-b99893df3d8e0161682f838bfc75931220d58640.tar.gz | |
webkitgtk: Use WTF_CPU_UNKNOWN when building for riscv64
This helps fix the build regression seen with 2.48+
(From OE-Core rev: e06114af90b78abb3ba2e75c59fc4c60db8b6a9a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-sato/webkit/webkitgtk/fix-ftbfs-riscv64.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.48.0.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/fix-ftbfs-riscv64.patch b/meta/recipes-sato/webkit/webkitgtk/fix-ftbfs-riscv64.patch new file mode 100644 index 0000000000..e436896098 --- /dev/null +++ b/meta/recipes-sato/webkit/webkitgtk/fix-ftbfs-riscv64.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From: Alberto Garcia <berto@igalia.com> | ||
| 2 | Description: Use WTF_CPU_UNKNOWN when building for riscv64 | ||
| 3 | WebKitGTK doesn't build on riscv64 even with the JIT disabled. | ||
| 4 | Treating the CPU as unknown is perhaps a bit severe, but it allows us | ||
| 5 | to get the build done until someone steps up to maintain this | ||
| 6 | properly. | ||
| 7 | Bug: https://bugs.webkit.org/show_bug.cgi?id=271371 | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://bugs.webkit.org/show_bug.cgi?id=271371#c1] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- a/Source/WTF/wtf/PlatformCPU.h | ||
| 12 | +++ b/Source/WTF/wtf/PlatformCPU.h | ||
| 13 | @@ -286,14 +286,6 @@ | ||
| 14 | |||
| 15 | #endif /* ARM */ | ||
| 16 | |||
| 17 | -/* CPU(RISCV64) - RISC-V 64-bit */ | ||
| 18 | -#if defined(__riscv) \ | ||
| 19 | - && defined(__riscv_xlen) \ | ||
| 20 | - && (__riscv_xlen == 64) | ||
| 21 | -#define WTF_CPU_RISCV64 1 | ||
| 22 | -#define WTF_CPU_KNOWN 1 | ||
| 23 | -#endif | ||
| 24 | - | ||
| 25 | #if !CPU(KNOWN) | ||
| 26 | #define WTF_CPU_UNKNOWN 1 | ||
| 27 | #endif | ||
| 28 | --- a/Source/cmake/WebKitCommon.cmake | ||
| 29 | +++ b/Source/cmake/WebKitCommon.cmake | ||
| 30 | @@ -125,8 +125,6 @@ if (NOT HAS_RUN_WEBKIT_COMMON) | ||
| 31 | set(WTF_CPU_PPC64 1) | ||
| 32 | elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le") | ||
| 33 | set(WTF_CPU_PPC64LE 1) | ||
| 34 | - elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64") | ||
| 35 | - set(WTF_CPU_RISCV64 1) | ||
| 36 | elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^loongarch64") | ||
| 37 | set(WTF_CPU_LOONGARCH64 1) | ||
| 38 | else () | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.48.0.bb b/meta/recipes-sato/webkit/webkitgtk_2.48.0.bb index 6eb80da1de..58b78b5f28 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.48.0.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.48.0.bb | |||
| @@ -19,6 +19,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \ | |||
| 19 | file://0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch \ | 19 | file://0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch \ |
| 20 | file://0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch \ | 20 | file://0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch \ |
| 21 | file://0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch \ | 21 | file://0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch \ |
| 22 | file://fix-ftbfs-riscv64.patch \ | ||
| 22 | " | 23 | " |
| 23 | SRC_URI[sha256sum] = "94904a55cf12d44a4e36ceadafff02d46da73d76be9b4769f34cbfdf0eebf88e" | 24 | SRC_URI[sha256sum] = "94904a55cf12d44a4e36ceadafff02d46da73d76be9b4769f34cbfdf0eebf88e" |
| 24 | 25 | ||
