Files
moslab-code/src/l4/pkg/bootstrap/Kconfig.L4
2025-09-12 15:55:45 +02:00

57 lines
1.8 KiB
Plaintext

menu "Bootstrap"
config BOOTSTRAP_ROOTTASK_NX
bool "Support W^X in the root task"
help
Mark the text sections of the root task as non-writeable in the memory
map and mark the data sections as non executable.
This is useful if you want to ensure a requirement to have this
property enforced for the root task. However, be aware that this will
only protect the memory from the binary. Moe will still have large
parts of the memory mapped as both executable and writable due to the
system design.
Also this precludes self-adaptation of Moe when compiled for the wrong
kernel type (virtualization enabled vs. non-virt). So only enable this
when you understand the features limitations and are sure that you
need it.
If you enable this feature and the system fails to boot after loading
Sigma0, ensure the KERNEL_CPU_VIRT option is in sync with the
respective kernel configuration.
If in doubt, choose n.
config BOOTSTRAP_THUMB_ENTRY
bool "Thumb mode entry point"
depends on BUILD_ARCH_arm
help
Assume that bootstrap is started in Thumb mode.
If in doubt, choose n.
config BOOTSTRAP_COMPRESS
bool "Support for compressed modules"
depends on HAVE_BIDPC_ZLIB
help
Allow bootstrap to decompress modules that have been compressed.
Using compressed modules reduces the size of an l4image at the cost of
increased startup time due to the required unpacking.
Modules will not be automatically compressed when building.
config BOOTSTRAP_CHECK_MD5
bool "Enable module integrity check (MD5)"
depends on HAVE_BIDPC_LIBBSD_LITE
help
Enable module integrity check during boot using MD5. Only supported
for modules packed into an l4image.
comment "GZIP/ZLIB decompression not available due to missing zlib package"
depends on !HAVE_BIDPC_ZLIB
source "server/src/platform/Kconfig.s32z"
endmenu