Kernel and Gadget snap from prebuilt binaries


Can we create Kernel and Gadget snap using prebuilt kernel and uboot image?

This is in fact what the official images (at least with UC20) use … kernel binaries always come from the deb packages in the ubuntu archive and for UC20 the RPi gadget use the u-boot binary deb from the archive as well.

snapcraft does not really care if you just cp binary files around into your snap or if you actually build them from source.

What i understood from your reply is that snapcraft is capable of generating kernel/gadget snap from binaries as well as build from source.

Do you have reference for kernel and gadget yaml reference for passing binaries?

I think you can use plugin: dump to use prebuilt binaries.

or “nil” and override-* scripts to cp things around … snapcraft is super flexible …

the official kernel snaps use awfully set up makefiles and the make plugin to do that cp actions of the binaries :slight_smile:

1 Like

I am newbie to this. But I agree it is super flexible and overloaded with features. :+1: