%global debug_package %{nil} Name: uke-cpucp-dynpf-check Version: 1.0.0 Release: 1%{?dist} Summary: Compile the fitted Uke DynPF read-only SCMI path License: GPL-2.0-only Source0: uke-cpucp-dynpf-check.tar.xz ExclusiveArch: aarch64 BuildRequires: bc bison flex gcc gcc-c++ make git-core curl xz tar BuildRequires: openssl-devel elfutils-libelf-devel perl python3 BuildRequires: binutils libasan libubsan %description Check the exact Uke CPUCP observer preimage and compile the revised AArch64 object. The RPM delivers a qualification receipt. %prep mkdir inputs tar -xJf "%{SOURCE0}" -C inputs (cd inputs; sha256sum --check --strict SHA256SUMS) printf 'e59c1e2741f92537f6e60ba4b871507c7d261444a5c01351547712323c6b6a19 inputs/accepted.c\n' | sha256sum -c --strict curl -qfSL --proto '=https' --retry 2 --max-time 180 --max-filesize 170000000 \ https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-7.3.7.tar.xz -o upstream.tar.xz printf 'c4cbb90c12f90d59e49320b9ab0b5e7b7de0c15dd56ede5bc0c81ba16b30e59d upstream.tar.xz\n' | sha256sum -c --strict tar -xJf upstream.tar.xz %build input="$PWD/inputs" pushd linux-7.3.7 obj=drivers/firmware/arm_scmi/uke-cpucp-observe git apply --check --whitespace=error "$input/protocol.patch" git apply --whitespace=error "$input/protocol.patch" install -m644 "$input/accepted.c" "$obj.c" git apply --check --whitespace=error "$input/candidate.patch" git apply --whitespace=error "$input/candidate.patch" CC=gcc bash "$input/contract.sh" "$obj.c" > ../qualification.txt make -s ARCH=arm64 defconfig scripts/config --enable ARM_SCMI_PROTOCOL --disable LOCALVERSION_AUTO --disable DEBUG_INFO --disable DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT make -s ARCH=arm64 olddefconfig make -s ARCH=arm64 -j2 "$obj.o" readelf -h "$obj.o" | grep 'Machine:.*AArch64' >> ../qualification.txt strings "$obj.o" | grep -F 'DynPF read-only enable rc=' >> ../qualification.txt git apply --reverse --check --whitespace=error "$input/candidate.patch" git apply --reverse --whitespace=error "$input/candidate.patch" cmp "$input/accepted.c" "$obj.c" sha256sum "$input/candidate.patch" | cut -d' ' -f1 >> ../qualification.txt popd %install install -Dm644 qualification.txt "%{buildroot}%{_datadir}/doc/%{name}/qualification.txt" %files %{_datadir}/doc/%{name}/qualification.txt %changelog * Wed Dec 02 2026 Uke Linux Maintainers - 1.0.0-1 - Validate the DynPF wire reply and compile the native observer.