Skip to content

Commit

Permalink
feat(dvb-si2168): add dvb-si2168-firmware extension
Browse files Browse the repository at this point in the history
Signed-off-by: Skyler Mäntysaari <[email protected]>
  • Loading branch information
samip5 committed Jul 14, 2024
1 parent b48d3a6 commit d805dcb
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ TARGETS += vmtoolsd-guest-agent
TARGETS += wasmedge
TARGETS += xen-guest-agent
TARGETS += zfs
TARGETS += dvb-si2168-firmware
NONFREE_TARGETS = nonfree-kmod-nvidia

# help menu

export define HELP_MENU_HEADER
define HELP_MENU_HEADER
# Getting Started

To build this project, you must have the following installed:
Expand Down Expand Up @@ -143,6 +144,8 @@ respectively.

endef

export HELP_MENU_HEADER

all: $(TARGETS) ## Builds all targets defined.

$(ARTIFACTS): ## Creates artifacts directory.
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"
33 changes: 33 additions & 0 deletions firmware/dvb-si2168-firmware/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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
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 }}"

0 comments on commit d805dcb

Please sign in to comment.