diff options
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-128/riscv.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128/riscv.patch b/meta-oe/recipes-extended/mozjs/mozjs-128/riscv.patch new file mode 100644 index 0000000000..cb2dc66525 --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs-128/riscv.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Recognise riscv64gc and riscv32gc as valid architectures | ||
2 | |||
3 | Rust uses above for architecture in tuples | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py | ||
8 | +++ b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py | ||
9 | @@ -1327,6 +1327,10 @@ class LinuxCrossCompileToolchainTest(Bas | ||
10 | "mips-unknown-linux-gnu": big_endian + {"__mips__": 1}, | ||
11 | "riscv32-unknown-linux-gnu": little_endian + {"__riscv": 1, "__riscv_xlen": 32}, | ||
12 | "riscv64-unknown-linux-gnu": little_endian + {"__riscv": 1, "__riscv_xlen": 64}, | ||
13 | + "riscv32gc-unknown-linux-gnu": little_endian | ||
14 | + + {"__riscv": 1, "__riscv_xlen": 32}, | ||
15 | + "riscv64gc-unknown-linux-gnu": little_endian | ||
16 | + + {"__riscv": 1, "__riscv_xlen": 64}, | ||
17 | "sh4-unknown-linux-gnu": little_endian + {"__sh__": 1}, | ||
18 | } | ||
19 | |||
20 | --- a/build/autoconf/config.sub | ||
21 | +++ b/build/autoconf/config.sub | ||
22 | @@ -1236,7 +1236,7 @@ case $cpu-$vendor in | ||
23 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | ||
24 | | pru \ | ||
25 | | pyramid \ | ||
26 | - | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | ||
27 | + | riscv | riscv32 | riscv32be | riscv32gc | riscv64 | riscv64be | riscv64gc \ | ||
28 | | rl78 | romp | rs6000 | rx \ | ||
29 | | s390 | s390x \ | ||
30 | | score \ | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb b/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb index 0fbf3d43f9..0edfbe73fc 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire | |||
15 | file://0001-add-arm-to-list-of-mozinline.patch \ | 15 | file://0001-add-arm-to-list-of-mozinline.patch \ |
16 | file://armv5.patch \ | 16 | file://armv5.patch \ |
17 | file://0001-Link-with-icu-uc-to-fix-build-with-ICU-76.patch \ | 17 | file://0001-Link-with-icu-uc-to-fix-build-with-ICU-76.patch \ |
18 | file://riscv.patch \ | ||
18 | " | 19 | " |
19 | SRC_URI[sha256sum] = "25d633eb81499cbda44b8c64fa1c1a5879d55024b864ef495d4997154d68358f" | 20 | SRC_URI[sha256sum] = "25d633eb81499cbda44b8c64fa1c1a5879d55024b864ef495d4997154d68358f" |
20 | 21 | ||