diff --git a/.kres.yaml b/.kres.yaml index ddb2d2b0..5dfae724 100644 --- a/.kres.yaml +++ b/.kres.yaml @@ -26,6 +26,7 @@ spec: - nvidia-open-gpu-kernel-modules - qemu-guest-agent - qlogic-firmware + - realtek-firmware - stargz-snapshotter - tailscale - thunderbolt diff --git a/Makefile b/Makefile index e0742556..5a49f99b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2024-02-21T10:59:05Z by kres latest. +# Generated on 2024-02-21T11:00:16Z by kres latest. # common variables @@ -73,6 +73,7 @@ TARGETS += nvidia-fabricmanager TARGETS += nvidia-open-gpu-kernel-modules TARGETS += qemu-guest-agent TARGETS += qlogic-firmware +TARGETS += realtek-firmware TARGETS += stargz-snapshotter TARGETS += tailscale TARGETS += thunderbolt diff --git a/README.md b/README.md index b125d3b9..3e431ad2 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ cosign verify --certificate-identity-regexp '@siderolabs\.com$' --certificate-oi | [intel-ice-firmware](firmware/intel-ice-firmware/) | [ghcr.io/siderolabs/intel-ice-firmware](https://github.com/siderolabs/extensions/pkgs/container/intel-ice-firmware) | Intel ICE NIC firmware | `linux firmware version` | | [intel-ucode](firmware/intel-ucode/) | [ghcr.io/siderolabs/intel-ucode](https://github.com/siderolabs/extensions/pkgs/container/intel-ucode) | Intel CPU microcode updates | `upstream version` | | [qlogic-firmware](firmware/qlogic-firmware/) | [ghcr.io/siderolabs/qlogic-firmware](https://github.com/siderolabs/extensions/pkgs/container/qlogic-firmware) | Qlogic firmware | `linux firmware version` | +| [realtek-firmware](firmware/realtek-firmware/) | [ghcr.io/siderolabs/realtek-firmware](https://github.com/siderolabs/extensions/pkgs/container/realtek-firmware) | Realtek firmware | `linux firmware version` | ### Drivers diff --git a/firmware/realtek-firmware/manifest.yaml b/firmware/realtek-firmware/manifest.yaml new file mode 100644 index 00000000..1eabb86c --- /dev/null +++ b/firmware/realtek-firmware/manifest.yaml @@ -0,0 +1,10 @@ +version: v1alpha1 +metadata: + name: realtek-firmware + version: "$VERSION" + author: Sidero Labs + description: | + This system extension provides realtek firmware binaries. + compatibility: + talos: + version: ">= v1.0.0" diff --git a/firmware/realtek-firmware/pkg.yaml b/firmware/realtek-firmware/pkg.yaml new file mode 100644 index 00000000..029104ac --- /dev/null +++ b/firmware/realtek-firmware/pkg.yaml @@ -0,0 +1,23 @@ +name: realtek-firmware +variant: scratch +shell: /toolchain/bin/bash +dependencies: + - stage: base + - image: "{{ .PKGS_PREFIX }}/linux-firmware:{{ .BUILD_ARG_PKGS }}" +steps: + - prepare: + - | + sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml + install: + - | + mkdir -p /rootfs/lib/firmware + cp -R -p /lib/firmware/RTL8192E /rootfs/lib/firmware + cp -R -p /lib/firmware/rtl_bt /rootfs/lib/firmware + cp -R -p /lib/firmware/rtl_nic /rootfs/lib/firmware + cp -R -p /lib/firmware/rtlwifi /rootfs/lib/firmware + cp -R -p /lib/firmware/rtw88 /rootfs/lib/firmware +finalize: + - from: /rootfs + to: /rootfs + - from: /pkg/manifest.yaml + to: / diff --git a/firmware/realtek-firmware/vars.yaml b/firmware/realtek-firmware/vars.yaml new file mode 100644 index 00000000..4d4aca48 --- /dev/null +++ b/firmware/realtek-firmware/vars.yaml @@ -0,0 +1 @@ +VERSION: "{{ .LINUX_FIRMWARE_VERSION }}"