diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-17 20:20:24 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-17 20:20:24 +0200 |
commit | 2f41e7ea5700aab61f32a1db97569f832563fbd8 (patch) | |
tree | 27718bc88b201f0f917fd249a62e37b587413c5c /scripts/basic/split-include.c | |
parent | 3324c963352392c00bda9eb77b815f0db9f6bdb7 (diff) |
fix extra bogus files generation in include/config/*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/basic/split-include.c')
-rw-r--r-- | scripts/basic/split-include.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c index 60934b5b1..e328788e2 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c @@ -110,11 +110,12 @@ int main(int argc, const char * argv []) if (line[0] != '#') continue; - if ((str_config = strstr(line, "CONFIG_")) == NULL) + if ((str_config = strstr(line, " CONFIG_")) == NULL) continue; - /* Make the output file name. */ - str_config += sizeof("CONFIG_") - 1; + /* We found #define CONFIG_foo or #undef CONFIG_foo. + * Make the output file name. */ + str_config += sizeof(" CONFIG_") - 1; for (itarget = 0; !isspace(str_config[itarget]); itarget++) { int c = (unsigned char) str_config[itarget]; |