summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-devicetree.bbclass
diff options
context:
space:
mode:
authorPaulo Neves <ptsneves@gmail.com>2018-07-02 17:03:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-04 00:02:17 +0100
commit396e269c5c0e285be9d5ab40b521dda21bd72e19 (patch)
treea67aa57bb82c614488d93eef01675de6a2da4453 /meta/classes/kernel-devicetree.bbclass
parent9267988e3036d627a4bad12102b455a53cb6501a (diff)
downloadpoky-396e269c5c0e285be9d5ab40b521dda21bd72e19.tar.gz
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. (From OE-Core rev: 2e7f3b2b9318d1e5395ad58131eafb873f614326) Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-devicetree.bbclass')
-rw-r--r--meta/classes/kernel-devicetree.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-devicetree.bbclass b/meta/classes/kernel-devicetree.bbclass
index 4f80cc62eb..9866d844ab 100644
--- a/meta/classes/kernel-devicetree.bbclass
+++ b/meta/classes/kernel-devicetree.bbclass
@@ -13,8 +13,8 @@ normalize_dtb () {
13 DTB="$1" 13 DTB="$1"
14 if echo ${DTB} | grep -q '/dts/'; then 14 if echo ${DTB} | grep -q '/dts/'; then
15 bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." 15 bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used."
16 DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'`
17 fi 16 fi
17 DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'`
18 echo "${DTB}" 18 echo "${DTB}"
19} 19}
20 20