[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

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