123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
- index cd04bdf..e284026 100644
- --- a/build/gulpfile.reh.js
- +++ b/build/gulpfile.reh.js
- @@ -51,2 +51,3 @@ const BUILD_TARGETS = [
- { platform: 'linux', arch: 'ppc64le' },
- + { platform: 'linux', arch: 'riscv64' },
- { platform: 'alpine', arch: 'arm64' },
- diff --git a/build/gulpfile.scan.js b/build/gulpfile.scan.js
- index 484d5f4..66c8e1f 100644
- --- a/build/gulpfile.scan.js
- +++ b/build/gulpfile.scan.js
- @@ -27,2 +27,3 @@ const BUILD_TARGETS = [
- { platform: 'linux', arch: 'ppc64le' },
- + { platform: 'linux', arch: 'riscv64' },
- ];
- diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
- index 3ed2182..f0614d0 100644
- --- a/build/gulpfile.vscode.js
- +++ b/build/gulpfile.vscode.js
- @@ -492,2 +492,3 @@ const BUILD_TARGETS = [
- { platform: 'linux', arch: 'ppc64le' },
- + { platform: 'linux', arch: 'riscv64' },
- ];
- diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
- index 707581d..298181d 100644
- --- a/build/gulpfile.vscode.linux.js
- +++ b/build/gulpfile.vscode.linux.js
- @@ -33,3 +33,3 @@ const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
- function getDebPackageArch(arch) {
- - return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64', ppc64le: 'ppc64el' }[arch];
- + return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64', ppc64le: 'ppc64el', riscv64: 'riscv64' }[arch];
- }
- @@ -146,3 +146,3 @@ function getRpmBuildPath(rpmArch) {
- function getRpmPackageArch(arch) {
- - return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64', ppc64le: 'ppc64le' }[arch];
- + return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64', ppc64le: 'ppc64le', riscv64: 'riscv64' }[arch];
- }
- @@ -305,2 +305,3 @@ const BUILD_TARGETS = [
- { arch: 'ppc64le' },
- + { arch: 'riscv64' },
- ];
- diff --git a/build/linux/debian/calculate-deps.js b/build/linux/debian/calculate-deps.js
- index fdae163..a08ebda 100644
- --- a/build/linux/debian/calculate-deps.js
- +++ b/build/linux/debian/calculate-deps.js
- @@ -57,2 +57,5 @@ function calculatePackageDeps(binaryPath, arch, chromiumSysroot, vscodeSysroot)
- break;
- + case 'riscv64':
- + cmd.push(`-l${chromiumSysroot}/usr/lib/riscv64-linux-gnu`, `-l${chromiumSysroot}/lib/riscv64-linux-gnu`, `-l${vscodeSysroot}/usr/lib/riscv64-linux-gnu`, `-l${vscodeSysroot}/lib/riscv64-linux-gnu`);
- + break;
- }
- diff --git a/build/linux/debian/calculate-deps.ts b/build/linux/debian/calculate-deps.ts
- index 423c415..88ee2f0 100644
- --- a/build/linux/debian/calculate-deps.ts
- +++ b/build/linux/debian/calculate-deps.ts
- @@ -67,2 +67,8 @@ function calculatePackageDeps(binaryPath: string, arch: DebianArchString, chromi
- break;
- + case 'riscv64':
- + cmd.push(`-l${chromiumSysroot}/usr/lib/riscv64-linux-gnu`,
- + `-l${chromiumSysroot}/lib/riscv64-linux-gnu`,
- + `-l${vscodeSysroot}/usr/lib/riscv64-linux-gnu`,
- + `-l${vscodeSysroot}/lib/riscv64-linux-gnu`);
- + break;
- }
- diff --git a/build/linux/debian/dep-lists.js b/build/linux/debian/dep-lists.js
- index a85352e..4ccdcd9 100644
- --- a/build/linux/debian/dep-lists.js
- +++ b/build/linux/debian/dep-lists.js
- @@ -178,2 +178,42 @@ exports.referenceGeneratedDepsByArch = {
- ],
- + 'riscv64': [
- + 'ca-certificates',
- + 'libatomic1',
- + 'libasound2 (>= 1.0.17)',
- + 'libatk-bridge2.0-0 (>= 2.5.3)',
- + 'libatk1.0-0 (>= 2.2.0)',
- + 'libatspi2.0-0 (>= 2.9.90)',
- + 'libc6 (>= 2.17)',
- + 'libc6 (>= 2.28)',
- + 'libcairo2 (>= 1.6.0)',
- + 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
- + 'libdbus-1-3 (>= 1.0.2)',
- + 'libdrm2 (>= 2.4.60)',
- + 'libexpat1 (>= 2.0.1)',
- + 'libgbm1 (>= 17.1.0~rc2)',
- + 'libglib2.0-0 (>= 2.16.0)',
- + 'libglib2.0-0 (>= 2.39.4)',
- + 'libgtk-3-0 (>= 3.9.10)',
- + 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
- + 'libnspr4 (>= 2:4.9-2~)',
- + 'libnss3 (>= 2:3.22)',
- + 'libnss3 (>= 3.26)',
- + 'libpango-1.0-0 (>= 1.14.0)',
- + 'libsecret-1-0 (>= 0.18)',
- + 'libstdc++6 (>= 4.1.1)',
- + 'libstdc++6 (>= 5)',
- + 'libstdc++6 (>= 5.2)',
- + 'libstdc++6 (>= 6)',
- + 'libx11-6',
- + 'libx11-6 (>= 2:1.4.99.1)',
- + 'libxcb1 (>= 1.9.2)',
- + 'libxcomposite1 (>= 1:0.4.4-1)',
- + 'libxdamage1 (>= 1:1.1)',
- + 'libxext6',
- + 'libxfixes3',
- + 'libxkbcommon0 (>= 0.4.1)',
- + 'libxkbfile1',
- + 'libxrandr2',
- + 'xdg-utils (>= 1.0.2)'
- + ],
- };
- diff --git a/build/linux/debian/dep-lists.ts b/build/linux/debian/dep-lists.ts
- index 0d0f11b..b765492 100644
- --- a/build/linux/debian/dep-lists.ts
- +++ b/build/linux/debian/dep-lists.ts
- @@ -178,2 +178,42 @@ export const referenceGeneratedDepsByArch = {
- ],
- + 'riscv64': [
- + 'ca-certificates',
- + 'libatomic1',
- + 'libasound2 (>= 1.0.17)',
- + 'libatk-bridge2.0-0 (>= 2.5.3)',
- + 'libatk1.0-0 (>= 2.2.0)',
- + 'libatspi2.0-0 (>= 2.9.90)',
- + 'libc6 (>= 2.17)',
- + 'libc6 (>= 2.28)',
- + 'libcairo2 (>= 1.6.0)',
- + 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
- + 'libdbus-1-3 (>= 1.0.2)',
- + 'libdrm2 (>= 2.4.60)',
- + 'libexpat1 (>= 2.0.1)',
- + 'libgbm1 (>= 17.1.0~rc2)',
- + 'libglib2.0-0 (>= 2.16.0)',
- + 'libglib2.0-0 (>= 2.39.4)',
- + 'libgtk-3-0 (>= 3.9.10)',
- + 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
- + 'libnspr4 (>= 2:4.9-2~)',
- + 'libnss3 (>= 2:3.22)',
- + 'libnss3 (>= 3.26)',
- + 'libpango-1.0-0 (>= 1.14.0)',
- + 'libsecret-1-0 (>= 0.18)',
- + 'libstdc++6 (>= 4.1.1)',
- + 'libstdc++6 (>= 5)',
- + 'libstdc++6 (>= 5.2)',
- + 'libstdc++6 (>= 6)',
- + 'libx11-6',
- + 'libx11-6 (>= 2:1.4.99.1)',
- + 'libxcb1 (>= 1.9.2)',
- + 'libxcomposite1 (>= 1:0.4.4-1)',
- + 'libxdamage1 (>= 1:1.1)',
- + 'libxext6',
- + 'libxfixes3',
- + 'libxkbcommon0 (>= 0.4.1)',
- + 'libxkbfile1',
- + 'libxrandr2',
- + 'xdg-utils (>= 1.0.2)'
- + ],
- };
- diff --git a/build/linux/debian/install-sysroot.js b/build/linux/debian/install-sysroot.js
- index ab6b826..fc2817a 100644
- --- a/build/linux/debian/install-sysroot.js
- +++ b/build/linux/debian/install-sysroot.js
- @@ -144,2 +144,6 @@ async function getVSCodeSysroot(arch) {
- break;
- + case 'riscv64':
- + expectedName = `riscv64-linux-gnu${prefix}.tar.gz`;
- + triple = 'riscv64-linux-gnu';
- + break;
- }
- diff --git a/build/linux/debian/install-sysroot.ts b/build/linux/debian/install-sysroot.ts
- index c23db0f..50c28b2 100644
- --- a/build/linux/debian/install-sysroot.ts
- +++ b/build/linux/debian/install-sysroot.ts
- @@ -158,2 +158,6 @@ export async function getVSCodeSysroot(arch: DebianArchString): Promise<string>
- break;
- + case 'riscv64':
- + expectedName = `riscv64-linux-gnu${prefix}.tar.gz`;
- + triple = 'riscv64-linux-gnu';
- + break;
- }
- diff --git a/build/linux/debian/types.js b/build/linux/debian/types.js
- index 2c56b9c..cadefc2 100644
- --- a/build/linux/debian/types.js
- +++ b/build/linux/debian/types.js
- @@ -8,3 +8,3 @@ exports.isDebianArchString = isDebianArchString;
- function isDebianArchString(s) {
- - return ['amd64', 'armhf', 'arm64', 'ppc64el'].includes(s);
- + return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64'].includes(s);
- }
- diff --git a/build/linux/debian/types.ts b/build/linux/debian/types.ts
- index 43f2434..24fe452 100644
- --- a/build/linux/debian/types.ts
- +++ b/build/linux/debian/types.ts
- @@ -5,6 +5,6 @@
-
- -export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64el';
- +export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64el' | 'riscv64';
-
- export function isDebianArchString(s: string): s is DebianArchString {
- - return ['amd64', 'armhf', 'arm64', 'ppc64el'].includes(s);
- + return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64'].includes(s);
- }
- diff --git a/build/linux/rpm/types.js b/build/linux/rpm/types.js
- index 7b58961..99a8cff 100644
- --- a/build/linux/rpm/types.js
- +++ b/build/linux/rpm/types.js
- @@ -8,3 +8,3 @@ exports.isRpmArchString = isRpmArchString;
- function isRpmArchString(s) {
- - return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le'].includes(s);
- + return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64'].includes(s);
- }
- diff --git a/build/linux/rpm/types.ts b/build/linux/rpm/types.ts
- index 3f3c3f5..d94537e 100644
- --- a/build/linux/rpm/types.ts
- +++ b/build/linux/rpm/types.ts
- @@ -5,6 +5,6 @@
-
- -export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64' | 'ppc64le';
- +export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64' | 'ppc64le' | 'riscv64';
-
- export function isRpmArchString(s: string): s is RpmArchString {
- - return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le'].includes(s);
- + return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64'].includes(s);
- }
- diff --git a/cli/src/update_service.rs b/cli/src/update_service.rs
- index 84d3efe..4f2c8c2 100644
- --- a/cli/src/update_service.rs
- +++ b/cli/src/update_service.rs
- @@ -177,2 +177,3 @@ pub enum Platform {
- LinuxPPC64LE,
- + LinuxRISCV64,
- DarwinX64,
- @@ -196,2 +197,3 @@ impl Platform {
- Platform::LinuxPPC64LE => "ppc64le",
- + Platform::LinuxRISCV64 => "riscv64",
- Platform::DarwinX64 => "x64",
- @@ -216,2 +218,3 @@ impl Platform {
- Platform::LinuxPPC64LE => "linux",
- + Platform::LinuxRISCV64 => "linux",
- Platform::DarwinX64 => "darwin",
- @@ -246,2 +249,4 @@ impl Platform {
- Some(Platform::LinuxPPC64LE)
- + } else if cfg!(all(target_os = "linux", target_arch = "riscv64")) {
- + Some(Platform::LinuxRISCV64)
- } else if cfg!(all(target_os = "macos", target_arch = "x86_64")) {
- @@ -274,2 +279,3 @@ impl fmt::Display for Platform {
- Platform::LinuxPPC64LE => "LinuxPPC64LE",
- + Platform::LinuxRISCV64 => "LinuxRISCV64",
- Platform::DarwinX64 => "DarwinX64",
- diff --git a/cli/src/util/prereqs.rs b/cli/src/util/prereqs.rs
- index 679aacb..1a37552 100644
- --- a/cli/src/util/prereqs.rs
- +++ b/cli/src/util/prereqs.rs
- @@ -84,2 +84,4 @@ impl PreReqChecker {
- Platform::LinuxPPC64LE
- + } else if cfg!(target_arch = "riscv64") {
- + Platform::LinuxRISCV64
- } else {
- diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh
- index b9d3b47..b18e402 100644
- --- a/resources/server/bin/helpers/check-requirements-linux.sh
- +++ b/resources/server/bin/helpers/check-requirements-linux.sh
- @@ -56,2 +56,3 @@ case $ARCH in
- ppc64el) LDCONFIG_ARCH="64bit";;
- + riscv64) LDCONFIG_ARCH="RISC-V";;
- esac
- diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
- index 5400065..be95b04 100644
- --- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
- +++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
- @@ -45,2 +45,3 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
- case TargetPlatform.LINUX_PPC64LE: return 'Linux PowerPC64';
- + case TargetPlatform.LINUX_RISCV64: return 'Linux RISC-V 64';
-
- @@ -69,2 +70,3 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
- case TargetPlatform.LINUX_PPC64LE: return TargetPlatform.LINUX_PPC64LE;
- + case TargetPlatform.LINUX_RISCV64: return TargetPlatform.LINUX_RISCV64;
-
- @@ -107,2 +109,5 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
- }
- + if (arch === 'riscv64') {
- + return TargetPlatform.LINUX_RISCV64;
- + }
- return TargetPlatform.UNKNOWN;
- diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
- index 23f1bea..10152de 100644
- --- a/src/vs/platform/extensions/common/extensions.ts
- +++ b/src/vs/platform/extensions/common/extensions.ts
- @@ -320,2 +320,3 @@ export const enum TargetPlatform {
- LINUX_PPC64LE = 'linux-ppc64le',
- + LINUX_RISCV64 = 'linux-riscv64',
-
|