projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kconfig: add a function to get the CONFIG_ prefix
[carl9170fw.git]
/
config
/
lkc.h
diff --git
a/config/lkc.h
b/config/lkc.h
index c18f2bd9c095510d1d5e58575b265bd67ae9e781..7aa9db0b2a7776513bfb7ad7f9a79d567509861a 100644
(file)
--- a/
config/lkc.h
+++ b/
config/lkc.h
@@
-39,6
+39,12
@@
extern "C" {
#ifndef CONFIG_
#define CONFIG_ "CONFIG_"
#endif
+static inline const char *CONFIG_prefix(void)
+{
+ return CONFIG_;
+}
+#undef CONFIG_
+#define CONFIG_ CONFIG_prefix()
#define TF_COMMAND 0x0001
#define TF_PARAM 0x0002