prototype snap components building
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
canonical-kernel-snaps |
In Progress
|
Undecided
|
Jesse Sung |
Bug Description
prototype snap components building with snapcraft from latest/
examples are available at https:/
the goal is to fork https:/
and add components
- iwlwifi component that stages .ko from linux-modules-
- ipu6 component that stages .ko from linux-modules-
- nvidia comonenets that stages .o files an firmware from linux-modules-
Changed in canonical-kernel-snaps: | |
assignee: | nobody → Jesse Sung (wenchien) |
As a quick test, I tried with the following changes and found that the component file contains only the component.yaml file:
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -11,6 +11,13 @@ architectures:
- build-on: [amd64]
- build-on: [arm64]
+components: packages: uc-generic- hwe-22. 04 iwlwifi- generic- hwe-22. 04 6.5.0-15- generic/ ubuntu/ iwlwifi: (component/ iwlwifi) /modules/ 6.5.0-15- generic/ ubuntu/ iwlwifi
lib/firmware: firmware
usr/share/ doc: doc
+ iwlwifi:
+ type: test
+ summary: iwlwifi modules
+ description: iwlwifi modules
+ version: "0.1"
+
parts:
kernel:
# Need .ko.zst support from u23.10 for backport
@@ -25,8 +32,10 @@ parts:
- kmod
stage-
- linux-image-
+ - linux-modules-
organize:
boot: ./
+ lib/modules/
lib/modules: modules
The line in organize needs to be 6.5.0-15- generic/ ubuntu/ iwlwifi: (component/ iwlwifi) /modules/ 6.5.0-15- generic/ ubuntu/ iwlwifi
modules/
to make the files actually go into the component file.