mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 01:46:31 +00:00
feat: la64 boot (#1132)
* la64能够进入到kernel_main * ci: 添加为ubuntu编译qemu-loongarch64的脚本 * feat: la64能输出hello world * la64 安装gcc && 配置github ci * chore: 更新CI工作流和构建脚本中的Docker镜像版本至v1.10 Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
@ -5,6 +5,10 @@ ifeq ($(ARCH), x86_64)
|
||||
CCPREFIX=x86_64-linux-gnu-
|
||||
else ifeq ($(ARCH), riscv64)
|
||||
CCPREFIX=riscv64-linux-gnu-
|
||||
else ifeq ($(ARCH), loongarch64)
|
||||
CCPREFIX=loongarch64-unknown-linux-gnu-
|
||||
else
|
||||
$(error "Unsupported ARCH: $(ARCH)")
|
||||
endif
|
||||
|
||||
export CC=$(CCPREFIX)gcc
|
||||
@ -24,6 +28,8 @@ ifeq ($(ARCH), x86_64)
|
||||
GLOBAL_CFLAGS += -mcmodel=large -m64
|
||||
else ifeq ($(ARCH), riscv64)
|
||||
GLOBAL_CFLAGS += -mcmodel=medany -march=rv64gc -mabi=lp64d
|
||||
else ifeq ($(ARCH), loongarch64)
|
||||
GLOBAL_CFLAGS += -mcmodel=large -march=loongarch64
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG), DEBUG)
|
||||
|
Reference in New Issue
Block a user