From: Masahiro Yamada Date: Fri, 1 Oct 2021 05:32:49 +0000 (+0900) Subject: kconfig: add conf_get_autoheader_name() X-Git-Tag: v6.6.17~8888^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8499f2dd57ef099290fa5411c4498bccc9c407d9;p=platform%2Fkernel%2Flinux-rpi.git kconfig: add conf_get_autoheader_name() For consistency with conf_get_autoconfig_name() Signed-off-by: Masahiro Yamada --- diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 26b39d3..acf3d5a 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -223,6 +223,13 @@ static const char *conf_get_autoconfig_name(void) return name ? name : "include/config/auto.conf"; } +static const char *conf_get_autoheader_name(void) +{ + char *name = getenv("KCONFIG_AUTOHEADER"); + + return name ? name : "include/generated/autoconf.h"; +} + static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) { char *p2; @@ -1092,9 +1099,7 @@ int conf_write_autoconf(int overwrite) fclose(out); fclose(out_h); - name = getenv("KCONFIG_AUTOHEADER"); - if (!name) - name = "include/generated/autoconf.h"; + name = conf_get_autoheader_name(); if (make_parent_dir(name)) return 1; if (rename(".tmpconfig.h", name))