2022-07-13 10:22:07 +08:00
|
|
|
CONFIG_SOF=y
|
|
|
|
CONFIG_BUILD_OUTPUT_BIN=n
|
2022-11-30 09:00:32 +08:00
|
|
|
|
|
|
|
# The additional stripped .elf files are deterministic.
|
|
|
|
# This adds very few files in the build directory and has
|
|
|
|
# absolutely no other effect whatsoever.
|
|
|
|
# See on-going discussion in
|
|
|
|
# https://github.com/zephyrproject-rtos/zephyr/pull/51954
|
|
|
|
# and usage in xtensa-build-zephyr.py
|
|
|
|
CONFIG_BUILD_OUTPUT_STRIPPED=y
|
|
|
|
|
2022-07-13 10:22:07 +08:00
|
|
|
CONFIG_HAVE_AGENT=n
|
|
|
|
|
2023-09-27 01:27:37 +08:00
|
|
|
# Since Zephyr commit f0daf904bb0202c PICOLIBC is the new default.
|
|
|
|
# We need more time to test and evaluate.
|
2023-09-23 16:54:09 +08:00
|
|
|
CONFIG_MINIMAL_LIBC=y
|
|
|
|
|
2022-10-05 16:44:32 +08:00
|
|
|
CONFIG_LOG=y
|
|
|
|
CONFIG_LOG_PRINTK=y
|
|
|
|
# Log processing is offloaded to a low-priority thread.
|
|
|
|
CONFIG_LOG_MODE_DEFERRED=y
|
2022-10-05 16:49:43 +08:00
|
|
|
# Wake the low-priority log thread every 100ms and/or
|
|
|
|
# if more than 5 messages are queued by the frontend.
|
|
|
|
CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=5
|
|
|
|
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
|
2022-10-05 17:12:34 +08:00
|
|
|
# Frontend buffer must be large enough to cover all
|
|
|
|
# typical bursts of log messages.
|
|
|
|
CONFIG_LOG_BUFFER_SIZE=4096
|
2022-10-05 17:19:27 +08:00
|
|
|
# Use stack that is sufficient for SOF backends
|
|
|
|
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=4096
|
2022-10-05 16:44:32 +08:00
|
|
|
|
2022-07-13 10:22:07 +08:00
|
|
|
# Requires heap_info() be implemented, but no Zephyr wrapper
|
|
|
|
CONFIG_DEBUG_MEMORY_USAGE_SCAN=n
|
|
|
|
|
|
|
|
# Ensure -O2 (or similar) is used for optimization
|
|
|
|
CONFIG_SPEED_OPTIMIZATIONS=y
|
|
|
|
|
|
|
|
# Zephyr top-level default of -fno-strict-overflow is
|
|
|
|
# not a good fit for audio DSP code
|
|
|
|
CONFIG_COMPILER_OPT="-fstrict-overflow"
|
|
|
|
|
|
|
|
CONFIG_SCHED_DEADLINE=y
|
|
|
|
CONFIG_SCHED_CPU_MASK=y
|
|
|
|
CONFIG_SMP_BOOT_DELAY=y
|
|
|
|
|
2022-09-08 20:06:36 +08:00
|
|
|
# SOF code assumes system work queue and other system
|
|
|
|
# wide threads are pinned to a single core.
|
|
|
|
# CPU_MASK_PIN_ONLY must be set for all SOF builds.
|
|
|
|
CONFIG_SCHED_CPU_MASK_PIN_ONLY=y
|
|
|
|
|
2022-07-13 10:22:07 +08:00
|
|
|
# Fix the sys ticks value until following bugs are solved:
|
|
|
|
# - https://github.com/zephyrproject-rtos/zephyr/issues/46378
|
|
|
|
CONFIG_SYS_CLOCK_TICKS_PER_SEC=15000
|
|
|
|
CONFIG_DAI=y
|
|
|
|
CONFIG_HEAP_MEM_POOL_SIZE=2048
|
2023-12-08 00:27:22 +08:00
|
|
|
|
|
|
|
CONFIG_LLEXT=y
|
|
|
|
CONFIG_LLEXT_STORAGE_WRITABLE=y
|
|
|
|
CONFIG_MODULES=y
|