mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
linux-dtb.inc: use absolute upd-alt paths
This works around a limitation of the chkconfig update-alternatives, so it works with all our update-alternatives providers. (From OE-Core rev: f78c640f1f41eb12ef7919e7dc99aae7db6f6b17) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3ad08c0463
commit
c3b96fffac
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user