diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2012-10-20 03:06:25 +0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-11-20 14:20:08 +0400 |
commit | 9a926d4354d84e424e738a6d401328340400331b (patch) | |
tree | 7b59baf2c6b59eb7dc8157b5ab28f3628aa53de9 /scripts/kconfig/nconf.c | |
parent | b341f7882f04cc70b7437583f012a8d93fbfb00e (diff) | |
download | linux-9a926d4354d84e424e738a6d401328340400331b.tar.xz |
kconfig: get CONFIG_ prefix from the environment
Currently, the CONFIG_ prefix is hard-coded in the kconfig frontends
executables. This means that two projects that use kconfig with
different prefixes can not share the same kconfig frontends.
Instead of hard-coding the prefix in the frontends, get it from the
environment, and revert back to hard-coded value if not found.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/nconf.c')
-rw-r--r-- | scripts/kconfig/nconf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 261f926d8f4b..ce93e879a29c 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -7,6 +7,7 @@ */ #define _GNU_SOURCE #include <string.h> +#include <stdlib.h> #include "lkc.h" #include "nconf.h" |