]> code.ossystems Code Review - openembedded-core.git/commit
kernel-devicetree: Corrected normalize_dtb
authorPaulo Neves <ptsneves@gmail.com>
Mon, 2 Jul 2018 15:03:44 +0000 (17:03 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Jul 2018 07:24:34 +0000 (08:24 +0100)
commit2e7f3b2b9318d1e5395ad58131eafb873f614326
tree0b2253ad4835b0f4dbc6c8b4f3619c55da27035b
parent069426b0a7a6848a9290cd2e8cdce941d7e3c08c
kernel-devicetree: Corrected normalize_dtb

The normalize_dtb function was buggy because
it only converted from .dts suffix to .dtb
suffix if the user passed a full source path to
KERNEL_DEVICETREE containing the /dts/ path.
The problem is that if the user did that there
would be a warning.

On the othet hand if user just set the variable
KERNEL_DEVICETREE="file.dts" the bbclass translation
to the respective .dtb target did not occur and
make would fail saying it has no rule to make target
file.dts

This patch decouples the logic of having /dts/ in the
path from the target translation.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-devicetree.bbclass