kconfig: add a function to get the CONFIG_ prefix
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 19 Oct 2012 23:06:24 +0000 (01:06 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 22 Mar 2013 23:23:03 +0000 (00:23 +0100)
commit5bc1c99e1bbdea2d94147d4c6480ef79652f2851
tree7696810d755a024ea763c381fd9d43a41c3c03a8
parent1c85595695219f59d3c41bfd26b0a6a5dbad839c
kconfig: add a function to get the CONFIG_ prefix

Currently, we get the CONFIG_ prefix via the CONFIG_ macro, which means
the CONFIG_ prefix is hard-coded at compile time. This goes against
having a run-time defined CONFIG_ prefix.

Add a function that returns the CONFIG_ prefix to use (but keep the
current hard-coded behavior, to be changed in a later patch).

To avoid touching all the code that uses the CONFIG_ macro, we just
undef it, and define it to be a call to the function.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/lkc.h