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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Ondrej Kubik

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 <[hidden email]>

---

 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:

-- 



--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team