Skip to content
Snippets Groups Projects
Commit bb321f3e authored by Bensong Liu's avatar Bensong Liu
Browse files

add ci

parent 0c826060
No related branches found
No related tags found
No related merge requests found
Pipeline #830 passed with stage
in 4 minutes and 50 seconds
image: archlinux/base
stages:
- build
before_script:
- pacman -Sy
- pacman -S --noconfirm nasm gcc make
build32:
stage: build
script:
- make BITS=32
build64:
stage: build
script:
- make BITS=64
......@@ -24,4 +24,9 @@ assemble-uefi: build
run-legacy: assemble-legacy
qemu-system-x86_64 legacy.img
clean:
$(MAKE) -C bootloader-legacy clean
# $(MAKE) -C bootloader-uefi clean
$(MAKE) -C kernel clean
......@@ -10,10 +10,6 @@ endif
assemble: kernel head
ld -o kernel.img -Ttext 0x7e00 --oformat binary image_head.o kernel.o -m elf_$(ARCH)
# Sector 1 = bootloader, Sector 2 - (512B TO 64K) = kernel
# Extend kernel.img to correct size.
test $$(stat -c %s kernel.img) -le 65024
truncate --size=65024 kernel.img
head:
nasm -f elf$(BITS) -DTARGET_BITS=$(BITS) image_head.asm -o image_head.o
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment