Download compiler in CI
Some checks failed
Build / build (push) Failing after 44s

This commit is contained in:
Mathieu Strypsteen 2024-12-25 20:03:32 +01:00
parent d9860e89a7
commit 9e856e34c4
4 changed files with 15 additions and 1 deletions

1
.clang-format Normal file
View file

@ -0,0 +1 @@
ColumnLimit: 200

View file

@ -12,6 +12,13 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Download Compiler
uses: forgejo/download-artifact@v4
with:
repository: mathieu/os-rust
name: compiler.zip
- name: test
run: ls
- name: Build
run: . ~/.bashrc && ./build.py
- name: Install cargo-deny

View file

@ -5,6 +5,12 @@ _start:
mov $stack, %rsp
call main
.global syscall
syscall:
mov %rcx, %r10
syscall
ret
.section .bss
.align 16
.skip 0x10000

View file

@ -3,7 +3,7 @@ COMPONENTS:=dispatcher events executer hardware namespace parser resources table
CFILES:=$(foreach comp, $(COMPONENTS), $(wildcard ../acpica/source/components/$(comp)/*.c)) printf.c
OFILES:=$(patsubst %.c, %.o, $(CFILES))
CC:=clang
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -Wall -Werror -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
libacpica.a: $(OFILES)
llvm-ar rcD $@ $^