create_data_tar: collect NOTICE and LICENSE files locally from source repo#33
Merged
Merged
Conversation
… repo
Replace the Qualcomm notice-gen API with a fully local approach:
- Add helper_scripts/notice_and_license.py:
- collect_notice(): uses 'git ls-files' to find all tracked NOTICE
and LICENSE files in the source repo and concatenates them; adds
per-file section headers (FILE: <path>) when multiple files are
found; non-fatal if no files exist (warns and skips)
- fetch_license_qcom2(): downloads LICENSE.qcom-2 from meta-qcom;
non-fatal on network failure (warns and skips)
- strip_doc_dirs(): removes usr/share/doc/<pkg>/ from extracted debs
- Update create_data_tar.py:
- Call collect_notice() instead of the notice-gen API
- Drop --_notice-project / --_notice-revision hidden args and the
resolve_git_context() plumbing that passed them into Docker
Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
fdb6dd3 to
91e6a28
Compare
abickett
approved these changes
Jul 2, 2026
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.
Generate consolidated NOTICE file with all the NOTICE and LICENSE files:
helper_scripts/notice_and_license.py:collect_notice(): usesgit ls-filesto find all tracked NOTICE and LICENSE files in the source repo and concatenates them; adds per-file section headers (FILE: <path>) when multiple files are found; non-fatal if no files existfetch_license_qcom2(): downloadsLICENSE.qcom-2from meta-qcom; non-fatal on network failure (warns and skips)strip_doc_dirs(): removesusr/share/doc/<pkg>/from extracted debs