From 20839bac94170be7c6ce80784dc3b7221ba4f86b Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 15 Feb 2024 18:50:29 +0100 Subject: [PATCH] feat: realtek firmware fixes https://github.com/siderolabs/pkgs/issues/895 Signed-off-by: Victor Seva --- firmware/realtek/manifest.yaml | 10 ++++++++++ firmware/realtek/pkg.yaml | 23 +++++++++++++++++++++++ firmware/realtek/vars.yaml | 1 + 3 files changed, 34 insertions(+) create mode 100644 firmware/realtek/manifest.yaml create mode 100644 firmware/realtek/pkg.yaml create mode 100644 firmware/realtek/vars.yaml diff --git a/firmware/realtek/manifest.yaml b/firmware/realtek/manifest.yaml new file mode 100644 index 00000000..fddbbaf2 --- /dev/null +++ b/firmware/realtek/manifest.yaml @@ -0,0 +1,10 @@ +version: v1alpha1 +metadata: + name: realtek + version: "$VERSION" + author: Sidero Labs + description: | + This system extension provides realtek firmware binaries. + compatibility: + talos: + version: ">= v1.0.0" diff --git a/firmware/realtek/pkg.yaml b/firmware/realtek/pkg.yaml new file mode 100644 index 00000000..fc26a007 --- /dev/null +++ b/firmware/realtek/pkg.yaml @@ -0,0 +1,23 @@ +name: bnx2-bnx2x +variant: scratch +shell: /toolchain/bin/bash +dependencies: + - stage: base + - image: "{{ .BUILD_ARG_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/vars.yaml b/firmware/realtek/vars.yaml new file mode 100644 index 00000000..4d4aca48 --- /dev/null +++ b/firmware/realtek/vars.yaml @@ -0,0 +1 @@ +VERSION: "{{ .LINUX_FIRMWARE_VERSION }}"