Fix PID 0159 device name from imx93 to imx91
[mfgtools.git] / snap / snapcraft.yaml
blobecb2ee4bfbf74d28c6e57139e6041674d7f9ae44
1 %YAML 1.1
2 ---
3 # Snapcraft Recipe for uuu (Universal Update Utility)
4 # ------------------------------
5 # This file is in the YAML data serialization format:
6 # http://yaml.org
7 # For the spec. of writing this file refer the following documentation:
8 # * The snapcraft format
9 #   https://docs.snapcraft.io/the-snapcraft-format/8337
10 # * Snap Documentation
11 #   https://docs.snapcraft.io
12 # * Topics under the doc category in the Snapcraft Forum
13 #   https://forum.snapcraft.io/c/doc
14 # For support refer to the snapcraft section in the Snapcraft Forum:
15 # https://forum.snapcraft.io/c/snapcraft
17 # Copyright (c) 2017 Snapcrafters
20 name: universal-update-utility
21 title: Universal Update Utility - UUU
22 summary: Freescale/NXP I.MX Chip image deploy tools
23 description: |
24   **Key features**
26   - The real cross platform. Linux, Windows, MacOS(not test yet)
27   - Multi devices program support
28   - Daemon mode support
29   - Few depedencies (only libusb, zlibc, libbz2)
30   - Firmware (uboot/kernel) uses WCID to auto load the winusb driver
31     on the Windows side. Windows7 users need to install the winusb driver
32     from [https://zadig.akeo.ie/](https://zadig.akeo.ie/) Windows10 will
33     install the driver automatically.
35   **Search keywords**
37   mfgtools, uuu, nxp, nxpmicro
38 icon: snap/gui/universal-update-utility.png
39 license: BSD-3-Clause
40 adopt-info: main
41 assumes:
42   - command-chain
43   # required by the `snapctl is-connected` command
44   - snapd2.43
45 base: core18
46 confinement: strict
47 grade: stable
49 parts:
50   # Launcher programs to fix problems at runtime
51   launchers:
52     source: snap/local/launchers
53     plugin: dump
54     organize:
55       '*': bin/
56     stage:
57       - -bin/README.*
59   # Bash completion snippets
60   bash-completion:
61     source: snap/local/bash-completion
62     plugin: dump
63     organize:
64       '*': bash-completion/
66   # Check out the tagged release revision if it isn't promoted to the stable channel
67   # https://forum.snapcraft.io/t/selective-checkout-check-out-the-tagged-release-revision-if-it-isnt-promoted-to-the-stable-channel/10617
68   selective-checkout:
69     source: https://github.com/Lin-Buo-Ren/selective-checkout.git
70     source-tag: v2.0.2
71     plugin: dump
72     build-packages:
73       - curl
74       - jq
75       - sed
77       - git
78     stage:
79       - scriptlets/selective-checkout
80     prime:
81       - -*
83   main:
84     after:
85       - selective-checkout
87     source: .
88     source-depth: 50
89     override-pull: |
90       set -o nounset
92       snapcraftctl pull
94       "${SNAPCRAFT_STAGE}"/scriptlets/selective-checkout \
95         --release-tag-pattern='uuu_[[:digit:]]+(\.[[:digit:]]+){2}' \
96         --release-tag-prefix=uuu_
97     build-snaps:
98       - cmake
99     build-packages:
100       # CMake shipped in Ubuntu 18.04(3.10.2) is too old
101       #- cmake
102       - g++
103       - libbz2-dev
104       - libzstd-dev
105       - libusb-1.0-0-dev
106       - libssl-dev
107       - zlib1g-dev
108       - pkg-config
109     plugin: cmake
110     stage-packages:
111       - libbz2-1.0
112       - libusb-1.0-0
113       - libssl1.0.0
114     filesets:
115       docs-copyright:
116       - usr/share/doc/*/copyright
118       executables:
119       - bin/*
121       library-shared:
122       - lib/**/*.so*
123     prime:
124       - $docs-copyright
125       - $executables
126       - $library-shared
128 apps:
129   universal-update-utility:
130     adapter: full
131     command: bin/uuu
132     command-chain:
133       - bin/universal-update-utility-launch
134     completer: bash-completion/universal-update-utility
135     environment:
136       # Snap runtime only ship C.UTF-8 locale
137       LANG: C.UTF-8
138       LC_ALL: C.UTF-8
140 plugs:
141   # Regular files access
142   home:
143     # Allow reading the SUDO_USER's uuu script when run as root
144     # (by default only scripts under root's home dir is readable)
145     read: all
146   removable-media: # Non-A/C
148   # NOTE: This only lifts the snapd side of confinement, the user still
149   #       require classic read/write access to the target device node
150   raw-usb:
152   network-bind: