diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-01-11 16:42:15 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-01-16 08:53:11 -0600 |
commit | 2c44c115a6973cf4b4877b217e03fe9f510ff4bf (patch) | |
tree | eb5c35383221da852cb124961ff2bfda15ca7f7d /meta-xilinx-core/recipes-kernel | |
parent | 3452295d3cc1b9128ad5a829bbc325fc83101e7e (diff) | |
download | meta-xilinx-2c44c115a6973cf4b4877b217e03fe9f510ff4bf.tar.gz |
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 <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-kernel')
-rw-r--r-- | meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2024.1.bb | 8 |
1 files changed, 8 insertions, 0 deletions
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" | |||
9 | include linux-xlnx.inc | 9 | include linux-xlnx.inc |
10 | 10 | ||
11 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | 11 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
12 | |||
13 | # Workaround for: | ||
14 | # 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 | ||
15 | # This will not be required Scarthgap | ||
16 | kernel_do_install:prepend () { | ||
17 | mkdir -p "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}" | ||
18 | touch "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source" | ||
19 | } | ||