kconfig: get CONFIG_ prefix from the environment
[carl9170fw.git] / config / lkc.h
index 7aa9db0b2a7776513bfb7ad7f9a79d567509861a..7577a7fbb405f7c2d4c585b4f88ab687e90c863a 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
 #endif
 static inline const char *CONFIG_prefix(void)
 {
-       return CONFIG_;
+       return getenv( "CONFIG_" ) ?: CONFIG_;
 }
 #undef CONFIG_
 #define CONFIG_ CONFIG_prefix()