Lines Matching full:name
72 char *name = getenv("KCONFIG_CONFIG"); in conf_get_configname() local
74 return name ? name : ".config"; in conf_get_configname()
79 char *name = getenv("KCONFIG_AUTOCONFIG"); in conf_get_autoconfig_name() local
81 return name ? name : "include/config/auto.conf"; in conf_get_autoconfig_name()
89 char *dst, name[SYMBOL_MAXLENGTH]; in conf_expand_value() local
92 dst = name; in conf_expand_value()
96 dst = name; in conf_expand_value()
100 sym = sym_lookup(name, 0); in conf_expand_value()
114 char *env, *name; in conf_get_default_confname() local
116 name = conf_expand_value(conf_defname); in conf_get_default_confname()
119 sprintf(fullname, "%s/%s", env, name); in conf_get_default_confname()
123 return name; in conf_get_default_confname()
151 p, sym->name); in conf_set_sym_val()
186 p, sym->name); in conf_set_sym_val()
251 int conf_read_simple(const char *name, int def) in conf_read_simple() argument
260 if (name) { in conf_read_simple()
261 in = zconf_fopen(name); in conf_read_simple()
265 name = conf_get_configname(); in conf_read_simple()
266 in = zconf_fopen(name); in conf_read_simple()
277 name = conf_expand_value(prop->expr->left.sym->name); in conf_read_simple()
278 in = zconf_fopen(name); in conf_read_simple()
281 name); in conf_read_simple()
290 conf_filename = name; in conf_read_simple()
338 conf_warning("override: reassigning to symbol %s", sym->name); in conf_read_simple()
372 conf_warning("override: reassigning to symbol %s", sym->name); in conf_read_simple()
389 conf_warning("%s creates inconsistent choice state", sym->name); in conf_read_simple()
395 conf_warning("override: %s changes choice state", sym->name); in conf_read_simple()
407 int conf_read(const char *name) in conf_read() argument
414 if (conf_read_simple(name, S_DEF_USER)) { in conf_read()
497 fprintf(fp, "%s%s=%s\n", CONFIG_, sym->name, value); in kconfig_print_symbol()
548 CONFIG_, sym->name, suffix); in header_print_symbol()
558 CONFIG_, sym->name, prefix, value); in header_print_symbol()
564 CONFIG_, sym->name, value); in header_print_symbol()
610 fprintf(fp, "%s%s=%c\n", CONFIG_, sym->name, (char)toupper(*value)); in tristate_print_symbol()
731 int conf_write(const char *name) in conf_write() argument
742 if (name && name[0]) { in conf_write()
746 if (!stat(name, &st) && S_ISDIR(st.st_mode)) { in conf_write()
747 strcpy(dirname, name); in conf_write()
750 } else if ((slash = strrchr(name, '/'))) { in conf_write()
751 int size = slash - name + 1; in conf_write()
752 memcpy(dirname, name, size); in conf_write()
759 basename = name; in conf_write()
834 const char *name; in conf_write_autoconf() local
867 if (!sym->name) continue; in conf_write_autoconf()
885 name = getenv("KCONFIG_AUTOHEADER"); in conf_write_autoconf()
886 if (!name) in conf_write_autoconf()
887 name = "include/generated/autoconf.h"; in conf_write_autoconf()
888 if (rename(".tmpconfig.h", name)) in conf_write_autoconf()
890 name = getenv("KCONFIG_TRISTATE"); in conf_write_autoconf()
891 if (!name) in conf_write_autoconf()
892 name = "include/config/tristate.conf"; in conf_write_autoconf()
893 if (rename(".tmpconfig_tristate", name)) in conf_write_autoconf()
895 name = conf_get_autoconfig_name(); in conf_write_autoconf()
900 if (rename(".tmpconfig", name)) in conf_write_autoconf()