kconfig: get CONFIG_ prefix from the environment
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 19 Oct 2012 23:06:25 +0000 (01:06 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 20 Nov 2012 10:20:08 +0000 (11:20 +0100)
commit9a926d4354d84e424e738a6d401328340400331b
tree7b59baf2c6b59eb7dc8157b5ab28f3628aa53de9
parentb341f7882f04cc70b7437583f012a8d93fbfb00e
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>
scripts/kconfig/gconf.c
scripts/kconfig/lkc.h
scripts/kconfig/nconf.c