Cross compile kernel snap when using snapcraft

Hi Guys,

I’m building kernel snap with snapcraft 2.31 for bubblegum96 board
which is ARM64 arch.
The command “snapcraft --target-arch arm64 snap” is not working or what?
It started seaching kernel config file in arch/x86/configs/ instead of
arch/arm64/configs/.
And the error was like
"Couldn’t find default configuration
“arch/x86/configs/bubblegum_linux_defconfig”
Could anyone help?
My repo is on github. https://github.com/blimjoe/Bubblegum96-Snappy

Thanks

1 Like

It’s a known issue reported early[1], which will be fixed in 2.33[2].
At the meant time, please use "snapcraft snap --target-arch arm64"

[1] Kernel cross compile problem (missing snapcraft target-arch options) - Kernel cross compile problem (missing snapcraft target-arch options)
[2] https://github.com/snapcore/snapcraft/pull/1378