BugLink: http://bugs.launchpad.net/bugs/1700576
This patch improves over the original snapcraft.yaml we ship in Xenial,
and makes the generated kernel snap nearly identical to the one we ship
in the store.
Among the different improvements, we have:
1) include the linux-firmware and linux-firmware-snapdragon packages in
the final snap
2) rename it to snapdragon-kernel to match the snap we have in the store
3) dynamic versioning
4) autogenerated config from debian.$DEBIAN/config/*
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
+name: dragonboard-kernel
version: null
version-script: |
. debian/debian.env
dpkg-parsechangelog -l $DEBIAN/changelog -S version
version: null
version-script: |
. debian/debian.env
dpkg-parsechangelog -l $DEBIAN/changelog -S version
-summary: The Ubuntu generic Linux kernel
-description: This Ubuntu generic Linux kernel
+summary: The Canonical snapdragon arm64 kernel
+description: The Canonical snapdragon arm64 kernel
grade: stable
confinement: strict
type: kernel
grade: stable
confinement: strict
type: kernel
plugin: kernel
source: .
source-type: git
plugin: kernel
source: .
source-type: git
- kconfigflavour: generic
+ kconfigflavour: snapdragon
kconfigs:
- CONFIG_DEBUG_INFO=n
kconfigs:
- CONFIG_DEBUG_INFO=n
+ install: |
+ cp $SNAPCRAFT_PART_INSTALL/dtbs/qcom/apq8016-sbc-snappy.dtb $SNAPCRAFT_PART_INSTALL/dtbs/qcom/apq8016-sbc.dtb
firmware:
plugin: nil
stage-packages:
- linux-firmware
firmware:
plugin: nil
stage-packages:
- linux-firmware
+ - linux-firmware-snapdragon
organize:
lib/firmware: firmware
prime:
- -usr
- -lib
organize:
lib/firmware: firmware
prime:
- -usr
- -lib
+ install: |
+ mkdir -p $SNAPCRAFT_PART_INSTALL/firmware/wlan
+ ln -s /run/macaddr0 $SNAPCRAFT_PART_INSTALL/firmware/wlan/
build-packages:
- cpio
- libssl-dev
build-packages:
- cpio
- libssl-dev