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)
committerMichal Marek <mmarek@suse.cz>
Tue, 20 Nov 2012 10:20:08 +0000 (11:20 +0100)
commitb341f7882f04cc70b7437583f012a8d93fbfb00e
tree6d6a829a9cce0e9c3f03547dfbd699629ff490aa
parent337a275d03e0b900dc8ac3ab5583d18099fedae6
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>
scripts/kconfig/lkc.h
This page took 0.054152 seconds and 5 git commands to generate.