-
Notifications
You must be signed in to change notification settings - Fork 6
/
Config.mk
51 lines (45 loc) · 2.01 KB
/
Config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ---- Toolchain Options ----
# Your compiler of choice: 'gcc' or 'clang', I dont judge.
TOOLCHAIN = gcc
# If not clang, where to find the compiler.
TOOLCHAIN_PREFIX =
# Whether to use the development cache for bootloader and firmware files.
# This downloads and stores any necessary UEFI firmware for testing and the limine
# bootloader in `.devel-cache`. Disable this if you want to use your own
# firmware and copy of limine.
USE_DEVEL_CACHE = yes
# If you're not using the cache these paths will need to be populated
LIMINE_DIR =
OVMF_FILE =
# ---- Build System Options ----
# By default build commands are not echoed to stdout as there is a lot
# of information. Set this to 'no' if you are debugging the build system or
# are interested in exactly what's being run.
QUIET_BUILD = yes
# Display the total count of TODOs within codebase after compile,
# maybe shame me into fixing them oneday. Note this adds to compile times
# slightly, and can be worth disabling on less powerful machines.
COUNT_TODOS = yes
# ---- Compiler Options ----
# ISA to compile for, valid options: `x86_64`, `riscv64`, `m68k`
CPU_ARCH = x86_64
# KERNEL_CXX_FLAGS += -fsanitize=undefined
KERNEL_CXX_FLAGS += -O0 -g
# Set to 'yes' to embed a nice terminal background into the kernel,
# this does significantly increase kernel size and build times.
INCLUDE_TERMINAL_BG = no
# ---- X86_64 Options ----
# Enable use of debugcon (port 0xE9) as a serial driver and early log output.
# Only enable this for virtual machines.
X86_64_ENABLE_DEBUGCON_E9 = yes
# Whether to boot qemu with legacy bios instead of OVMF.
X86_64_RUN_WITH_BIOS = no
# ---- Riscv 64 Options ----
# Meant as an equivalent to debugcon on x86, set to "no" to disable, or
# put the address the address of a uart controller the kernel can use to log.
RV64_ASSUME_UART = no
# ---- Motorola 680x0 Options ----
# Similar to the riscv option, set to "no" to disable, or
# put the address where a goldfish tty device is known to reside, the
# kernel will use this for extra early logging.
M68K_ASSUME_UART = no