zephyr/samples/net/updatehub/Kconfig
Ulf Magnusson 7e0af9e0b8 kconfig: Remove redundant $ZEPHYR_BASE from 'source's
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>
2020-01-06 09:48:53 -05:00

24 lines
654 B
Plaintext

# Copyright (c) 2018 O.S.Systems
# SPDX-License-Identifier: Apache-2.0
mainmenu "Sample app Configuration"
config UPDATEHUB_MANUAL
bool "UpdateHub manual mode"
help
Manual mode requires the user to call the server probe and then, if
there is an available update, also requires the user to decide if
it is appropriate to update now or later.
if !UPDATEHUB_MANUAL
config UPDATEHUB_POLLING
bool "UpdateHub polling mode"
default y
help
Polling mode runs automatically on a predefined period, probing the
server for updates and installing them without requiring user
intervention.
endif #!UPDATEHUB_MANUAL
source "Kconfig.zephyr"