Kernel and Gadget snap from prebuilt binaries

Hi,

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?