diff options
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-115/armv5.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-115_115.6.0.bb | 2 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115/armv5.patch b/meta-oe/recipes-extended/mozjs/mozjs-115/armv5.patch new file mode 100644 index 0000000000..4c45955bca --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs-115/armv5.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | The ISB instruction isn't available in ARMv5 or v6, so | ||
| 2 | guard it's use to fix the build on qemuarmv5. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 6 | |||
| 7 | diff --git a/js/src/jit/arm/Architecture-arm.cpp b/js/src/jit/arm/Architecture-arm.cpp | ||
| 8 | --- a/js/src/jit/arm/Architecture-arm.cpp 2024-01-18 17:31:32.078718197 +0000 | ||
| 9 | +++ b/js/src/jit/arm/Architecture-arm.cpp 2024-01-18 18:00:16.738921445 +0000 | ||
| 10 | @@ -529,7 +529,9 @@ | ||
| 11 | void FlushExecutionContext() { | ||
| 12 | #ifndef JS_SIMULATOR_ARM | ||
| 13 | +#if __ARM_ARCH >= 7 | ||
| 14 | // Ensure that any instructions already in the pipeline are discarded and | ||
| 15 | // reloaded from the icache. | ||
| 16 | asm volatile("isb\n" : : : "memory"); | ||
| 17 | +#endif | ||
| 18 | #else | ||
| 19 | // We assume the icache flushing routines on other platforms take care of this | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115_115.6.0.bb b/meta-oe/recipes-extended/mozjs/mozjs-115_115.6.0.bb index 6503747d88..4d9bb0e585 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-115_115.6.0.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-115_115.6.0.bb | |||
| @@ -16,6 +16,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire | |||
| 16 | file://musl-disable-stackwalk.patch \ | 16 | file://musl-disable-stackwalk.patch \ |
| 17 | file://0001-add-arm-to-list-of-mozinline.patch \ | 17 | file://0001-add-arm-to-list-of-mozinline.patch \ |
| 18 | file://py3.12.patch \ | 18 | file://py3.12.patch \ |
| 19 | file://armv5.patch \ | ||
| 19 | " | 20 | " |
| 20 | SRC_URI[sha256sum] = "66d7e6e5129ac8e6fe83e24227dc7bb8dc42650bc53b21838e614de80d22bc66" | 21 | SRC_URI[sha256sum] = "66d7e6e5129ac8e6fe83e24227dc7bb8dc42650bc53b21838e614de80d22bc66" |
| 21 | 22 | ||
| @@ -75,6 +76,7 @@ do_configure() { | |||
| 75 | ${JIT} \ | 76 | ${JIT} \ |
| 76 | ${ICU} | 77 | ${ICU} |
| 77 | } | 78 | } |
| 79 | do_configure[cleandirs] += "${B}" | ||
| 78 | 80 | ||
| 79 | do_install() { | 81 | do_install() { |
| 80 | oe_runmake 'DESTDIR=${D}' install | 82 | oe_runmake 'DESTDIR=${D}' install |
