zephyr/ext/hal/libmetal/Kconfig
Sebastian Bøe 2f85b2fca8 kconfig: libmetal: Have LIBMETAL_SRC_PATH depend on LIBMETAL
Kconfig options are often either of the type 'feature' or
'configuration'. Meaning, either an option controls whether a feature
is enabled, or it adjusts/configures an already enabled feature.

Configuration of features should depend on the feature they are
configuring or else noise is created both in the Kconfig output and in
the Kconfig menu.

In this commit we add a dependency from a configuration option to it's
feature option.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-12-30 16:24:50 -05:00

21 lines
385 B
Plaintext

#
# Copyright (c) 2018 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig LIBMETAL
bool "libmetal Support"
help
This option enables the libmetal HAL abstraction layer
if LIBMETAL
config LIBMETAL_SRC_PATH
string "libmetal library source path"
default "libmetal"
help
This option specifies the path to the source for the libmetal library
endif # LIBMETAL