mozjs-128: Fix riscv arch specification in triplets

Rust needs it these days

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-01-07 15:17:16 -08:00
parent b9a1eaa15f
commit 7b6d24f9de
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
Recognise riscv64gc and riscv32gc as valid architectures
Rust uses above for architecture in tuples
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py
+++ b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py
@@ -1327,6 +1327,10 @@ class LinuxCrossCompileToolchainTest(Bas
"mips-unknown-linux-gnu": big_endian + {"__mips__": 1},
"riscv32-unknown-linux-gnu": little_endian + {"__riscv": 1, "__riscv_xlen": 32},
"riscv64-unknown-linux-gnu": little_endian + {"__riscv": 1, "__riscv_xlen": 64},
+ "riscv32gc-unknown-linux-gnu": little_endian
+ + {"__riscv": 1, "__riscv_xlen": 32},
+ "riscv64gc-unknown-linux-gnu": little_endian
+ + {"__riscv": 1, "__riscv_xlen": 64},
"sh4-unknown-linux-gnu": little_endian + {"__sh__": 1},
}
--- a/build/autoconf/config.sub
+++ b/build/autoconf/config.sub
@@ -1236,7 +1236,7 @@ case $cpu-$vendor in
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
| pru \
| pyramid \
- | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
+ | riscv | riscv32 | riscv32be | riscv32gc | riscv64 | riscv64be | riscv64gc \
| rl78 | romp | rs6000 | rx \
| s390 | s390x \
| score \

View File

@ -15,6 +15,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire
file://0001-add-arm-to-list-of-mozinline.patch \
file://armv5.patch \
file://0001-Link-with-icu-uc-to-fix-build-with-ICU-76.patch \
file://riscv.patch \
"
SRC_URI[sha256sum] = "25d633eb81499cbda44b8c64fa1c1a5879d55024b864ef495d4997154d68358f"