- search env for BUILDROOT_CONFIG for use as a config file; defaults to .config

This commit is contained in:
Bernhard Reutner-Fischer 2007-09-23 14:12:58 +00:00
parent 0d888e3677
commit 54cf1e72f4
2 changed files with 12 additions and 1 deletions

View File

@ -37,7 +37,7 @@ static void conf_warning(const char *fmt, ...)
const char *conf_get_configname(void)
{
char *name = getenv("KCONFIG_CONFIG");
char *name = getenv("BUILDROOT_CONFIG");
return name ? name : ".config";
}

View File

@ -1292,3 +1292,14 @@ diff -rdup kernel-config/zconf.y config/zconf.y
"\t$(deps_config)\n\n"
"$(deps_config): ;\n");
fclose(out);
--- kernel-config/confdata.c 2007-09-23 15:33:26.000000000 +0200
+++ config/confdata.c 2007-09-23 16:10:52.000000000 +0200
@@ -37,7 +37,7 @@
const char *conf_get_configname(void)
{
- char *name = getenv("KCONFIG_CONFIG");
+ char *name = getenv("BUILDROOT_CONFIG");
return name ? name : ".config";
}