-
Notifications
You must be signed in to change notification settings - Fork 108
Add TuxMake as an alternative backend for kernel builds #3037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
roxell
wants to merge
5
commits into
kernelci:main
Choose a base branch
from
roxell:add-tuxmake-backend
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+186
−45
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7634896 to
8f4848a
Compare
Member
|
At first glance, this is a wonderful PR - thank you for the excellent work. Staging tests show no breakage; however, we should enable at least one build in the pipeline using TuxMake to properly validate it. |
8f4848a to
350db6b
Compare
350db6b to
361b907
Compare
Add tuxmake kernel build tool to the kernelci Docker fragment to enable kernel building with tuxmake. Pin to version 1.34.0 for reproducibility. Reviewed-by: Ben Copeland <ben.copeland@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
The kbuild system only supported make-based kernel builds. To enable alternative build systems, we needed a way to select different backends while keeping the existing code working. Added a 'backend' parameter that defaults to 'make' for compatibility. Extracted the make build logic from _generate_script() into a dedicated _build_with_make() method so different backends can have their own build implementations. Reviewed-by: Ben Copeland <ben.copeland@linaro.org Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
KernelCI needed to support tuxmake, a thin wrapper around the kernel build system that provides consistent toolchain handling and build configuration. Add USE_TUXMAKE=1 environment variable for backward compatibility. Refactor _parse_fragments() to return a list of fragment file paths instead of a count, and update _merge_frags() to accept this list. Add _build_with_tuxmake() method with basic tuxmake invocation. Only call _merge_frags() for make backend since tuxmake handles fragments differently via --kconfig-add, which is added in the next commit. Reviewed-by: Ben Copeland <ben.copeland@linaro.org Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Switch to using TuxMake's native --kconfig-add parameter for applying configuration fragments instead of manually merging them. Use --kconfig-add for fragment support and add --output-dir to specify where tuxmake should place build artifacts. Build the dtbs target for architectures that support it. Call _fetch_firmware() for builds that need firmware. Raise an error on multiple defconfigs since tuxmake only supports one. Handle ChromeOS defconfig specially by pre-creating the .config file. Reviewed-by: Ben Copeland <ben.copeland@linaro.org Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Add dtbs_check support to the TuxMake backend. When dtbs_check parameter is True, the backend now runs ONLY the dtbs_check target, matching the behavior of the make backend. Reviewed-by: Ben Copeland <ben.copeland@linaro.org Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
361b907 to
37ddf7f
Compare
Member
|
Also linked: kernelci/kernelci-pipeline#1406 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TuxMake is a thin wrapper around the kernel build system that provides
consistent toolchain handling and build configuration. This series introduces a
backend selection mechanism and implements full TuxMake support including
configuration fragments, firmware handling, and dtbs_check builds.