[Add] import xv6-riscv and submodules
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user