-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathpkg.yaml
More file actions
51 lines (50 loc) · 1.95 KB
/
pkg.yaml
File metadata and controls
51 lines (50 loc) · 1.95 KB
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
45
46
47
48
49
50
51
name: dvb-m88ds3103
variant: scratch
shell: /bin/bash
# {{ if eq .ARCH "x86_64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
dependencies:
- stage: base
- stage: dvb-cx23885
# The pkgs version for a particular release of Talos as defined in
# https://github.com/siderolabs/talos/blob/<talos version>/pkg/machinery/gendata/data/pkgs
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/kernel:{{ .BUILD_ARG_PKGS }}"
steps:
- sources:
- url: https://github.com/OpenELEC/dvb-firmware/raw/master/firmware/dvb-demod-m88ds3103.fw
destination: dvb-demod-m88ds3103.fw
sha256: 4767ab80ceba4a66315cbec2a07ae1f7ebbd19c5758fd098b932e02c9108eff9
sha512: 6db7c7e18a630cc0ac665f7baededb08b8ab475ef0d93590b01c4c165aef9165f9d8e0014d65b5f39a2f71e859d8865074e6143045b31ee5814f88239df4595d
prepare:
- |
mkdir -p /rootfs
install:
- |
mkdir -p /rootfs/usr/lib/firmware
cp dvb-demod-m88ds3103.fw /rootfs/usr/lib/firmware/dvb-demod-m88ds3103.fw
# Create modprobe.d directory and cx23885.conf for IR support
mkdir -p /rootfs/usr/local/lib/modprobe.d
echo "options cx23885 enable_885_ir=1" > /rootfs/usr/local/lib/modprobe.d/cx23885.conf
test:
- |
mkdir -p /extensions-validator-rootfs
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
dependencies:
- stage: base
steps:
- prepare:
- |
mkdir /rootfs
finalize:
- from: /pkg/manifest.yaml
to: /manifest.yaml
- from: /rootfs
to: /rootfs
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr