summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:40:19 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:40:19 -0400
commitc4f8ef91f18d854a4ede7a94e95b2eab898d6963 (patch)
treec2772c4f380a684b6fa347f03b13f9476bf9500c /config.mk
parentb905869a35f062a4e5072f10bec3a2ba3db0e365 (diff)
downloadjove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.gz
jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.bz2
jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.zip
working usermode objdir iteration
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk30
1 files changed, 28 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 4b940b5..0d26458 100644
--- a/config.mk
+++ b/config.mk
@@ -1,13 +1,18 @@
PROCESSORS_MAX=8
+KERNEL_STACKBYTES = 4096
+
ENABLE_UART = y
ENABLE_PORTIO_UART = y
ENABLE_INITRD = y
+ENABLE_SSE=y
+ENABLE_AVX=n
-DBG_MEM = y
+DBG_MEM=y
+DBG_SYSCALL=n
+DBG_LOCK=n
CFLAGS = \
-ffreestanding \
- -mno-sse \
-nostdlib \
-fno-pie \
-fno-pic \
@@ -15,6 +20,7 @@ CFLAGS = \
-D__$(TARGET_MACHINE)__ \
-D__$(TARGET_BOOTLOADER)__ \
-DPROCESSORS_MAX=$(PROCESSORS_MAX) \
+ -DKERNEL_STACKBYTES=$(KERNEL_STACKBYTES) \
-Iinclude \
-I.
@@ -29,12 +35,24 @@ ifeq "$(TARGET_MACHINE)" "x86_64"
-mfsgsbase
endif
+ifeq "$(ENABLE_SSE)" "y"
+CFLAGS += -DENABLE_SSE
+else
+CFLAGS += -mno-sse
+endif
+
+ifeq "$(ENABLE_AVX)" "y"
+CFLAGS += -DENABLE_AVX
+endif
+
ifeq "$(ENABLE_UART)" "y"
CFLAGS += -DENABLE_UART
endif
+
ifeq "$(ENABLE_PORTIO_UART)" "y"
CFLAGS += -DENABLE_PORTIO_UART
endif
+
ifeq "$(ENABLE_INITRD)" "y"
CFLAGS += -DENABLE_INITRD
endif
@@ -42,3 +60,11 @@ endif
ifeq "$(DBG_MEM)" "y"
CFLAGS += -DDBG_MEM
endif
+
+ifeq "$(DBG_SYSCALL)" "y"
+CFLAGS += -DDBG_SYSCALL
+endif
+
+ifeq "$(DBG_LOCK)" "y"
+CFLAGS += -DDBG_LOCK
+endif