]> git.itanic.dy.fi Git - linux-stable/commit
kbuild: determine base DTB by suffix
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 3 Dec 2023 08:05:48 +0000 (17:05 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 10 Dec 2023 06:34:37 +0000 (15:34 +0900)
commitcbe826b058bb3547f195144fc018957871568320
tree68659e094ed29dd10699b32eaf7740bf54ec0be0
parent53243e098397185d910c10207bc3c0c26f072383
kbuild: determine base DTB by suffix

When using the -dtbs syntax, you need to list the base first, as
follows:

    foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo
    dtb-y := foo.dtb

You cannot do this arrangement:

    foo-dtbs := foo_overlay1.dtbo foo_overlay2.dtbo foo_base.dtb

This restriction comes from $(firstword ...) in the current
implementation, but it is unneeded to rely on the order in the
-dtbs syntax.

Instead, you can simply determine the base by the suffix because
the base (*.dtb) and overlays (*.dtbo) use different suffixes.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/Makefile.lib