From 75e93f426d1c79d392f4c88e4aa10b4915433641 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 4 Jan 2019 15:13:02 -0600 Subject: Simplify package updates with OPKG --- recipes-kernel/linux/linux-at91_4.9.87.bb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes-kernel/linux/linux-at91_4.9.87.bb b/recipes-kernel/linux/linux-at91_4.9.87.bb index 60685f0..8b55f61 100644 --- a/recipes-kernel/linux/linux-at91_4.9.87.bb +++ b/recipes-kernel/linux/linux-at91_4.9.87.bb @@ -99,11 +99,7 @@ pkg_prerm_kernel-image-uimage() { PACKAGES =+ "kernel-image-uimage-inst kernel-dt-bindings-dev" # Not sure how to get the name below generated automatically -#KERNELVERSION = "4.9.87-linux4sam-5.8-dirty" -KERNELVERSION = "${PV}" -#KERNELVERSION2 = "4.9.87-linux4sam_5.8-dirty" -KERNELVERSION2 = "${PV}" -RDEPENDS_kernel-image-uimage-inst += "kernel-image-uimage-${KERNELVERSION}" +RDEPENDS_kernel-image-uimage-inst += "kernel-image-uimage-${PV}" ALLOW_EMPTY_kernel-image-uimage-inst = "1" pkg_postinst_kernel-image-uimage-inst() { @@ -113,7 +109,7 @@ pkg_postinst_kernel-image-uimage-inst() { set -x kernel_mtd="/dev/$(cat /proc/mtd | grep '\"uImage\"' | cut -d : -f 1)" flash_erase ${kernel_mtd} 0 0 - if nandwrite -p ${kernel_mtd} /boot/uImage-${KERNELVERSION2} ; then + if nandwrite -p ${kernel_mtd} /boot/uImage-${PV} ; then echo 'Kernel image update is successful' fi set +x -- cgit v1.2.3