]> code.ossystems Code Review - openembedded-core.git/commitdiff
linux-dtb.inc: use absolute upd-alt paths
authorChristopher Larson <chris_larson@mentor.com>
Wed, 11 Nov 2015 05:03:49 +0000 (22:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jan 2016 23:23:15 +0000 (23:23 +0000)
This works around a limitation of the chkconfig update-alternatives, so it
works with all our update-alternatives providers.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-kernel/linux/linux-dtb.inc

index 772adcbced60dae9ef05b0e9cae6209986c3ad70..651a19e4ae9df0635d6b7bf0626d5ce6d69045e9 100644 (file)
@@ -59,7 +59,7 @@ pkg_postinst_kernel-devicetree () {
        do
                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
+               update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.dtb ${DTB_BASE_NAME}.dtb /boot/devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
        done
 }
 
@@ -69,6 +69,6 @@ pkg_postrm_kernel-devicetree () {
        do
                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
+               update-alternatives --remove ${DTB_BASE_NAME}.dtb /boot/devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
        done
 }