]> git.baikalelectronics.ru Git - kernel.git/commit
builddeb: Fix inclusion of dtbs in debian package
authorRob Herring <robh@kernel.org>
Wed, 7 Nov 2018 14:36:46 +0000 (08:36 -0600)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 11 Nov 2018 14:04:53 +0000 (23:04 +0900)
commitb58a3364edceb1d2b69fad72024e4d5e4d18b1ca
tree92227b1ec55c6000199230d58ba3bfedcfc0f542
parent17a68e948a6da44b814bb056f2955608628cbe00
builddeb: Fix inclusion of dtbs in debian package

Commit 1f763ced9ac3 ("kbuild: consolidate Devicetree dtb build rules")
moved the location of 'dtbs_install' target which caused dtbs to not be
installed when building debian package with 'bindeb-pkg' target. Update
the builddeb script to use the same logic that determines if there's a
'dtbs_install' target which is presence of the arch dts directory. Also,
use CONFIG_OF_EARLY_FLATTREE instead of CONFIG_OF as that's a better
indication of whether we are building dtbs.

This commit will also have the side effect of installing dtbs on any
arch that has dts files. Previously, it was dependent on whether the
arch defined 'dtbs_install'.

Fixes: 1f763ced9ac3 ("kbuild: consolidate Devicetree dtb build rules")
Reported-by: Nuno Gonçalves <nunojpg@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/package/builddeb