Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/rpm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install tools and libraries
run: |
dnf install -y epel-release
dnf install -y mock git rust cargo zstd which
dnf install -y mock git zstd which
useradd -m -G mock mockbuild

- name: Checkout code
Expand All @@ -44,10 +44,6 @@ jobs:
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
./ciq/SOURCES/generate_tarball.sh

- name: Bundle bindgen
if: matrix.el_version == 9
run: ./ciq/SOURCES/bundle_bindgen.sh ./ciq/SOURCES

- name: Build SRPM
run: |
mkdir -p ../build_files
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,3 @@ sphinx_*/

# Rust analyzer configuration
/rust-project.json

# bindgen generated SOURCES
ciq/SOURCES/bindgen-cli/
ciq/SOURCES/bindgen-cli.crate
50 changes: 0 additions & 50 deletions ciq/SOURCES/bundle_bindgen.sh

This file was deleted.

22 changes: 2 additions & 20 deletions ciq/SPECS/kernel-clk6.18.spec
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,8 @@ BuildRequires: zstd
%endif
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc, bison, flex, gcc-c++
BuildRequires: rust, rust-src, rustfmt, clippy
%if 0%{?rhel} >= 10
# bindgen-cli is packaged in CRB on el9 (since Rocky 9.8) and el10
BuildRequires: bindgen-cli
%endif
BuildRequires: net-tools, hostname, bc, elfutils-devel
BuildRequires: dwarves
BuildRequires: python3
Expand Down Expand Up @@ -1176,11 +1175,6 @@ Source3002: Patchlist.changelog

Source4000: README.rst

# Bundled bindgen-cli source (not packaged in Rocky 9)
%if 0%{?rhel} < 10
Source5000: bindgen-cli.tar.gz
%endif

## Patches needed for building this package

%if !%{nopatches}
Expand Down Expand Up @@ -2296,20 +2290,8 @@ cp_vmlinux()
%define build_hostldflags %{?build_ldflags}
%endif

%if 0%{?rhel} < 10
# Build bundled bindgen and add to PATH (not packaged in Rocky 9)
%{log_msg "Build bundled bindgen"}
BINDGEN_DIR=$RPM_BUILD_ROOT/bindgen
BINDGEN_BUNDLE_NAME=$(basename %{SOURCE5000} .tar.gz)
mkdir -p $BINDGEN_DIR
tar -xf %{SOURCE5000} -C $BINDGEN_DIR
pushd $BINDGEN_DIR/$BINDGEN_BUNDLE_NAME
cargo build --offline --frozen --release
export PATH="$PWD/target/release:$PATH"
popd
%else
# bindgen-cli is provided by the buildroot's system packages (CRB)
%{log_msg "Using system bindgen"}
%endif
bindgen --version

%define make %{__make} %{?cross_opts} %{?make_opts} HOSTCFLAGS="%{?build_hostcflags}" HOSTLDFLAGS="%{?build_hostldflags}"
Expand Down
Loading