aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2017-11-23 21:56:51 +0100
committerAndreas Oberritter <obi@opendreambox.org>2018-05-07 23:25:23 +0200
commit8b7ec0ef24a817912cddc9382907b60a4a058b7c (patch)
treec6ad30b945036cd5da42161da81b271f7f81e9cd
parentb77d3a8f4dd86befca74d4079beb91a1c6a780ff (diff)
downloadopenembedded-core-contrib-obi/pyro.tar.gz
openembedded-core-contrib-obi/pyro.tar.bz2
openembedded-core-contrib-obi/pyro.zip
kernel-devicetree.bbclass: search dtb in all subdirectories of arch/${ARCH}/bootobi/pyro
Fixes installation of dtbs grouped in vendor subdirectories in cases where the subdirectory is not part of the entries in KERNEL_DEVICETREE. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta/classes/kernel-devicetree.bbclass11
1 files changed, 1 insertions, 10 deletions
diff --git a/meta/classes/kernel-devicetree.bbclass b/meta/classes/kernel-devicetree.bbclass
index de12f26138..457ad994bc 100644
--- a/meta/classes/kernel-devicetree.bbclass
+++ b/meta/classes/kernel-devicetree.bbclass
@@ -18,15 +18,6 @@ normalize_dtb () {
echo "$dtb"
}
-get_real_dtb_path_in_kernel () {
- dtb="$1"
- dtb_path="${B}/arch/${ARCH}/boot/dts/$dtb"
- if [ ! -e "$dtb_path" ]; then
- dtb_path="${B}/arch/${ARCH}/boot/$dtb"
- fi
- echo "$dtb_path"
-}
-
do_configure_append() {
if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
if echo ${KERNEL_IMAGETYPE_FOR_MAKE} | grep -q 'zImage'; then
@@ -61,7 +52,7 @@ do_install_append() {
dtb=`normalize_dtb "$dtbf"`
dtb_ext=${dtb##*.}
dtb_base_name=`basename $dtb .$dtb_ext`
- dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
+ dtb_path=`find ${B}/arch/${ARCH}/boot -path "*/$dtb" -print -quit`
install -m 0644 $dtb_path ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
done
}