From 2048b02f8dd66c85d4f909762a8c797573c66d57 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 20 Oct 2012 01:06:25 +0200 Subject: [PATCH] --- yaml --- r: 359230 b: refs/heads/master c: 9a926d4354d84e424e738a6d401328340400331b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/gconf.c | 2 +- trunk/scripts/kconfig/lkc.h | 2 +- trunk/scripts/kconfig/nconf.c | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 30a5cada6e92..77ce2b81399a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b341f7882f04cc70b7437583f012a8d93fbfb00e +refs/heads/master: 9a926d4354d84e424e738a6d401328340400331b diff --git a/trunk/scripts/kconfig/gconf.c b/trunk/scripts/kconfig/gconf.c index adc230638c5b..f2bee70e26f4 100644 --- a/trunk/scripts/kconfig/gconf.c +++ b/trunk/scripts/kconfig/gconf.c @@ -10,6 +10,7 @@ # include #endif +#include #include "lkc.h" #include "images.c" @@ -22,7 +23,6 @@ #include #include #include -#include //#define DEBUG diff --git a/trunk/scripts/kconfig/lkc.h b/trunk/scripts/kconfig/lkc.h index 7aa9db0b2a77..7577a7fbb405 100644 --- a/trunk/scripts/kconfig/lkc.h +++ b/trunk/scripts/kconfig/lkc.h @@ -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() diff --git a/trunk/scripts/kconfig/nconf.c b/trunk/scripts/kconfig/nconf.c index 261f926d8f4b..ce93e879a29c 100644 --- a/trunk/scripts/kconfig/nconf.c +++ b/trunk/scripts/kconfig/nconf.c @@ -7,6 +7,7 @@ */ #define _GNU_SOURCE #include +#include #include "lkc.h" #include "nconf.h"