diff options
Diffstat (limited to 'recipes-kernel/linux/linux-at91_4.9.bb')
-rw-r--r-- | recipes-kernel/linux/linux-at91_4.9.bb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-at91_4.9.bb b/recipes-kernel/linux/linux-at91_4.9.bb index c5710e8..73aeaaf 100644 --- a/recipes-kernel/linux/linux-at91_4.9.bb +++ b/recipes-kernel/linux/linux-at91_4.9.bb @@ -82,7 +82,10 @@ pkg_prerm_kernel-image-uimage() { } PACKAGES =+ "kernel-image-uimage-inst kernel-dt-bindings-dev" -RDEPENDS_kernel-image-uimage-inst += "kernel-image-uimage-${PV}" +# Not sure how to get the name below generated automatically +KERNELVERSION = "4.9.87-linux4sam-5.8-dirty" +KERNELVERSION2 = "4.9.87-linux4sam_5.8-dirty" +RDEPENDS_kernel-image-uimage-inst += "kernel-image-uimage-${KERNELVERSION}" ALLOW_EMPTY_kernel-image-uimage-inst = "1" pkg_postinst_kernel-image-uimage-inst() { @@ -92,12 +95,14 @@ 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-${PV} ; then + if nandwrite -p ${kernel_mtd} /boot/uImage-${KERNELVERSION2} ; then echo 'Kernel image update is successful' fi set +x fi } + +# Install dtc to build any device tree overlays in other recipes/modules. do_install_append() { install -D -m 0755 scripts/dtc/dtc ${STAGING_DIR_NATIVE}${USRBINPATH_class-native}/dtc mkdir -p ${D}${includedir}/linux |