Name: uke-upower-refresh-source-check Version: 1.91.5 Release: 11%{?dist} Summary: ARM64 source qualification for the fitted Uke fast-charge readback License: GPL-2.0-only ExclusiveArch: aarch64 Source0: qcom_battmgr-before.c Source1: 0009-uke-qcom-battmgr-observe-fast-charge-status.patch Source2: battery-coordinator-contract.sh Source3: pmic_glink.h Source4: fitted-fast-mode-wire.tsv BuildRequires: bash coreutils findutils gawk grep gcc clang git-core %description Source validation of fixed charger, USB class and charging mode reads. The results package contains checked source evidence. %prep test "$(uname -m)" = aarch64 printf '%s %s\n' 7c457f6d35628502601a4c98041321bac49fe95ac80555ca554b0f377c557e55 %{SOURCE0} | sha256sum -c --strict - mkdir -p candidate/drivers/power/supply candidate/include/linux/soc/qcom cp -p %{SOURCE0} candidate/drivers/power/supply/qcom_battmgr.c cp -p %{SOURCE3} candidate/include/linux/soc/qcom/pmic_glink.h ( cd candidate git apply --check --whitespace=error %{SOURCE1} git apply --whitespace=error %{SOURCE1} ) awk -F '\t' ' $3==24 && $4==16 && ($1=="input_suspend_show" && $2==53 || $1=="pd_verifed_show" && $2==31 || $1=="night_charging_show" && $2==55 || $1=="fastchg_mode_show" && $2==54 || $1=="apdo_max_show" && $2==60) && !seen[$1]++ {valid++} END {exit NR!=5 || valid!=5} ' %{SOURCE4} %build set -o pipefail for toolchain in gcc clang; do for oem_status in 0 1; do for control in 0 1; do CC="$toolchain" UKE_TEST_OEM_STATUS="$oem_status" UKE_TEST_CONTROL="$control" \ bash %{SOURCE2} "$PWD/candidate" done done done | tee results.txt test "$(grep -Fxc 'Fixed OEM charger and mode reads: privilege, wire identity, epoch and write refusal passed.' results.txt)" = 4 test "$(grep -Fxc 'OEM USB status: privilege, namespace, legacy adapter cache and epoch passed.' results.txt)" = 4 test "$(grep -Fc 'Actual Uke request matching, error, late reply, generation, PDR' results.txt)" = 8 ( cd candidate git apply --reverse --check --whitespace=error %{SOURCE1} git apply --reverse %{SOURCE1} cmp %{SOURCE0} drivers/power/supply/qcom_battmgr.c ) (cd %{_sourcedir}; sha256sum qcom_battmgr-before.c 0009-uke-qcom-battmgr-observe-fast-charge-status.patch battery-coordinator-contract.sh pmic_glink.h fitted-fast-mode-wire.tsv) >> results.txt %install install -Dm644 results.txt %{buildroot}%{_datadir}/%{name}/qualification.txt %files %{_datadir}/%{name}/qualification.txt %changelog * Thu Nov 19 2026 Uke Linux Maintainers - 1.91.5-11 - Qualify fitted fast-charge mode and APDO maximum status reads.