From 0fce61bc229cad71c5449b5b464de2060c9c84ae Mon Sep 17 00:00:00 2001 From: liujie_answer Date: Fri, 19 Jun 2026 07:29:36 +0800 Subject: [PATCH] oc: net: add linux-firmware-linkdata sub-package Signed-off-by: liujie_answer --- 95-sxe2-firmware.conf | 1 + linux-firmware.spec | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 95-sxe2-firmware.conf diff --git a/95-sxe2-firmware.conf b/95-sxe2-firmware.conf new file mode 100644 index 0000000..adb906d --- /dev/null +++ b/95-sxe2-firmware.conf @@ -0,0 +1 @@ +install_items+=" /lib/firmware/sxe2/ddp/sxe2.cfg " diff --git a/linux-firmware.spec b/linux-firmware.spec index 8144cbc..d7ef006 100644 --- a/linux-firmware.spec +++ b/linux-firmware.spec @@ -5,11 +5,12 @@ Summary: Firmware files used by the Linux kernel Name: linux-firmware Version: 20250917 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted URL: http://www.kernel.org/ Source0: https://www.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.xz Source1: sxe2.cfg +Source2: 95-sxe2-firmware.conf Patch0001: https://gitlab.com/kernel-firmware/linux-firmware/-/commit/3baa8edc3517e2295199266b2e363989b325bd58.patch BuildArch: noarch @@ -379,6 +380,7 @@ This package contains the firmware files required for the SXE2 network device. %files -n linkdata-sxe2-firmware %{_firmwarepath}/sxe2/ddp/sxe2.cfg +/usr/lib/dracut/dracut.conf.d/95-sxe2-firmware.conf %prep %autosetup -S git -p1 @@ -393,7 +395,9 @@ make DESTDIR=%{buildroot} FIRMWAREDIR=%{_firmwarepath} install-xz SXE2_CFG_DIR=%{buildroot}%{_firmwarepath}/sxe2/ddp mkdir -p ${SXE2_CFG_DIR} -cp -f %{_sourcedir}/sxe2.cfg ${SXE2_CFG_DIR} +install -m 644 %{SOURCE1} ${SXE2_CFG_DIR} +mkdir -p %{buildroot}/usr/lib/dracut/dracut.conf.d/ +install -m 644 %{SOURCE2} %{buildroot}/usr/lib/dracut/dracut.conf.d/95-sxe2-firmware.conf pushd %{buildroot}%{_firmwarepath} rm -rf ess korg sb16 yamaha @@ -793,6 +797,10 @@ end %{_firmwarepath}/v4l-cx2* %changelog +* Wed Jun 17 2026 liujie_answer - 20250917-4 +- [Type] bugfix +- [DESC] linkdata: Add linkdata linux-firmware-linkdata sub-package conf + * Tue Apr 28 2026 liujie_answer - 20250917-3 - linkdata: Add linkdata linux-firmware-linkdata sub-package support - This configuration file is from Linkdata, supporting Linkdata Ethernet Controller advanced feature configuration. -- Gitee