Skip to content

kbuild: record real-prereqs in .cmd files - #6

Open
augelu-tng wants to merge 1 commit into
masterfrom
augelu-tng/record-real-prereqs-in-cmd-file
Open

kbuild: record real-prereqs in .cmd files#6
augelu-tng wants to merge 1 commit into
masterfrom
augelu-tng/record-real-prereqs-in-cmd-file

Conversation

@augelu-tng

Copy link
Copy Markdown
Owner

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.

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

@augelu-tng
augelu-tng force-pushed the augelu-tng/record-real-prereqs-in-cmd-file branch 2 times, most recently from b8f4767 to e6d5c52 Compare August 28, 2026 06:44
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
augelu-tng force-pushed the augelu-tng/record-real-prereqs-in-cmd-file branch from e6d5c52 to dc3b367 Compare August 28, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant