|
| 1 | +name: dvb-usb-dvbsky |
| 2 | +variant: scratch |
| 3 | +shell: /bin/bash |
| 4 | +dependencies: |
| 5 | + - stage: base |
| 6 | + - stage: v4l-uvc-drivers |
| 7 | + # The pkgs version for a particular release of Talos as defined in |
| 8 | + # https://github.com/siderolabs/talos/blob/<talos version>/pkg/machinery/gendata/data/pkgs |
| 9 | + - image: "{{ .BUILD_ARG_PKGS_PREFIX }}/kernel:{{ .BUILD_ARG_PKGS }}" |
| 10 | +steps: |
| 11 | + - sources: |
| 12 | + - url: https://raw.githubusercontent.com/osmc/dvb-firmware-osmc/master/dvb-demod-si2168-d60-01.fw |
| 13 | + destination: dvb-demod-si2168-d60-01.fw |
| 14 | + sha256: 753e338163d10244837a2fa4ad1258e1f270e3040e21ffa574609814943437c9 |
| 15 | + sha512: 25d3f6ac7f194b39b7cde7a21abd4acea2fe62fd86e2329010d679537fac83f4b0ef40cb3fafe110bc1f922941a14f111b15c1142267ac69b779a8c093f7627d |
| 16 | + - url: https://raw.githubusercontent.com/osmc/dvb-firmware-osmc/master/dvb-tuner-si2141-a10-01.fw |
| 17 | + destination: dvb-tuner-si2141-a10-01.fw |
| 18 | + sha256: 29cf0b0d20a3040f8e59b0ed548e9d3d54eda0b2d2869708f7bcee9d7cbf7e34 |
| 19 | + sha512: cbcbc2b9b5b1735e049f2dd57b01fed153a1ed173054ef324ce779f0ac98cbead7bc3883d3f69c2e4e4339a15a13ebaec2168c31e3a1c0982ecd86d9640279b9 |
| 20 | + prepare: |
| 21 | + - | |
| 22 | + mkdir -p /rootfs |
| 23 | + # {{ if eq .ARCH "x86_64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr |
| 24 | + install: |
| 25 | + - | |
| 26 | + export KERNELRELEASE=$(find /usr/lib/modules -type d -name "*-talos" -exec basename {} \+) |
| 27 | +
|
| 28 | + mkdir -p /rootfs |
| 29 | +
|
| 30 | + xargs -a /pkg/files/modules.txt -I {} install -D /usr/lib/modules/${KERNELRELEASE}/{} /rootfs/usr/lib/modules/${KERNELRELEASE}/{} |
| 31 | + depmod -b /rootfs/usr ${KERNELRELEASE} |
| 32 | + - | |
| 33 | + mkdir -p /rootfs/usr/local/lib/modprobe.d |
| 34 | + cp /pkg/files/dvb.conf /rootfs/usr/local/lib/modprobe.d/dvb-usb-dvbsky.conf |
| 35 | + - | |
| 36 | + mkdir -p /rootfs/usr/lib/firmware |
| 37 | + cp dvb-demod-si2168-d60-01.fw /rootfs/usr/lib/firmware |
| 38 | + cp dvb-tuner-si2141-a10-01.fw /rootfs/usr/lib/firmware |
| 39 | + test: |
| 40 | + - | |
| 41 | + # https://www.kernel.org/doc/html/v4.15/admin-guide/module-signing.html#signed-modules-and-stripping |
| 42 | + find /rootfs/usr/lib/modules -name '*.ko' -exec grep -FL '~Module signature appended~' {} \+ |
| 43 | + - | |
| 44 | + mkdir -p /extensions-validator-rootfs |
| 45 | + cp -r /rootfs/ /extensions-validator-rootfs/rootfs |
| 46 | + cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml |
| 47 | + /extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}" |
| 48 | + # {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr |
| 49 | +finalize: |
| 50 | + - from: /rootfs |
| 51 | + to: /rootfs |
| 52 | + - from: /pkg/manifest.yaml |
| 53 | + to: / |
0 commit comments