Skip to contentSkip to conversation

package/wpewebkit: allow building for risc-v

PATCH Applied Adrian Perez de Castro 2 participants 3 messages May 26, 2022 – May 31, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/wpewebkit: allow building for risc-v

WPE WebKit works just fine on RISC-V. For the current stable version the build system automatically picks the LLint JavaScript interpreter, and the upcoming 2.38.x release series will include (and automatically enable) JIT support.

---
 package/wpewebkit/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/wpewebkit/Config.in +4 -0
index 36523bdb41..8e80c73302 100644
@@ -7,6 +7,10 @@ config BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
 	# Disabled on MIPS big endian due to sigbus
 	default y if BR2_mipsel || BR2_mips64el
 	# Disabled on PowerPC pending runtime testing
+	# RISC-V needs the g/imafd ISA.
+	default y if BR2_riscv && BR2_RISCV_ISA_RVI \
+		&& BR2_RISCV_ISA_RVM && BR2_RISCV_ISA_RVA \
+		&& BR2_RISCV_ISA_RVF && BR2_RISCV_ISA_RVD
 	# Disabled on SuperH because of segfault
 	depends on BR2_USE_MMU # libglib2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
Signature · 6 lines
2.36.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/webkitgtk: allow building for risc-v

WebKitGTK works just fine on RISC-V. For the current stable version the build system automatically picks the LLint JavaScript interpreter, and the upcoming 2.38.x release series will include (and automatically enable) JIT support.

---
 package/webkitgtk/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/webkitgtk/Config.in +4 -0
index bc8207d93b..052800c8cf 100644
@@ -7,6 +7,10 @@ config BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
 	# Disabled on MIPS big endian due to sigbus
 	default y if BR2_mipsel || BR2_mips64el
 	# Disabled on PowerPC pending runtime testing
+	# RISC-V needs the g/imafd ISA.
+	default y if BR2_riscv && BR2_RISCV_ISA_RVI \
+		&& BR2_RISCV_ISA_RVM && BR2_RISCV_ISA_RVA \
+		&& BR2_RISCV_ISA_RVF && BR2_RISCV_ISA_RVD
 	# Disabled on SuperH because of segfault
 	depends on BR2_USE_MMU # libglib2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
Signature · 6 lines
2.36.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Adrian Perez de Castro
Quoted 9 lines · On Thu, 26 May 2022 14:37:33 +0300 Adrian Perez de Castro <[email protected]>…

WPE WebKit works just fine on RISC-V. For the current stable version the build system automatically picks the LLint JavaScript interpreter, and the upcoming 2.38.x release series will include (and automatically enable) JIT support.

---
 package/wpewebkit/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

Applied both to our next branch. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot