[meta-ti] [dylan][PATCH] linux-ti-staging_git: Mimic patch "Correct post(inst|rm) package association"
Franklin S. Cooper Jr
fcooper at ti.com
Wed Sep 25 16:00:26 PDT 2013
* Mimic the patch
kernel.bbclass: Correct post(inst|rm) package association
* This patch ensures that a proper symlink is created that satisfies U-boot's
requirement of having the kernel image in the rootfs.
* This patch is already apart of oe-core master and needs to be added to oe-core
dylan.
* A patch to do this has already been submitted:
http://lists.openembedded.org/pipermail/openembedded-core/2013-September/084755.html
Signed-off-by: Franklin S. Cooper Jr <fcooper at ti.com>
---
recipes-kernel/linux/linux-ti-staging_git.bb | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/recipes-kernel/linux/linux-ti-staging_git.bb b/recipes-kernel/linux/linux-ti-staging_git.bb
index b75e650..6bdf9e3 100644
--- a/recipes-kernel/linux/linux-ti-staging_git.bb
+++ b/recipes-kernel/linux/linux-ti-staging_git.bb
@@ -32,8 +32,21 @@ SRCREV = "351da8b4c2ff277b2d816a2108ada357a63fadbe"
PV = "3.11+3.12-rc1"
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
file://defconfig \
"
+
+# The below code mimics patch
+# "kernel.bbclass: Correct post(inst|rm) package association" which is included
+# in oe-core master. Once the patch has been pushed into dylan the below code
+# can be removed.
+
+pkg_postinst_kernel-image_append () {
+ update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+}
+
+pkg_postrm_kernel-image () {
+ update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
+}
--
1.7.0.4
More information about the meta-ti
mailing list