forked from ogra1/sabrelite-gadget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crossbuild-snapcraft.yaml
43 lines (41 loc) · 1006 Bytes
/
crossbuild-snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: sabrelite
version: 16-0.1
summary: Sabre Lite MX6
description: |
Bootloader files and partitoning data to create a
bootable Ubuntu Core image for the Sabre Lite MX6 board.
type: gadget
architectures:
- armhf
confinement: strict
grade: stable
parts:
uboot:
plugin: make
source: git://git.denx.de/u-boot.git
source-branch: v2017.01
artifacts: [u-boot.imx]
prepare: |
git apply ../../../uboot.patch
make mx6qsabrelite_config
build: |
CROSS_COMPILE=arm-linux-gnueabi- make
install: |
cp u-boot.imx $SNAPCRAFT_PART_INSTALL/
tools/mkenvimage -r -s 131072 -o $SNAPCRAFT_PART_INSTALL/uboot.env ../../../uboot.env.in
cd $SNAPCRAFT_PART_INSTALL/; ln -s uboot.env uboot.conf
build-packages:
- libpython2.7-dev
- build-essential
- bc
- gcc-arm-linux-gnueabi
slots:
i2c-0:
interface: i2c
path: /dev/i2c-0
i2c-1:
interface: i2c
path: /dev/i2c-1
i2c-2:
interface: i2c
path: /dev/i2c-2