Kindly place a condition to not include “firmware_install” for kernel 4.14 and onwards if possible. Thanks.
For now i just comment those 2 line from kernel.py…
Line #479 and i forgot the other line#…something about self.makeinstall…
Kindly place a condition to not include “firmware_install” for kernel 4.14 and onwards if possible. Thanks.
For now i just comment those 2 line from kernel.py…
Line #479 and i forgot the other line#…something about self.makeinstall…
if you are using a recent version of snapcraft(2.36+), just add
“kernel-with-firmware: false” to your snapcraft.yaml:
snapcraft.yaml:
…
parts:
kernel:
…
kernel-with-firmware: false
How about when i wan’t to include a specific folder to /lib/firmware which is located locally somewhere? any options for that? thanks.
Just add another part to your snapcraft.yaml that copies the folder in place…
just like in gadget snapcraft.yaml?
Here is an example:
$ cat snapcraft.yaml
name: foobar-kernel
version: 4.1
summary: The Ubuntu foobar kernel
description: The Ubuntu foobar kernel
grade: stable
confinement: strict
type: kernel
architectures: [armhf]
parts:
kernel:
plugin: kernel
source: .
source-branch: ubuntu-patches-4.1
source-depth: 1
source-type: git
kdefconfig: [foobar_defconfig, snappy/generic.config, snappy/security.config, snappy/systemd.config, snappy/snappy.config, snappy/containers.config]
kernel-device-trees:
- foobar-123
build-packages:
- lsb-release
- bc
- libssl-dev
- rsync
- lzop
firmware:
plugin: nil
source: https://git.foobar.com/foobar/foobar-firmware.git
install: |
cp -a firmware $SNAPCRAFT_PART_INSTALL/
$