diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-05-11 15:32:46 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-05-23 18:15:07 -0300 |
commit | 95dee8c07751a7405bf7083bda0b310b78bca3c8 (patch) | |
tree | 8d511d031fb48b041d2289208201560de9b2f2b8 | |
parent | 171106dfddfde48d2124acf5110677459f0f0817 (diff) |
mozjs: enable support for riscv
Backport change from upstream in order to get mozjs to build for RISC-V.
Additional changes might still be required once better tested on a
running target.
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rw-r--r-- | recipes-extended/mozjs/files/riscv-support.patch | 14 | ||||
-rw-r--r-- | recipes-extended/mozjs/mozjs_17.0.0.bbappend | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/recipes-extended/mozjs/files/riscv-support.patch b/recipes-extended/mozjs/files/riscv-support.patch new file mode 100644 index 0000000..b23f085 --- /dev/null +++ b/recipes-extended/mozjs/files/riscv-support.patch @@ -0,0 +1,14 @@ +Backport from upstream. + +Index: a/mfbt/double-conversion/utils.h +=================================================================== +--- a/mfbt/double-conversion/utils.h ++++ b/mfbt/double-conversion/utils.h +@@ -59,6 +59,7 @@ + defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ + defined(__SH4__) || defined(__alpha__) || \ + defined(__aarch64__) || \ ++ defined(__riscv) || \ + defined(_MIPS_ARCH_MIPS32R2) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(_M_IX86) || defined(__i386__) || defined(__i386) diff --git a/recipes-extended/mozjs/mozjs_17.0.0.bbappend b/recipes-extended/mozjs/mozjs_17.0.0.bbappend new file mode 100644 index 0000000..60f9e0f --- /dev/null +++ b/recipes-extended/mozjs/mozjs_17.0.0.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI_append = " \ + file://riscv-support.patch;patchdir=../../ \ +" |