Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: write Kconfig files to autoconf.cmd in order

Currently, include/config/autoconf.cmd saves included Kconfig files in
reverse order. While this is not a big deal, it is inconsistent with
other *.cmd files generated by fixdep.

Output the included Kconfig files in the included order.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+11 -4
+3 -4
scripts/kconfig/confdata.c
··· 20 20 21 21 #include "lkc.h" 22 22 23 + struct gstr autoconf_cmd; 24 + 23 25 /* return true if 'path' exists, false otherwise */ 24 26 static bool is_present(const char *path) 25 27 { ··· 974 972 static int conf_write_autoconf_cmd(const char *autoconf_name) 975 973 { 976 974 char name[PATH_MAX], tmp[PATH_MAX]; 977 - struct file *file; 978 975 FILE *out; 979 976 int ret; 980 977 ··· 994 993 return -1; 995 994 } 996 995 997 - fprintf(out, "deps_config := \\\n"); 998 - for (file = file_list; file; file = file->next) 999 - fprintf(out, "\t%s \\\n", file->name); 996 + fputs(str_get(&autoconf_cmd), out); 1000 997 1001 998 fprintf(out, "\n%s: $(deps_config)\n\n", autoconf_name); 1002 999
+1
scripts/kconfig/lkc.h
··· 40 40 const char *zconf_curname(void); 41 41 42 42 /* confdata.c */ 43 + extern struct gstr autoconf_cmd; 43 44 const char *conf_get_configname(void); 44 45 void set_all_choice_values(struct symbol *csym); 45 46
+4
scripts/kconfig/parser.y
··· 480 480 struct symbol *sym; 481 481 int i; 482 482 483 + autoconf_cmd = str_new(); 484 + 485 + str_printf(&autoconf_cmd, "deps_config := \\\n"); 486 + 483 487 zconf_initscan(name); 484 488 485 489 _menu_init();
+3
scripts/kconfig/util.c
··· 25 25 file->name = xstrdup(name); 26 26 file->next = file_list; 27 27 file_list = file; 28 + 29 + str_printf(&autoconf_cmd, "\t%s \\\n", name); 30 + 28 31 return file; 29 32 } 30 33