-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packages: add pciutils to packages in release
This adds the pciutils package to the release package dependencies so that lspci is available for debugging devices on Bottlerocket images. Signed-off-by: Matthew Yeazel <[email protected]>
- Loading branch information
Showing
7 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "pciutils" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
build = "../build.rs" | ||
|
||
[lib] | ||
path = "../packages.rs" | ||
|
||
[package.metadata.build-package] | ||
releases-url = "https://mj.ucw.cz/download/linux/pci/" | ||
|
||
[[package.metadata.build-package.external-files]] | ||
url = "https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.13.0.tar.gz" | ||
sha512 = "39cf4141c87c9a39fb42ec7a2412525f4283c62a1d1aa3533eb92bae4c59d3beb9a2ab1a9fcfe89b1f6cb8f0a011ef2f32fbed3111d357ce43d9569b3d0253d9" | ||
|
||
[build-dependencies] | ||
glibc = { path = "../glibc" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
%global debug_package %{nil} | ||
%global __strip %{_bindir}/true | ||
|
||
Name: %{_cross_os}pciutils | ||
Version: 3.13.0 | ||
Release: 1%{?dist} | ||
Summary: PCI bus related utilities | ||
License: GPL-2.0-only | ||
URL: https://www.kernel.org/pub/software/utils/pciutils/ | ||
Source0: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/pciutils-%{version}.tar.gz | ||
BuildRequires: %{_cross_os}glibc-devel | ||
|
||
%description | ||
%{summary}. | ||
|
||
%prep | ||
%autosetup -n pciutils-%{version} -p1 | ||
|
||
%global pciutils_make \ | ||
make\\\ | ||
CROSS_COMPILE="%{_cross_target}-"\\\ | ||
HOST="%{_cross_arch}-linux"\\\ | ||
OPT="%{_cross_cflags}"\\\ | ||
LDFLAGS="%{_cross_ldflags}"\\\ | ||
PREFIX="%{_cross_prefix}"\\\ | ||
LIBDIR="%{_cross_libdir}"\\\ | ||
MANDIR="%{_cross_mandir}"\\\ | ||
DESTDIR="%{buildroot}"\\\ | ||
STRIP=""\\\ | ||
SHARED=no\\\ | ||
DNS=no\\\ | ||
HWDB=no\\\ | ||
LIBKMOD=no\\\ | ||
ZLIB=no\\\ | ||
%{nil} | ||
|
||
%build | ||
%pciutils_make | ||
|
||
%install | ||
%pciutils_make install | ||
|
||
%files | ||
%license COPYING | ||
%{_cross_attribution_file} | ||
%{_cross_bindir}/lspci | ||
%{_cross_datadir}/pci.ids | ||
%exclude %{_cross_sbindir}/pcilmr | ||
%exclude %{_cross_sbindir}/setpci | ||
%exclude %{_cross_sbindir}/update-pciids | ||
%exclude %{_cross_mandir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters