Re: [PATCH v3] scripts/package: snap-pkg target

From: Paolo Pisati
Date: Tue Dec 05 2017 - 06:31:13 EST


On Fri, Dec 1, 2017 at 1:03 PM, Riku Voipio <riku.voipio@xxxxxxxxxx> wrote:
>
> Since you are already patching snapcraft for this, why not embed the
> whole support in snapcraft? Eg something like snapcraft --kernel
> /path/to/kernel
>
> The key advantage you'll get is being able to support old kernel versions too.

There's a lot more you can do inside a snapcraft.yaml (bundle external
files, override .config options, run pre or post scripts, etc) but by
embedding everything inside the kernel/kbuild plugins
you would loose all these options, and people would loose visibility
of these opportunities.

Besides, snapcraft requires a snapcraft.yaml by design, and i can't
remove that (such a change would never be accepted).
--
bye,
p.