diff options
Diffstat (limited to 'scripts/basic/fixdep.c')
-rw-r--r-- | scripts/basic/fixdep.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 668a11a8b383..6bc7e7cfccf6 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
@@ -28,9 +28,11 @@ | |||
28 | * the dependency on linux/autoconf.h by a dependency on every config | 28 | * the dependency on linux/autoconf.h by a dependency on every config |
29 | * option which is mentioned in any of the listed prequisites. | 29 | * option which is mentioned in any of the listed prequisites. |
30 | * | 30 | * |
31 | * To be exact, split-include populates a tree in include/config/, | 31 | * kconfig populates a tree in include/config/ with an empty file |
32 | * e.g. include/config/his/driver.h, which contains the #define/#undef | 32 | * for each config symbol and when the configuration is updated |
33 | * for the CONFIG_HIS_DRIVER option. | 33 | * the files representing changed config options are touched |
34 | * which then let make pick up the changes and the files that use | ||
35 | * the config symbols are rebuilt. | ||
34 | * | 36 | * |
35 | * So if the user changes his CONFIG_HIS_DRIVER option, only the objects | 37 | * So if the user changes his CONFIG_HIS_DRIVER option, only the objects |
36 | * which depend on "include/linux/config/his/driver.h" will be rebuilt, | 38 | * which depend on "include/linux/config/his/driver.h" will be rebuilt, |
@@ -245,6 +247,8 @@ void parse_config_file(char *map, size_t len) | |||
245 | continue; | 247 | continue; |
246 | 248 | ||
247 | found: | 249 | found: |
250 | if (!memcmp(q - 7, "_MODULE", 7)) | ||
251 | q -= 7; | ||
248 | use_config(p+7, q-p-7); | 252 | use_config(p+7, q-p-7); |
249 | } | 253 | } |
250 | } | 254 | } |