diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-04-27 16:49:30 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-12 07:28:33 +0300 |
commit | 78046fabe6e7807a271aad09cde0522d80bd2985 (patch) | |
tree | 28022eb621119b167603a8ac3024df03a1c790d5 /block | |
parent | 1ca0c2f612116a7159ab11c36b555910f90db338 (diff) | |
download | linux-78046fabe6e7807a271aad09cde0522d80bd2985.tar.xz |
kbuild: determine the output format of DTC by the target suffix
cmd_dtc takes the additional parameter $(2) to select the target
format, dtb or yaml. This makes things complicated when it is used
with cmd_and_fixdep and if_changed_rule. I actually stumbled on this.
See commit 3d4b2238684a ("kbuild: fix DT binding schema rule again to
avoid needless rebuilds").
Extract the suffix part of the target instead of passing the parameter.
Fortunately, this works for both $(obj)/%.dtb and $(obj)/%.dt.yaml .
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions