Skip to content
Snippets Groups Projects
Commit 7d8e9e8e authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 06d326d3
No related branches found
No related tags found
No related merge requests found
......@@ -249,10 +249,17 @@ static void parse_config_file(const char *map, size_t len)
if (q - p < 0)
continue;
/* U-Boot also handles CONFIG_IS_{ENABLED/BUILTIN/MODULE} */
/*
* U-Boot also handles
* CONFIG_IS_ENABLED(...)
* CONFIG_IS_BUILTIN(...)
* CONFIG_IS_MODULE(...)
* CONFIG_VAL(...)
*/
if ((q - p == 10 && !memcmp(p, "IS_ENABLED(", 11)) ||
(q - p == 10 && !memcmp(p, "IS_BUILTIN(", 11)) ||
(q - p == 9 && !memcmp(p, "IS_MODULE(", 10))) {
(q - p == 9 && !memcmp(p, "IS_MODULE(", 10)) ||
(q - p == 3 && !memcmp(p, "VAL(", 4))) {
p = q + 1;
for (q = p; q < map + len; q++)
if (*q == ')')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment