kbuild: record real-prereqs in .cmd files - #6
Open
augelu-tng wants to merge 1 commit into
Open
Conversation
augelu-tng
force-pushed
the
augelu-tng/record-real-prereqs-in-cmd-file
branch
2 times, most recently
from
August 28, 2026 06:44
b8f4767 to
e6d5c52
Compare
Record $(real-prereqs), the non-phony prerequisites of the target, in a
new metadata field:
make_prereqs_<target> := <prerequisites>
Write the field from both cmd_and_savecmd and cmd_and_fixdep.
Update scripts/make_fit.py to read only savedcmd_* instead of parsing the
complete .cmd file.
Ignore make_prereqs_* in KernelSbom.
Link: https://lore.kernel.org/r/a01233b9-23a2-4666-91ed-f1cf030dcb9f@tngtech.com
Assisted-by: Cursor:GPT-5.6 Sol
Co-developed-by: Maximilian Huber <maximilian.huber@tngtech.com>
Signed-off-by: Maximilian Huber <maximilian.huber@tngtech.com>
Signed-off-by: Luis Augenstein <luis.augenstein@tngtech.com>
augelu-tng
force-pushed
the
augelu-tng/record-real-prereqs-in-cmd-file
branch
from
August 28, 2026 09:03
e6d5c52 to
dc3b367
Compare
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
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.
Record $(real-prereqs), the non-phony prerequisites of the target, in a new metadata field:
Write the field from both cmd_and_savecmd and cmd_and_fixdep.
Update scripts/make_fit.py to read only savedcmd_* instead of parsing the complete .cmd file.
Make the KernelSbom parser ignore make_prereqs_*.
Support for using the new field will follow separately.
Link: https://lore.kernel.org/r/a01233b9-23a2-4666-91ed-f1cf030dcb9f@tngtech.com