build: Pass -Werror to nasm
This commit is contained in:
parent
d288550b2a
commit
9ab0beea54
6
Makefile
6
Makefile
|
@ -52,9 +52,9 @@ install: all
|
|||
|
||||
build/stage1: $(STAGE1_FILES) build/decompressor/decompressor.bin build/stage23-bios/stage2.bin.gz
|
||||
mkdir -p bin
|
||||
cd stage1/hdd && nasm bootsect.asm -fbin -o ../../bin/limine-hdd.bin
|
||||
cd stage1/cd && nasm bootsect.asm -fbin -o ../../bin/limine-cd.bin
|
||||
cd stage1/pxe && nasm bootsect.asm -fbin -o ../../bin/limine-pxe.bin
|
||||
cd stage1/hdd && nasm bootsect.asm -Werror -fbin -o ../../bin/limine-hdd.bin
|
||||
cd stage1/cd && nasm bootsect.asm -Werror -fbin -o ../../bin/limine-cd.bin
|
||||
cd stage1/pxe && nasm bootsect.asm -Werror -fbin -o ../../bin/limine-pxe.bin
|
||||
cp build/stage23-bios/limine.sys ./bin/
|
||||
touch build/stage1
|
||||
|
||||
|
|
|
@ -239,10 +239,10 @@ $(BUILDDIR)/%.32.o: %.32.c
|
|||
endif
|
||||
|
||||
$(BUILDDIR)/%.o: %.asm
|
||||
nasm $< -F dwarf -g -f elf32 -o $@
|
||||
nasm $< -F dwarf -g -Werror -f elf32 -o $@
|
||||
|
||||
$(BUILDDIR)/%.o: %.asm64
|
||||
nasm $< -F dwarf -g -f elf64 -o $@
|
||||
nasm $< -F dwarf -g -Werror -f elf64 -o $@
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)
|
||||
|
|
|
@ -26,7 +26,7 @@ stivale2_term_write_entry:
|
|||
push rsi
|
||||
mov rcx, rsi
|
||||
mov rsi, rdi
|
||||
mov rdi, term_buf
|
||||
mov edi, term_buf
|
||||
rep movsb
|
||||
pop rsi
|
||||
|
||||
|
|
Loading…
Reference in New Issue