fix extra bogus files generation in include/config/*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1 parent
3324c96335
commit
2f41e7ea57
2 files changed
+13
-7
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user