Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dvb-si2168-firmware extension #427

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
- chelsio-drivers
- chelsio-firmware
- drbd
- dvb-si2168-firmware
- ecr-credential-provider
- fuse3
- gasket-driver
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-07-04T10:11:27Z by kres 8c8b007.
# Generated on 2024-07-16T06:34:06Z by kres ac94478.

# common variables

Expand All @@ -13,7 +13,7 @@ IMAGE_TAG ?= $(TAG)
OPERATING_SYSTEM := $(shell uname -s | tr '[:upper:]' '[:lower:]')
GOARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
REGISTRY ?= ghcr.io
USERNAME ?= siderolabs
USERNAME ?= skyssolutions
REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
Expand Down Expand Up @@ -61,6 +61,7 @@ TARGETS += btrfs
TARGETS += chelsio-drivers
TARGETS += chelsio-firmware
TARGETS += drbd
TARGETS += dvb-si2168-firmware
TARGETS += ecr-credential-provider
TARGETS += fuse3
TARGETS += gasket-driver
Expand Down
1 change: 1 addition & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vars:
DRBD_DRIVER_VERSION: 9.2.9 # update this when updating PKGS_VERSION in Makefile
ZFS_DRIVER_VERSION: 2.2.4 # update this when updating PKGS_VERSION in Makefile
UTIL_LINUX_VERSION: 2.40.1 # update this when updating PKGS_VERSION in Makefile
LINUX_DVB_FIRMWARE: 0.0.51

# renovate: datasource=git-tags extractVersion=^libtiprc-(?<version>.*)$ depName=git://linux-nfs.org/~steved/libtirpc
LIBTIRPC_VERSION: 1-3-3
Expand Down
10 changes: 10 additions & 0 deletions firmware/dvb-si2168-firmware/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: dvb-si2168-firmware
version: "$VERSION"
author: Skyler Mäntysaari
description: |
This system extension provides dvb-si2168 firmware
compatibility:
talos:
version: ">= v1.0.0"
34 changes: 34 additions & 0 deletions firmware/dvb-si2168-firmware/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: dvb-si2168-firmware
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- sources:
- url: https://github.com/OpenELEC/dvb-firmware/archive/refs/tags/{{ .LINUX_DVB_FIRMWARE }}.tar.gz
destination: dvb-firmware.tar.gz
sha256: cef3ce537d213e020af794cecf9de207e2882c375ceda39102eb6fa2580bad8d
sha512: 2372dba98083c76865f5f0f8101b1160888e03cdbe911dd08621e7b6f38e8a25ae5d56eefc21728bf65fd09ea613b53606df4021d3972b0bc9d2bd8b6cbe20a1
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
- |
tar -xvf dvb-firmware.tar.gz
rm dvb-firmware.tar.gz
install:
- |
mkdir -p /rootfs/lib/firmware
cp dvb-firmware-0.0.51/firmware/dvb-demod-si2168-02.fw /rootfs/lib/firmware
cp dvb-firmware-0.0.51/firmware/dvb-demod-si2168-b40-01.fw /rootfs/lib/firmware
cp dvb-firmware-0.0.51/firmware/v4l-cx23885-avcore-01.fw /rootfs/lib/firmware
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: /
1 change: 1 addition & 0 deletions firmware/dvb-si2168-firmware/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION: "{{ .LINUX_DVB_FIRMWARE }}"