[SRU] [Xenial] [snapdragon] [ PATCH 2/2 ] UBUNTU: SAUCE: snapcraft: updating scriptlets syntax

Ondrej Kubik ondrej.kubik at canonical.com
Tue Jun 26 17:17:57 UTC 2018


BugLink: https://bugs.launchpad.net/bugs/1776723


Current scriptlet syntax has been deprecated in favour of new syntax

Updating snapcraft.yaml to support this change


Signed-off-by: Ondrej Kubik <ondrej.kubik at canonical.com>

---

 snapcraft.yaml | 5 +++--

 1 file changed, 3 insertions(+), 2 deletions(-)


diff --git a/snapcraft.yaml b/snapcraft.yaml

index ad929ea..f06c653 100644

--- a/snapcraft.yaml

+++ b/snapcraft.yaml

@@ -18,7 +18,8 @@ parts:

     kconfigs:

       - CONFIG_DEBUG_INFO=n

     kernel-image-target: Image

-    install: |

+    override-build: |

+      snapcraftctl build

       cp $SNAPCRAFT_PART_INSTALL/dtbs/qcom/apq8016-sbc-snappy.dtb
$SNAPCRAFT_PART_INSTALL/dtbs/qcom/apq8016-sbc.dtb

       cp $SNAPCRAFT_PART_INSTALL/dtbs/qcom/*.dtb
$SNAPCRAFT_PART_INSTALL/dtbs/

   firmware:

@@ -35,7 +36,7 @@ parts:

     prime:

       - -usr

       - -lib

-    install: |

+    override-build: |

       mkdir -p $SNAPCRAFT_PART_INSTALL/firmware/wlan

       ln -s /run/macaddr0 $SNAPCRAFT_PART_INSTALL/firmware/wlan/

     build-packages:

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20180626/1c90f90f/attachment.html>


More information about the kernel-team mailing list