| Summary: | kernel-yocto.bbclass does not handle git am failures when patching kernel-meta | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | C. Andy Martin <cam> |
| Component: | kernel | Assignee: | Bruce Ashfield <bruce.ashfield> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | tom.zanussi |
| Version: | unspecified | ||
| Target Milestone: | 5.0 M1 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
C. Andy Martin
2023-10-27 14:59:38 UTC
The patching of the kernel-meta data was largely an add-on for debug when I introduced it in 2019, hence why the support is sparse for dealing with issues related to the patching. There are more robust patch application methods in both the kern-tools and the core patch classes (but neither can be used in this context). The preferred method for overriding configuration is to provide the meta-data in a layer, either via a complete directory (kernel-cache style) or via fragments. If there are errors in that sort of process, they are more significant. That being said, I can certainly improve things by simply checking the return code and doing an exit. The routine has failure code trapping off by default, as some commands are expected to have failure codes. Also, the -s is intentional and will stay. We have a routine check_git_config, which was added to ensure that some sort of user is configured and available for the patch application. If that is broken, again, that is a different issue that we need to fix. So it isn't relying on global config, and has been implemented with that in mind. There's another active issue that I'm working on that will enhance our avoidance of system/user git configuration (bad hooks were being called), so when that work is complete, this patching will leverage it. Summary: I'll check the return code for now, and the other feature/enhancements that are pending will deal with other parts. commit d6b37f223015baa6ebb809b18420c62204c4d1b0 Author: Bruce Ashfield <bruce.ashfield@gmail.com> Date: Wed Nov 8 09:16:26 2023 -0500 kernel-yocto: improve metadata patching The ability to patch the kernel-yocto metadata was added to support debug and easier test cycles on kernel-cache provided fragments. As such, it was very simple and has limited functionality. That being said, it is an available feature and can be improved to handle patches that fail to apply. The main kernel patching is already handled by the kern-tools, so we extend the patching of the meta-data to same tools and inherit more functinality from the scripts. [YOCTO #15266] (From OE-Core rev: e867addd6c2f508f7a95e72222e750d37f3d19d8) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> :100644 100644 cb9cd26b09 9a86616dad M meta/classes-recipe/kernel-yocto.bbclass |