]> code.ossystems Code Review - openembedded-core.git/commitdiff
linux-dtb.inc: use same variable name DTB for all elements of KERNEL_DEVICETREE
authorStefan Christ <s.christ@phytec.de>
Mon, 19 Oct 2015 08:15:38 +0000 (10:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Nov 2015 11:19:58 +0000 (11:19 +0000)
Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-kernel/linux/linux-dtb.inc

index 2e8ec3bf6cf94180105fb50a14eeda8a7fce30a1..173e945ef6777e7705ce96ddcff99dd4620208f7 100644 (file)
@@ -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