summaryrefslogtreecommitdiff
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorStefan Christ <s.christ@phytec.de>2015-10-19 10:15:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:19:58 +0000
commit1e9ac2c4970b2fc7f8ed939bce7cf0a5c7715ca3 (patch)
tree899218729acab6396dc169fd494fce9446e5902f /meta/recipes-kernel
parent2d7680a104e2910c90d8aceeb12c24dfde2cd2d6 (diff)
downloadopenembedded-core-1e9ac2c4970b2fc7f8ed939bce7cf0a5c7715ca3.tar.gz
openembedded-core-1e9ac2c4970b2fc7f8ed939bce7cf0a5c7715ca3.tar.bz2
openembedded-core-1e9ac2c4970b2fc7f8ed939bce7cf0a5c7715ca3.zip
linux-dtb.inc: use same variable name DTB for all elements of KERNEL_DEVICETREE
Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/linux/linux-dtb.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc
index 2e8ec3bf6c..173e945ef6 100644
--- a/meta/recipes-kernel/linux/linux-dtb.inc
+++ b/meta/recipes-kernel/linux/linux-dtb.inc
@@ -58,9 +58,9 @@ do_deploy_append() {
pkg_postinst_kernel-devicetree () {
cd /${KERNEL_IMAGEDEST}
- for DTB_FILE in ${KERNEL_DEVICETREE}
+ for DTB in ${KERNEL_DEVICETREE}
do
- DTB_BASE_NAME=`basename ${DTB_FILE} | awk -F "." '{print $1}'`
+ DTB_BASE_NAME=`basename ${DTB} | awk -F "." '{print $1}'`
DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.dtb ${DTB_BASE_NAME}.dtb devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
done
@@ -68,9 +68,9 @@ pkg_postinst_kernel-devicetree () {
pkg_postrm_kernel-devicetree () {
cd /${KERNEL_IMAGEDEST}
- for DTB_FILE in ${KERNEL_DEVICETREE}
+ for DTB in ${KERNEL_DEVICETREE}
do
- DTB_BASE_NAME=`basename ${DTB_FILE} | awk -F "." '{print $1}'`
+ DTB_BASE_NAME=`basename ${DTB} | awk -F "." '{print $1}'`
DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
update-alternatives --remove ${DTB_BASE_NAME}.dtb devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
done