[Add] import xv6-riscv and submodules

This commit is contained in:
bLueriVerLHR
2023-07-20 17:47:07 +08:00
parent 72c2b73ded
commit 32e948a593
5 changed files with 38 additions and 0 deletions

9
.gitmodules vendored Normal file
View File

@@ -0,0 +1,9 @@
[submodule "loongarch64-linux-gnu"]
path = loongarch64-linux-gnu
url = https://gitee.com/loongarch_community/loongarch64-linux-gnu
[submodule "nscscc-team-la32r"]
path = nscscc-team-la32r
url = https://gitee.com/loongson-edu/nscscc-team-la32r
[submodule "lasoft/la32r-nemu"]
path = lasoft/la32r-nemu
url = https://gitee.com/wwt_panache/la32r-nemu

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
# prepare loongarch toolchain
TOOLCHAIN_PK := loongarch64-linux-gnu/toolchain-loongarch64-linux-gnu-gcc8-host-x86_64-2022-07-18.tar.xz
LA_PATH := ext/toolchain-loongarch64-linux-gnu-gcc8-host-x86_64-2022-07-18/bin
LA_ARCH := loongarch64-linux-gnu-
LA := $(LA_PATH)/$(LA_ARCH)
GCC := $(LA)gcc
OD := $(LA)objdump
OC := $(LA)objcopy
RE := $(LA)readelf
LA_TOOLS := $(GCC) $(OD) $(OC) $(RE)
$(TOOLCHAIN_PK):
git submodule update --init
unpk-gcc: $(TOOLCHAIN_PK)
mkdir -p ext
tar -xvf $(TOOLCHAIN_PK) -C ext
$(LA_TOOLS): unpk-gcc
# prepare loongarch source code

1
lasoft/la32r-nemu Submodule

Submodule lasoft/la32r-nemu added at 993f212e0f

1
loongarch64-linux-gnu Submodule

Submodule loongarch64-linux-gnu added at f535a6f47e

1
nscscc-team-la32r Submodule

Submodule nscscc-team-la32r added at 0ef5a87bed