# Default definitions. These can be overridden by passing arguments to rpmbuild # e.g., rpmbuild --define "package_version 6.12.0-150.qcom" %{!?package_version: %global package_version 6.12.0-160.qcom} %{!?srcrev: %global srcrev a1e809ea28fb2e467ed89dbd850b830e1dbb4832} %global kernel_version %{package_version}%{?dist}.%{_arch} %global kernel_release %(echo %{package_version} | tr '-' '_') %define shortcommit %(c=%{srcrev}; echo ${c:0:7}) %global kmodtool_generate_buildreqs 1 Name: qcom-scmi Version: 0^%{shortcommit} Release: 1_%{kernel_release} Summary: Qualcomm SCMI compatible kernel modules License: GPLv2 URL: https://gitlab.com/CentOS/automotive/src/kmod-qcom-scmi.git Source: https://gitlab.com/CentOS/automotive/src/kmod-qcom-scmi/-/archive/el10iv/kmod-qcom-scmi-%{srcrev}.tar.gz ExclusiveArch: aarch64 BuildRequires: kernel-automotive-devel-uname-r = %{kernel_version} BuildRequires: kernel-automotive-devel-priv-uname-r = %{kernel_version} BuildRequires: redhat-rpm-config kernel-rpm-macros elfutils-libelf-devel kmod %global compression zstd %global compression_flags --rm %global compext zst # KMP provides __brp_kmod_compress hook to compress the modules. # Something is odd with debuginfo. The debugfiles.list is correctly populated # (*.ko-.debug), yet the debuginfo package will not grab the listed debug # files unless we modify their filenames to have the matching extension. %define __brp_kmod_compress \ find %{buildroot}/lib/modules -type f -name '*.ko' -exec %{compression} %{compression_flags} {} \\; \ while read -r f; do \ mv "$f" "${f//\.ko/.ko.%{compext}}" \ done < <(find %{buildroot}/usr/lib/debug/lib/modules -type f -name '*.ko*.debug') %kernel_module_package %description %{summary} %prep %setup -T -b 0 -q -n kmod-qcom-scmi-%{srcrev} %build %make_build KERNEL_SRC=%{kernel_source default} modules %install %make_build KERNEL_SRC=%{kernel_source default} INSTALL_MOD_PATH=%{buildroot} DEPMOD=/usr/bin/true modules_install %changelog * Fri Dec 05 2025 Eric Chanudet 0^a1e809ea-1_6.12.0-150.qcom - spec: refactor dist/version handling. * Mon Feb 17 2025 Eric Chanudet 5.14.0-569.517.2-2 - spec: upgrade to next kernel version * Thu Feb 13 2025 Eric Chanudet 5.14.0-563.511.2-2 - spec: compress modules - spec: upgrade kmod to the next version * Wed Jan 22 2025 Eric Chanudet 5.14.0~549.498.1-1 - spec: initial packaging