kernel plugin: pick the correct kernel-image-target per architecture
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
Different kernel architecture needs different kernel-
ARCH=arm:
...
Architecture specific targets (arm):
* zImage - Compressed kernel image (arch/arm/
Image - Uncompressed kernel image (arch/arm/
...
ARCH=arm64:
...
Architecture specific targets (arm64):
* Image.gz - Compressed kernel image (arch/arm64/
Image - Uncompressed kernel image (arch/arm64/
...
ARCH=powerpc:
...
Architecture specific targets (powerpc):
* zImage - Build default images selected by kernel config
zImage.* - Compressed kernel image (arch/powerpc/
...
etcetc
At the moment snapcraft.
case ARCH:
amd64)
target=bzImage
arm)
target=zImage
arm64)
target=Image
...
etcetc
...
esac
or a callback mechanism (as we exploited in kdefconfig to support multiple archs/configs):
...
kdefconfig: ['--makefile=
...
$ cat debian/snapcraft.mk
ifeq ($(ARCH),)
arch := $(shell uname -m | sed -e s/i.86/i386/ -e s/x86_64/amd64/ \
-e s/arm.*/armhf/ -e s/s390/s390x/ -e s/ppc.*/powerpc/ \
-e s/aarch64.*/arm64/ )
else ifeq ($(ARCH),arm)
arch := armhf
else
arch := $(ARCH)
endif
config:
cat debian.
The entire snapcraft.yaml that we would like to ship with the generic Ubuntu kernel, is attached below.
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/snapcore/ snapcraft/ pull/689