25 lines
1.5 KiB
Plaintext
25 lines
1.5 KiB
Plaintext
# Copy this file and rename it to 'config.cmake' before making your own changes.
|
|
|
|
# config.cmake: Configuration file for the kernel.
|
|
# Edit/add values to customize kernel compilation flags/defines.
|
|
# This file is automatically ignored by git.
|
|
# To use an example configuration line, just remove the hashtag '#' at the beginning.
|
|
|
|
# Example: Adding a compiler definition. This will define PCI_DEBUG in the kernel source.
|
|
# target_compile_definitions(moon PRIVATE PCI_DEBUG)
|
|
|
|
# Example: Adding a compiler flag. This will optimize the kernel aggressively (warning: untested, use at your own discretion).
|
|
# target_compile_options(moon PRIVATE -O3)
|
|
|
|
# Uncomment the line below to allow any filename on file/directory creation (by default, the kernel prohibits filenames with
|
|
# control characters, leading/trailing spaces, problematic characters and invalid UTF-8). Keep in mind that this restriction
|
|
# is only enforced when creating files; existing files with such illegal filenames are parsed correctly and fully usable.
|
|
# target_compile_definitions(moon PRIVATE MOON_DISABLE_FILENAME_RESTRICTIONS)
|
|
|
|
# Uncomment the line below to make the kernel also calculate stack traces for userspace addresses on program crashes.
|
|
# This can aid in debugging, but makes the kernel more unstable as stack tracing will access arbitrary userspace memory.
|
|
# target_compile_definitions(moon PRIVATE MOON_ENABLE_USERSPACE_STACK_TRACES)
|
|
|
|
# Uncomment the line below to enable all kernel debug messages, and console logging.
|
|
# include(debug.cmake)
|