From 45857563ffb116dd1a979aa1d3eb45b9eb19b97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Thu, 27 Dec 2018 15:33:00 +0100 Subject: [PATCH] kconfig: libmetal: Have LIBMETAL_SRC_PATH depend on LIBMETAL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index 0eb21e0..d73f898 100644 --- a/Kconfig +++ b/Kconfig @@ -4,13 +4,17 @@ # SPDX-License-Identifier: Apache-2.0 # -config LIBMETAL +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