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

View file

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