ERROR: linux-openeuler-5.10-r0 do_patch: Applying '0001-arm64-add-zImage-support-for-arm64.patch' failed:
stdout: checking file arch/arm64/Kconfig
Hunk #1 succeeded at 2192 (offset 102 lines).
checking file arch/arm64/Makefile
checking file arch/arm64/boot/Makefile
checking file arch/arm64/boot/compressed/Kconfig
checking file arch/arm64/boot/compressed/Makefile
checking file arch/arm64/boot/compressed/decompress.c
checking file arch/arm64/boot/compressed/head.S
stderr: patch: **** malformed patch at line 1180: diff --git a/arch/arm64/boot/compressed/hyp-stub.S b/arch/arm64/boot/compressed/hyp-stub.S
ERROR: Logfile of failure stored in: /mnt/build/tmp/work/qemu_aarch64-openeuler-linux/linux-openeuler/5.10-r0/temp/log.do_patch.982691
ERROR: Task (/mnt/embedded/src/yocto-poky/../yocto-meta-openeuler/meta-openeuler/recipes-kernel/linux/linux-openeuler.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 144 tasks of which 133 didn't need to be rerun and 1 failed.
解决办法:找到本地0001-arm64-add-zImage-support-for-arm64.patch的patch文件,与gitee上的patch进行对比,发现两个文件不一致。
下载gitee上的patch替换后,重新编译正常。
gitee上该文件的链接如下: