Skip to content

Commit 5302337

Browse files
committed
scripts: Initialize lib and define supported archs
Define `SUPPORT_ARCHS` (x86_64, arm64, riscv) and `MAP_RUST_ARCH` to map arch name used by kernel to arch name understandable by Rust. Signed-off-by: Ruoqing He <[email protected]>
1 parent 2d733b0 commit 5302337

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/lib/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright 2025 © Institute of Software, CAS. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Supported architectures (arch used in kernel)
5+
SUPPORT_ARCHS = ["arm64", "x86_64", "riscv"]
6+
7+
# Map arch used in linux kernel to arch understandable for Rust
8+
MAP_RUST_ARCH = {"arm64": "aarch64", "x86_64": "x86_64", "riscv": "riscv64"}

0 commit comments

Comments
 (0)