添加riscv64的github workflow (#499)

* 添加riscv64的github workflow
This commit is contained in:
LoGin
2024-01-21 18:45:07 +08:00
committed by GitHub
parent 7a29d4fcbc
commit 43ef2a0d2b
7 changed files with 154 additions and 49 deletions

View File

@ -42,13 +42,11 @@ all: kernel user
.PHONY: kernel
kernel:
mkdir -p bin/kernel/
@if [ -z $$DragonOS_GCC ]; then echo "\033[31m [错误]尚未安装DragonOS交叉编译器, 请使用tools文件夹下的build_gcc_toolchain.sh脚本安装 \033[0m"; exit 1; fi
$(MAKE) -C ./kernel all ARCH=$(ARCH) || (sh -c "echo 内核编译失败" && exit 1)
.PHONY: user
user:
@if [ -z $$DragonOS_GCC ]; then echo "\033[31m [错误]尚未安装DragonOS交叉编译器, 请使用tools文件夹下的build_gcc_toolchain.sh脚本安装 \033[0m"; exit 1; fi
$(MAKE) -C ./user all ARCH=$(ARCH) || (sh -c "echo 用户程序编译失败" && exit 1)
.PHONY: clean