This commit is contained in:
mintsuki 2022-08-29 10:49:27 +02:00
parent 579d163b6d
commit 681dfd58a3
2 changed files with 9 additions and 8 deletions

View file

@ -21,7 +21,7 @@ $(eval $(call DEFAULT_VAR,CC,cc))
$(eval $(call DEFAULT_VAR,LD,ld))
# User controllable CFLAGS.
CFLAGS ?= -O2 -g -Wall -Wextra -Wpedantic -pipe
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
# User controllable preprocessor flags. We set none by default.
CPPFLAGS ?=
@ -34,11 +34,11 @@ LDFLAGS ?=
# Internal C flags that should not be changed by the user.
override CFLAGS += \
-I. \
-std=c11 \
-ffreestanding \
-fno-stack-protector \
-fno-stack-check \
-fno-lto \
-fno-pie \
-fno-pic \
-m64 \
@ -50,12 +50,14 @@ override CFLAGS += \
-mno-sse2 \
-mno-red-zone \
-mcmodel=kernel \
-MMD
-MMD \
-I.
# Internal linker flags that should not be changed by the user.
override LDFLAGS += \
-nostdlib \
-static \
-m elf_x86_64 \
-z max-page-size=0x1000 \
-T linker.ld

View file

@ -3,9 +3,8 @@ TIMEOUT=3
# The entry name that will be displayed in the boot menu
:Limine Barebones
# Change the protocol line depending on the used protocol.
PROTOCOL=limine
# Change the protocol line depending on the used protocol.
PROTOCOL=limine
# Path to the kernel to boot. boot:/// represents the partition on which limine.cfg is located.
KERNEL_PATH=boot:///kernel.elf
# Path to the kernel to boot. boot:/// represents the partition on which limine.cfg is located.
KERNEL_PATH=boot:///kernel.elf