-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
44 lines (43 loc) · 1.53 KB
/
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
44
name: odroidxu4-kernel
version: 4.14.7
summary: Hardkernel odroid xu4 armhf kernel
description: odroid xu4 kernel as a snap
type: kernel
architectures:
- armhf
confinement: strict
grade: stable
parts:
kernel:
plugin: kernel
source: git://github.com/JulianLiu/linux-odroid
source-branch: odroidxu4-4.14.y
source-type: git
prepare: |
git apply ../../../001-apparmor-add-base-infastructure-for-socket-mediation.patch
git apply ../../../002-apparmor-af_unix-mediation.patch
git clone -b aufs4.14 https://github.com/sfjro/aufs4-standalone.git aufs4.14
git apply aufs4.14/aufs4-kbuild.patch
git apply aufs4.14/aufs4-base.patch
git apply aufs4.14/aufs4-mmap.patch
cp -Rp aufs4.14/Documentation/* Documentation/
cp -Rp aufs4.14/fs/* fs/
cp aufs4.14/include/uapi/linux/aufs_type.h include/uapi/linux/
mkdir -p $SNAPCRAFT_PART_INSTALL/lib/firmware
kdefconfig: [odroidxu4_defconfig, snappy/generic.config, snappy/security.config, snappy/systemd.config, snappy/snappy.config, snappy/containers.config]
kernel-initrd-modules:
- squashfs
kernel-image-target: zImage
kernel-device-trees:
- exynos5422-odroidxu4
# as of 4.14, in-kernel firmware has been removed, no firmware_install rule in Makefile
kernel-with-firmware: False
build-packages: [bc, lzop, cpio, kmod]
firmware:
plugin: nil
source: .
install: |
mkdir -p $SNAPCRAFT_PART_INSTALL/firmware
tar xf firmware.tar -C $SNAPCRAFT_PART_INSTALL/firmware
after:
- kernel