mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-31 12:56:27 +00:00
The $srctree environment variable is already set to point to the Zephyr root, so no need to do source "$(ZEPHYR_BASE)/Kconfig.zephyr" in samples. Just source "Kconfig.zephyr" works. (Things would break if $srctree was set to anything else, because every 'source' in the Kconfig files will be relative to it.) Also add a 'mainmenu' title to the littlefs sample. It shows up at the top of menuconfig/guiconfig. Source Kconfig.zephyr instead of Kconfig to avoid overriding it. As a sidenote, $(FOO) is better $FOO in Kconfig. $FOO is legacy syntax that Kconfiglib only supports to be compatible with old Linux kernels. $(FOO) uses the Kconfig preprocessor. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
14 lines
359 B
Plaintext
14 lines
359 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config KERNEL_PROFILING_API_TEST
|
|
bool
|
|
default y
|
|
select HAS_SYS_POWER_STATE_SLEEP_1
|
|
help
|
|
Hidden option enabling LPS_0 power state regardless of hardware
|
|
support. This ensures that power management hooks used in this
|
|
test to profile idle thread will be executed.
|
|
|
|
# Include Zephyr's Kconfig.
|
|
source "Kconfig"
|