Skip to content

Honor Kbuild flags and source-version metadata - #76

Merged
fionera merged 4 commits into
hermeticbuild:mainfrom
fionera:agent/module-source-versions
Aug 5, 2026
Merged

Honor Kbuild flags and source-version metadata#76
fionera merged 4 commits into
hermeticbuild:mainfrom
fionera:agent/module-source-versions

Conversation

@fionera

@fionera fionera commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • apply Kbuild per-source remove flags to normal, grouped, and x86 purgatory compilation while preserving purgatory's required positive flags
  • generate the .mod and .cmd source manifests used by modpost to calculate srcversion metadata
  • support MODULE_VERSION and CONFIG_MODULE_SRCVERSION_ALL, including generated Kbuild sources and explicit diagnostics for unsupported raw assembly
  • add focused analysis coverage and real Linux 6.18 module builds for both MODULE_VERSION and whole-module source versions

Closes #67
Closes #70

Testing

  • go test ./internal/cmd/modulemodinfo ./internal/cmd/sourceversioncmd
  • bazel test //internal/tests:linux_source_versions_test //internal/tests:linux_objects_fail_closed_test //:buildifier_test --config=path-mapping --nocache_test_results --test_output=errors (54 tests)
  • bazel test //:cnic_module_version_build_test //:srcversions_6_18_39_x86_64_build_test --test_output=errors

@fionera
fionera marked this pull request as ready for review August 5, 2026 01:09
@fionera
fionera merged commit ba20b93 into hermeticbuild:main Aug 5, 2026
21 checks passed
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.

MODULE_VERSION modules fail because .mod manifests are not generated x86 purgatory builds should honor Kbuild flag-removal semantics

1 participant