I read many posts on forum, but I do not understand how to make multi arch snap with make plugin. I use make plugin and C/C++ project, my snapcraft.yaml
includes these lines:
architectures:
- build-on: amd64
run-on: [armhf, arm64]
but when if try to detect target build arch (SNAPCRAFT_ARCH_TRIPLET/SNAP_ARCH_TRIPLET vars) I got always x86_64-linux-gnu
. I tried snapcraft --debug --target-arch=armhf
and simple snapcraft --debug
.
- How to set target arch for make plugin and detect arch inside
snapcraft.yaml
? - How to install special cross-compile for cross build inside
snapcraft.yaml
? - Is snapcraft support cross-compile by my scenario or not?
I am completely confused and cannot understand how to achive this.
Thanks!