mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
synced 2025-12-18 11:21:40 +08:00
Add new Makefile target to build a deb and rpm package
The package would put all files into /lib/firmware/updates to avoid conflicting with distro packages. The package is also intentionally named to avoid conflicts with distro packages. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
5
contrib/templates/debian.changelog
Normal file
5
contrib/templates/debian.changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
{{package}} ({{version}}) unstable; urgency=medium
|
||||
|
||||
* Automated release
|
||||
|
||||
-- Linux Firmware <linux-firmware@kernel.org> {{ date }}
|
||||
18
contrib/templates/debian.control
Normal file
18
contrib/templates/debian.control
Normal file
@@ -0,0 +1,18 @@
|
||||
Source: {{package}}
|
||||
Section: unknown
|
||||
Priority: optional
|
||||
Maintainer: Linux Firmware <linux-firmware@kernel.org>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: https://gitlab.com/kernel-firmware/linux-firmware
|
||||
Vcs-Browser: https://gitlab.com/kernel-firmware/linux-firmware
|
||||
Vcs-Git: https://gitlab.com/kernel-firmware/linux-firmware
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: {{package}}
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}
|
||||
Description: Upstream snapshot of linux-firmware package
|
||||
Monolithic snapshot of upstream linux-firmware package, intended to
|
||||
to validate upstream firmware without conflicts to the distribution
|
||||
package.
|
||||
28
contrib/templates/debian.copyright
Normal file
28
contrib/templates/debian.copyright
Normal file
@@ -0,0 +1,28 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: {{ package }}
|
||||
Upstream-Contact: linux-firmware@kernel.org
|
||||
Source: https://gitlab.com/kernel-firmware/linux-firmware
|
||||
|
||||
Files: *
|
||||
Copyright: Various
|
||||
License: Various
|
||||
License for all firmware is described in /usr/share/doc/{{ package }}/WHENCE.gz
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2023 Linux Firmware <firmware@kernel.org>
|
||||
License: GPL-2+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
|
||||
31
contrib/templates/rpm.spec
Normal file
31
contrib/templates/rpm.spec
Normal file
@@ -0,0 +1,31 @@
|
||||
Name: {{ package }}
|
||||
Version: {{ version }}
|
||||
Release: 1%{?dist}
|
||||
Summary: Linux Firmware (upstream)
|
||||
License: Redistributable, no modification permitted
|
||||
URL: http://gitlab.com/kernel-firmware/linux-firmware
|
||||
Source: /dev/null
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Monolithic snapshot of upstream linux-firmware package, intended to
|
||||
to validate upstream firmware without conflicts to the distribution
|
||||
package.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%define __strip /bin/true
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/lib/firmware
|
||||
cp -aR {{ cwd }}/updates %{buildroot}/lib/firmware
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/lib/firmware/updates/*
|
||||
|
||||
%post
|
||||
dracut -fp --regenerate-all
|
||||
Reference in New Issue
Block a user