Repository navigation
prepare-source.sh: resolve in-tree kernel config fragments - #72
Merged
Bjordis Collaku (bjordiscollaku) merged 1 commit intoAug 27, 2026
Merged
Bjordis Collaku (bjordiscollaku) merged 1 commit into
Bjordis Collaku (bjordiscollaku) merged 1 commit into
Conversation
Config fragments were resolvable only from debian/config-available/. Some fragments ship with the kernel source instead, under arch/arm64/configs/, and are versioned with the kernel they target. qcom_debug.config is the case that prompted this: its options track the kernel, so vendoring a copy into this repository would reintroduce the drift that issue #65 addressed. Accept an "intree:" prefix in --kernel-config. A bare name continues to resolve to debian/config-available/<name>.config; "intree:<name>" resolves to arch/arm64/configs/<name>.config in the kernel source. Both are copied into debian/config/ before prepare runs, so debian/rules is unchanged. A missing in-tree fragment fails the build and lists what the kernel tree provides, matching the existing behaviour for packaging fragments. Two entries resolving to the same filename are rejected rather than silently overwriting one another. Existing --kernel-config values are unaffected. Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
Christopher Obbard (obbardc)
approved these changes
Aug 27, 2026
Bjordis Collaku (bjordiscollaku)
merged commit Aug 27, 2026
6069a08
into
qcom/debian/latest
3 checks passed
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.
Summary
Adds an
intree:prefix to--kernel-configso config fragments that ship with the kernel source can be activated without copying them into this repository.This is the enabling change for #69. It is intentionally separate from the matrix change so it can land first: the matrix entry that uses
intree:qcom_debugwill fail on any revision that does not understand the prefix.Problem
--kernel-configresolved names only againstdebian/config-available/. The debug fragment that #69 needs,qcom_debug.config, lives in the kernel source atarch/arm64/configs/qcom_debug.config:Those options track the kernel, so vendoring a copy into
debian/config-available/would reintroduce exactly the drift that #65 dealt with.Change
A bare name resolves as before to
debian/config-available/<name>.config. Anintree:prefix resolves toarch/arm64/configs/<name>.configin the kernel source:Both kinds are copied into
debian/config/beforedebian/rules prepareruns, sodebian/rulesneeds no change: it already globsdebian/config/*.configin sorted order.Error handling matches the existing behaviour for packaging fragments:
Validation
Exercised against a fixture kernel tree:
debian/config-availableintree:qcom_debugintree:does_not_existdockerandintree:dockertogetherbash -nandshellcheck -S errorare clean on both modified scripts.Compatibility
No existing
--kernel-configvalue changes behaviour: every current matrix row uses bare names only.debian/rulesis untouched.Refs #69.