Commit 7d8e9e8e24b247944bbff6ab68e03cac81fde218
Committed by
Tom Rini
1 parent
06d326d3a6
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
fixdep: fix dependency on options surrounded by CONFIG_VAL()
CONFIG options surrounded by CONFIG_IS_ENABLED(...) CONFIG_IS_BUILTIN(...) CONFIG_IS_MODULE(...) CONFIG_VAL(...) need special care for proper dependency tracking. I do not remember why, but I missed to add CONFIG_VAL(...) handling. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Showing 1 changed file with 9 additions and 2 deletions Side-by-side Diff
scripts/basic/fixdep.c
... | ... | @@ -249,10 +249,17 @@ |
249 | 249 | if (q - p < 0) |
250 | 250 | continue; |
251 | 251 | |
252 | - /* U-Boot also handles CONFIG_IS_{ENABLED/BUILTIN/MODULE} */ | |
252 | + /* | |
253 | + * U-Boot also handles | |
254 | + * CONFIG_IS_ENABLED(...) | |
255 | + * CONFIG_IS_BUILTIN(...) | |
256 | + * CONFIG_IS_MODULE(...) | |
257 | + * CONFIG_VAL(...) | |
258 | + */ | |
253 | 259 | if ((q - p == 10 && !memcmp(p, "IS_ENABLED(", 11)) || |
254 | 260 | (q - p == 10 && !memcmp(p, "IS_BUILTIN(", 11)) || |
255 | - (q - p == 9 && !memcmp(p, "IS_MODULE(", 10))) { | |
261 | + (q - p == 9 && !memcmp(p, "IS_MODULE(", 10)) || | |
262 | + (q - p == 3 && !memcmp(p, "VAL(", 4))) { | |
256 | 263 | p = q + 1; |
257 | 264 | for (q = p; q < map + len; q++) |
258 | 265 | if (*q == ')') |