-
Notifications
You must be signed in to change notification settings - Fork 657
tests: enable some nested tests by setting up proper kernel declarations on UC26 #16452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ernestl
merged 4 commits into
canonical:master
from
andrewphelpsj:kmod-component-spread-fix
Feb 2, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d4f09f4
t/l/t/build_kernel_with_comps.sh: work around bug in current pc-kerne…
andrewphelpsj ad39e79
tests: enable some nested tests by setting up proper kernel declarati…
andrewphelpsj 8a559c8
tests: always add extra driver lib decls when repacking kernel
andrewphelpsj 69cb522
t/l/prepare.sh: change destination of systemd dropins for core26
andrewphelpsj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "format": "5", | ||
| "slots": { | ||
| "cuda-driver-libs": { | ||
| "allow-installation": "true" | ||
| }, | ||
| "egl-driver-libs": { | ||
| "allow-installation": "true" | ||
| }, | ||
| "gbm-driver-libs": { | ||
| "allow-installation": "true" | ||
| }, | ||
| "opengl-driver-libs": { | ||
| "allow-installation": "true" | ||
| }, | ||
| "opengles-driver-libs": { | ||
| "allow-installation": "true" | ||
| }, | ||
| "vulkan-driver-libs": { | ||
| "allow-installation": "true" | ||
| }, | ||
| "nvidia-video-driver-libs": { | ||
| "allow-installation": "true" | ||
| } | ||
| } | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,16 +39,19 @@ description: kernel component for testing purposes | |
| EOF | ||
| # Replace _ or - with [_-], as it can be any of these | ||
| glob_mod_name=$(printf '%s' "$mod_name" | sed -r 's/[-_]/[-_]/g') | ||
| module_path=$(find kernel -name "${glob_mod_name}.ko*") | ||
| mapfile -t module_path <<< "$module_path" | ||
| cp --update=none "${module_path[@]}" "$comp_ko_dir" | ||
| # TODO: search only in kernel/modules to avoid duplicates (pc-kernel in | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Welcome to replace my previous workaround with this. |
||
| # 26/edge has both modules/ and lib/modules/). remove this hack once | ||
| # the kernel snap is fixed | ||
| module_path=$(find kernel/modules -name "${glob_mod_name}.ko*") | ||
| cp "$module_path" "$comp_ko_dir" | ||
| snap pack --filename="${kernel_name}+${comp_name}".comp "$comp_name" | ||
|
|
||
| # Create kernel without the kernel module | ||
| rm "${module_path[@]}" | ||
| # depmod wants a lib subdir | ||
| mkdir -p kernel/lib | ||
| ln -s ../modules kernel/lib/modules | ||
| rm "$module_path" | ||
| if [ ! -e kernel/lib/modules ]; then | ||
|
andrewphelpsj marked this conversation as resolved.
andrewphelpsj marked this conversation as resolved.
|
||
| mkdir -p kernel/lib | ||
| ln -s ../modules kernel/lib/modules | ||
| fi | ||
| depmod -b kernel/ "$kern_ver" | ||
| rm "${kernel_snap_file}" | ||
| # append component meta-information | ||
|
|
||
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth including also
nvidia-video-driver-libs, they will eventually use it and it is harmless to put it now in our declaration.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this, and made it the default when repacking a kernel.