• Home
  • Raw
  • Download

Lines Matching refs:name

129 static int conf_touch_dep(const char *name)  in conf_touch_dep()  argument
136 if (depfile_prefix_len + strlen(name) + 3 > sizeof(depfile_path)) in conf_touch_dep()
140 s = name; in conf_touch_dep()
222 char *name = getenv("KCONFIG_CONFIG"); in conf_get_configname() local
224 return name ? name : ".config"; in conf_get_configname()
229 char *name = getenv("KCONFIG_AUTOCONFIG"); in conf_get_autoconfig_name() local
231 return name ? name : "include/config/auto.conf"; in conf_get_autoconfig_name()
259 p, sym->name); in conf_set_sym_val()
285 p, sym->name); in conf_set_sym_val()
350 int conf_read_simple(const char *name, int def) in conf_read_simple() argument
359 if (name) { in conf_read_simple()
360 in = zconf_fopen(name); in conf_read_simple()
364 name = conf_get_configname(); in conf_read_simple()
365 in = zconf_fopen(name); in conf_read_simple()
377 name = sym_get_string_value(prop->expr->left.sym); in conf_read_simple()
378 in = zconf_fopen(name); in conf_read_simple()
381 name); in conf_read_simple()
390 conf_filename = name; in conf_read_simple()
437 conf_warning("override: reassigning to symbol %s", sym->name); in conf_read_simple()
476 conf_warning("override: reassigning to symbol %s", sym->name); in conf_read_simple()
495 conf_warning("%s creates inconsistent choice state", sym->name); in conf_read_simple()
501 conf_warning("override: %s changes choice state", sym->name); in conf_read_simple()
513 int conf_read(const char *name) in conf_read() argument
521 if (conf_read_simple(name, S_DEF_USER)) { in conf_read()
602 CONFIG_, sym->name); in kconfig_print_symbol()
610 fprintf(fp, "%s%s=%s\n", CONFIG_, sym->name, value); in kconfig_print_symbol()
661 CONFIG_, sym->name, suffix); in header_print_symbol()
671 CONFIG_, sym->name, prefix, value); in header_print_symbol()
677 CONFIG_, sym->name, value); in header_print_symbol()
824 int conf_write(const char *name) in conf_write() argument
835 if (!name) in conf_write()
836 name = conf_get_configname(); in conf_write()
838 if (!*name) { in conf_write()
843 if (is_dir(name)) { in conf_write()
844 fprintf(stderr, "%s: Is a directory\n", name); in conf_write()
848 if (make_parent_dir(name)) in conf_write()
854 out = fopen(name, "w"); in conf_write()
857 name, (int)getpid()); in conf_write()
919 if (is_same(name, tmpname)) { in conf_write()
920 conf_message("No change to %s", name); in conf_write()
926 snprintf(oldname, sizeof(oldname), "%s.old", name); in conf_write()
927 rename(name, oldname); in conf_write()
928 if (rename(tmpname, name)) in conf_write()
932 conf_message("configuration written to %s", name); in conf_write()
940 static int conf_write_dep(const char *name) in conf_write_dep() argument
951 fprintf(out, "\t%s \\\n", file->name); in conf_write_dep()
953 fprintf(out, "\t%s\n", file->name); in conf_write_dep()
963 if (make_parent_dir(name)) in conf_write_dep()
965 rename("..config.tmp", name); in conf_write_dep()
971 const char *name, *tmp; in conf_touch_deps() local
975 name = conf_get_autoconfig_name(); in conf_touch_deps()
976 tmp = strrchr(name, '/'); in conf_touch_deps()
977 depfile_prefix_len = tmp ? tmp - name + 1 : 0; in conf_touch_deps()
981 strncpy(depfile_path, name, depfile_prefix_len); in conf_touch_deps()
984 conf_read_simple(name, S_DEF_AUTO); in conf_touch_deps()
989 if ((sym->flags & SYMBOL_NO_WRITE) || !sym->name) in conf_touch_deps()
1038 res = conf_touch_dep(sym->name); in conf_touch_deps()
1049 const char *name; in conf_write_autoconf() local
1077 if (!(sym->flags & SYMBOL_WRITE) || !sym->name) in conf_write_autoconf()
1087 name = getenv("KCONFIG_AUTOHEADER"); in conf_write_autoconf()
1088 if (!name) in conf_write_autoconf()
1089 name = "include/generated/autoconf.h"; in conf_write_autoconf()
1090 if (make_parent_dir(name)) in conf_write_autoconf()
1092 if (rename(".tmpconfig.h", name)) in conf_write_autoconf()