fixdep: handle CONFIG_IS_ENABLE() and friends for TPL
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 16 Apr 2020 05:01:44 +0000 (14:01 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 14:51:32 +0000 (10:51 -0400)
commit9d88a0aae8115e96b3f323cdb23e5725366a20e2
tree7ead00d9ca4cf9c06308a8f3beb0c595e38e90b2
parentf9f5a7e524fc68d965d7df240bf17db4af671808
fixdep: handle CONFIG_IS_ENABLE() and friends for TPL

Since commit f1c6e1922eb5 ("spl: dm: use CONFIG_IS_ENABLED to test for
the DM option"), CONFIG_IS_ENABLED() handles CONFIG_TPL_* options, but
fixdep still cannot because it hard-codes the "SPL_" prefix as follows:

    char tmp_buf[256] = "SPL_"; /* hack for U-Boot */

Take care of the "TPL_" prefix too.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/basic/fixdep.c