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上該檔案的連結如下:
patches/arm64/0001-arm64-add-zImage-support-for-arm64.patch · openEuler/yocto-embedded-tools - Gitee.com