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

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

1
.clang-format Normal file
View file

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

View file

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

View file

@ -5,6 +5,12 @@ _start:
mov $stack, %rsp mov $stack, %rsp
call main call main
.global syscall
syscall:
mov %rcx, %r10
syscall
ret
.section .bss .section .bss
.align 16 .align 16
.skip 0x10000 .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 CFILES:=$(foreach comp, $(COMPONENTS), $(wildcard ../acpica/source/components/$(comp)/*.c)) printf.c
OFILES:=$(patsubst %.c, %.o, $(CFILES)) OFILES:=$(patsubst %.c, %.o, $(CFILES))
CC:=clang 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) libacpica.a: $(OFILES)
llvm-ar rcD $@ $^ llvm-ar rcD $@ $^