%global debug_package %{nil} Name: uke-kernel-migration-check Version: 7.3.5 Release: 48.uke_q6apm_playback1%{?dist} Summary: Uke AudioReach playback queue source check License: GPL-2.0-only Source0: q6apm-playback-source.tar.xz BuildRequires: clang gcc git-core ExclusiveArch: aarch64 %description A source-only check of the bounded AudioReach PCM playback queue for Uke. %prep %setup -q -n source-check file=sound/soc/qcom/qdsp6/q6apm-dai.c echo '7dab9c7cf1f0ef6542ab0a20401223ae5cdccd4e68e25d634e5916f5b1f366cc '"$file" | sha256sum --strict -c cp "$file" original.c git apply --whitespace=error 0050-q6apm-bound-playback-queue.patch echo '54828421256aad8b505c3193c1c5b927ad14bab1b6f1fb3520e862159d9688b1 '"$file" | sha256sum --strict -c %build : %install install -d %{buildroot}%{_datadir}/uke-q6apm-playback-check cat > %{buildroot}%{_datadir}/uke-q6apm-playback-check/receipt <<'RECEIPT' source_commit=88ff9721545ad35574e2ab1ad8bd031553384472 parent_build=11373931 playback_queue_cases=18 checks=gcc,clang,gcc-asan-ubsan,clang-asan-ubsan,patch-inverse scope=source-function-fixtures RECEIPT %check file=sound/soc/qcom/qdsp6/q6apm-dai.c for cc in gcc clang; do for sanitize in 0 1; do CC="$cc" SANITIZE="$sanitize" bash tests/q6apm-playback-queue.sh "$file" done done git apply --reverse --whitespace=error 0050-q6apm-bound-playback-queue.patch cmp original.c "$file" echo 'Exact AudioReach source reversal passed.' %files %{_datadir}/uke-q6apm-playback-check/