]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - snapcraft.yaml
UBUNTU: snapcraft.yaml: various improvements
[mirror_ubuntu-artful-kernel.git] / snapcraft.yaml
index e38cfe769938d50c1f07ecabdf51b9da81603bef..8aeb17fa09d59d6667b35434cc0884dc158c0551 100644 (file)
@@ -1,10 +1,10 @@
-name: pc-kernel
+name: dragonboard-kernel
 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
@@ -14,18 +14,24 @@ parts:
     plugin: kernel
     source: .
     source-type: git
-    kconfigflavour: generic
+    kconfigflavour: snapdragon
     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
+      - linux-firmware-snapdragon
     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