正文
https://docs.snapcraft.io/reference/plugins/kernel
Snapcraft提供的内核编译插件
The kernel plugin refines the generic kbuild plugin to allow building kernel snaps with all the bells and whistles in one shot…
WARNING: this plugin’s API is unstable. The cross compiling support is experimental.
The following kernel specific options are provided by this plugin
:
Snapcraft提供提供以下编译选项
:
-
kernel-image-target:
(yaml object or string; default: bzImage)
the default target is bzImage and can be set to any specific
target.
For more complex cases where one would want to use
the same snapcraft.yaml to target multiple architectures a
yaml object can be used. This yaml object would be a map of
debian architecture and kernel image build targets.
-
kernel-initrd-modules:
(array of string)
list of modules to include in initrd; note that kernel snaps do not
provide the core boot logic which comes from snappy Ubuntu Core
OS snap. Include all modules you need for mounting rootfs here.
-
kernel-with-firmware:
(boolean; default: True)
use this flag to disable shipping binary firmwares
-
kernel-initrd-firmware:
(array of string)