Name: uke-cdsp-kernel-check Version: 7.3.1 Release: 1%{?dist} Summary: Native source and object evidence for FastRPC DMA admission License: GPL-2.0-only Source0: linux-7.3.1.tar.xz Source1: uke-cdsp-dma-addon.tar.xz BuildRequires: gcc gcc-c++ clang llvm lld make bc flex bison openssl-devel elfutils-libelf-devel perl git-core ExclusiveArch: aarch64 %global debug_package %{nil} %description Text evidence only. Compiles the actual Linux FastRPC callbacks and a complete AArch64 translation unit with the retained coherent-buffer lifetime patch. Not a full cumulative kernel, runtime package, firmware or physical compute result. %prep echo 'fa595aad93734f829c963c2a90ef7c3673224fd7fdae7b49406e397cde2de231 %{SOURCE0}' | sha256sum -c - %setup -q -n linux-7.3.1 tar -xJf %{SOURCE1} git init --quiet git apply --check cdsp-addon/patches/boot/0023-fastrpc-own-coherent-dma-handle.patch git apply cdsp-addon/patches/boot/0023-fastrpc-own-coherent-dma-handle.patch bash cdsp-addon/src/cdsp/apply-dma-admission.sh "$PWD" sha256sum drivers/misc/fastrpc.c > before-repeat.sha256 bash cdsp-addon/src/cdsp/apply-dma-admission.sh "$PWD" sha256sum -c before-repeat.sha256 %build set -o pipefail bash cdsp-addon/tests/fastrpc-cb-dma-qualify.sh "$PWD/drivers/misc/fastrpc.c" | tee checks.txt CXX=clang++ bash cdsp-addon/tests/fastrpc-buffer-lifetime-contract.sh "$PWD/drivers/misc/fastrpc.c" | tee -a checks.txt make ARCH=arm64 LLVM=1 defconfig scripts/config --module QCOM_FASTRPC make ARCH=arm64 LLVM=1 olddefconfig grep -Fx 'CONFIG_QCOM_FASTRPC=m' .config make ARCH=arm64 LLVM=1 KCFLAGS=-Werror -j4 drivers/misc/fastrpc.o llvm-readelf -h drivers/misc/fastrpc.o | tee -a checks.txt llvm-readelf -h drivers/misc/fastrpc.o | grep -E 'Machine:.*AArch64' llvm-nm --defined-only drivers/misc/fastrpc.o | grep -E '[[:space:]]fastrpc_cb_probe$' sha256sum drivers/misc/fastrpc.c drivers/misc/fastrpc.o .config | tee -a checks.txt printf 'Independent defconfig object only; no cumulative Image or target acceptance\n' | tee -a checks.txt %install install -Dm644 checks.txt %{buildroot}%{_docdir}/%{name}/checks.txt install -Dm644 cdsp-addon/source-commit %{buildroot}%{_docdir}/%{name}/source-commit install -Dm644 cdsp-addon/docs/CDSP-KERNEL-DMA-ADMISSION.md %{buildroot}%{_docdir}/%{name}/scope.md %files %doc %{_docdir}/%{name}/checks.txt %doc %{_docdir}/%{name}/source-commit %doc %{_docdir}/%{name}/scope.md