From 2c44c115a6973cf4b4877b217e03fe9f510ff4bf Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Thu, 11 Jan 2024 16:42:15 -0600 Subject: linux-xlnx_2024.1: Add work for kernel do_install issue kernel_do_install task fails with 6.6 kernel with below errors: | DEPMOD /scratch1/sandeep/yocto/2024.1/yp-dev/build-zynqmp/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/6.6.0-xilinx-v2024.1+gitAUTOINC+340eed5001-r0/image/lib/modules/6.6.0-xilinx-v2024.1-g340eed500130 | -ae -F System.map 6.6.0-xilinx-v2024.1-g340eed500130 | rm: cannot remove '/scratch1/sandeep/yocto/2024.1/yp-dev/build-zynqmp/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/6.6.0-xilinx-v2024.1+gitAUTOINC+340eed5001-r0/image/lib/modules/6.6.0-xilinx-v2024.1-g340eed500130/source': No such file or directory | WARNING: /scratch1/sandeep/yocto/2024.1/yp-dev/build-zynqmp/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/6.6.0-xilinx-v2024.1+gitAUTOINC+340eed5001-r0/temp/run.do_install.609800:186 exit 1 from 'rm "/scratch1/sandeep/yocto/2024.1/yp-dev/build-zynqmp/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/6.6.0-xilinx-v2024.1+gitAUTOINC+340eed5001-r0/image/lib/modules/6.6.0-xilinx-v2024.1-g340eed500130/source"' Scarthgap already has code to make the 'rm' operation condition of existence, so this code will not be needed there. Signed-off-by: Mark Hatle --- meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2024.1.bb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta-xilinx-core/recipes-kernel') diff --git a/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2024.1.bb b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2024.1.bb index 5a34fc45..a54156ae 100644 --- a/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2024.1.bb +++ b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2024.1.bb @@ -9,3 +9,11 @@ KCONF_AUDIT_LEVEL="0" include linux-xlnx.inc FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +# Workaround for: +# rm: cannot remove '.../tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/6.6.0-xilinx-v2024.1+gitAUTOINC+340eed5001-r0/image/lib/modules/6.6.0-xilinx-v2024.1-g340eed500130/source': No such file or directory +# This will not be required Scarthgap +kernel_do_install:prepend () { + mkdir -p "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}" + touch "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source" +} -- cgit v1.2.3-54-g00ecf