diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2023-11-22 12:47:45 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-12-29 22:25:20 +0900 |
commit | 15d3f7664d2776c086f813f1efbfe2ae20a85e89 (patch) | |
tree | 6c27089f3aa55ec620fdee7b1d2c16d8eab51d84 /scripts/kconfig/conf.c | |
parent | 5a602de99797bddc9dd7f73592281a507196f69d (diff) | |
download | lwn-15d3f7664d2776c086f813f1efbfe2ae20a85e89.tar.gz lwn-15d3f7664d2776c086f813f1efbfe2ae20a85e89.zip |
kconfig: WERROR unmet symbol dependency
When KCONFIG_WERROR env variable is set treat unmet direct
symbol dependency as a terminal condition (error).
Suggested-by: Stefan Reinauer <reinauer@google.com>
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r-- | scripts/kconfig/conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 33d19e419908..662a5e7c37c2 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -827,6 +827,9 @@ int main(int ac, char **av) break; } + if (conf_errors()) + exit(1); + if (sync_kconfig) { name = getenv("KCONFIG_NOSILENTUPDATE"); if (name && *name) { @@ -890,6 +893,9 @@ int main(int ac, char **av) break; } + if (sym_dep_errors()) + exit(1); + if (input_mode == savedefconfig) { if (conf_write_defconfig(defconfig_file)) { fprintf(stderr, "n*** Error while saving defconfig to: %s\n\n", |