%global debug_package %{nil} URL: https://github.com/MCC45TR/uke-linux-hardware-support Source0: uke-firmware-3.0.304.0.tar.xz ExclusiveArch: aarch64 %global _build_id_links none %global _binaries_in_noarch_packages_terminate_build 0 Obsoletes: uke-fastfetch-config <= 1.0.1-4.fc46 Name: uke-firmware Version: 3.0.304.0 Release: 19%{?dist} License: LicenseRef-Proprietary AND Apache-2.0 BuildArch: noarch Summary: Consolidated Xiaomi Pad 7 and POCO Pad X1 firmware AutoReqProv: no Provides: /usr/lib/firmware/qcom/uke/sensors/sns_tppe.so Provides: /usr/share/uke-sensors/odm/json.lst Provides: /usr/share/uke-sensors/sns_reg.conf Provides: xiaomi-uke-firmware = 3.0.304.0-1.local.fc46 Provides: uke-local-gpu-firmware = 3.0.304.0-1.local.fc46 Provides: uke-local-sensor-data = 3.0.304.0-2.local.fc46 Provides: uke-local-bluetooth-firmware = 3.0.304.0-2.local.fc46 Provides: uke-owner-adsp-firmware = 3.0.304.0-1.owner Provides: uke-owner-adsp-firmware = 3.0.304.0-1.owner.fc46 Provides: uke-owner-wpss-firmware = 3.0.304.0-1.owner Provides: uke-owner-wpss-firmware = 3.0.304.0-1.owner.fc46 Provides: uke-owner-wlan-board = 3.0.304.0-1.owner Provides: uke-owner-wlan-board = 3.0.304.0-1.owner.fc46 Provides: uke-owner-wlan-regdb = 3.0.304.0-1.owner Provides: uke-owner-wlan-regdb = 3.0.304.0-1.owner.fc46 Obsoletes: xiaomi-uke-firmware <= 3.0.304.0-1.local.fc46 Obsoletes: uke-local-gpu-firmware <= 3.0.304.0-1.local.fc46 Obsoletes: uke-local-sensor-data <= 3.0.304.0-2.local.fc46 Obsoletes: uke-local-bluetooth-firmware <= 3.0.304.0-2.local.fc46 Obsoletes: uke-owner-adsp-firmware <= 3.0.304.0-1.owner.fc46 Obsoletes: uke-owner-wpss-firmware <= 3.0.304.0-1.owner.fc46 Obsoletes: uke-owner-wlan-board <= 3.0.304.0-1.owner.fc46 Obsoletes: uke-owner-wlan-regdb <= 3.0.304.0-1.owner.fc46 Source1: retained-speaker-firmware-3.0.304.0-2.tar.xz Provides: uke-speaker-firmware = 3.0.304.0-3%{?dist} Provides: /usr/lib/firmware/qcom/uke/audio/fs19xx.fsm Obsoletes: uke-speaker-firmware < 3.0.304.0-3%{?dist} # UKE_AUDIO_OOB16_HEADER_BEGIN Source2: Forte_acdb_cal.acdb Source3: uke-speaker-data.conf Source4: audio-oob-20261116.json Source5: audio-oob-cache.sh BuildRequires: systemd Requires(post): /usr/bin/systemd-tmpfiles Provides: uke-firmware(generic-speaker-data-v1) = 1 # UKE_AUDIO_OOB16_HEADER_END # UKE_MCU17_HEADER_BEGIN Source6: MCU_Upgrade.bin Source7: pogo-mcu-20261116.json Provides: uke-firmware(factory-pogo-mcu-v1) = 1 # UKE_MCU17_HEADER_END # UKE_DISPLAY18_HEADER_BEGIN Source8: o82-36.json Source9: o82-42.json Source10: vpu30_2v.mbn Source11: display-inputs-20261117.json Provides: uke-firmware(oem-display-inputs-v1) = 1 # UKE_DISPLAY18_HEADER_END Source12: uke-iris-firmware-compat.conf Requires(posttrans): /usr/bin/systemd-tmpfiles %description -n uke-firmware One data package for pinned Uke SSC defaults, DSP helper, Bluetooth candidates, ADSP, WPSS, WLAN board/regulatory data, GPU firmware and OEM touch assets. No application, service, factory address, persist or private calibration is included. Existing touch runtime and its qualified device-local reference remain separate. File-level redistribution review remains incomplete. %prep %setup -q ( mkdir -p "%{_builddir}/uke-firmware-3.0.304.0/work/uke-firmware" cd '%{_builddir}/uke-firmware-3.0.304.0/work/uke-firmware' rm -rf 'uke-firmware-3.0.304.0' /usr/bin/mkdir -p 'uke-firmware-3.0.304.0' cd 'uke-firmware-3.0.304.0' /usr/bin/rpmuncompress -x '%{_builddir}/uke-firmware-3.0.304.0/inputs/uke-firmware/uke-firmware-3.0.304.0.tar.xz' STATUS=$? if [ $STATUS -ne 0 ]; then exit $STATUS fi /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . ) mkdir -p %{_builddir}/uke-speaker-preset tar -xJf %{SOURCE1} --strip-components=1 -C %{_builddir}/uke-speaker-preset %build ( cd "%{_builddir}/uke-firmware-3.0.304.0/work/uke-firmware/uke-firmware-3.0.304.0" ) %install for item in README.md provenance.json;do install -Dm644 %{_builddir}/uke-speaker-preset/$item %{buildroot}%{_docdir}/uke-speaker-firmware/$item;done for item in LICENSE.Apache-2.0 odm-NOTICE.xml.gz;do install -Dm644 %{_builddir}/uke-speaker-preset/$item %{buildroot}%{_licensedir}/uke-speaker-firmware/$item;done ( cd "%{_builddir}/uke-firmware-3.0.304.0/work/uke-firmware/uke-firmware-3.0.304.0" install -d %{buildroot}/usr cp -a usr/. %{buildroot}/usr/ install -d %{buildroot}/usr/lib/firmware/qcom/uke/touch cp -a touch-inputs/. %{buildroot}/usr/lib/firmware/qcom/uke/touch/ find %{buildroot}/usr/lib/firmware/qcom/uke/touch -type d -exec chmod 755 {} + find %{buildroot}/usr/lib/firmware/qcom/uke/touch -type f -exec chmod 644 {} + ) mv "%{buildroot}/usr/lib/firmware" "%{_builddir}/uke-firmware-3.0.304.0/firmware-unprocessed" install -Dm644 %{SOURCE12} %{buildroot}/usr/lib/tmpfiles.d/uke-iris-firmware-compat.conf %check mv "%{_builddir}/uke-firmware-3.0.304.0/firmware-unprocessed" "%{buildroot}/usr/lib/firmware" ( cd "%{_builddir}/uke-firmware-3.0.304.0/work/uke-firmware/uke-firmware-3.0.304.0" sha256sum -c --strict MANIFEST.sha256 find usr -type f -print0 | while IFS= read -r -d '' file; do cmp -- "$file" "%{buildroot}/$file" || exit; done diff -r touch-inputs %{buildroot}/usr/lib/firmware/qcom/uke/touch test "$(find %{buildroot}/usr/lib/firmware %{buildroot}/usr/share/uke-sensors -type f | wc -l)" = 217 test ! -e %{buildroot}/var/lib/uke-touch ) # Keep the original217-file baseline gate above; then add the exact preset. printf 'f319e71d60ed19d539296665fa06cc07fbcf93bf82f773c787bed65289129e7b %{_builddir}/uke-speaker-preset/fs19xx.fsm\n' | sha256sum -c --strict - install -Dm644 %{_builddir}/uke-speaker-preset/fs19xx.fsm %{buildroot}/usr/lib/firmware/qcom/uke/audio/fs19xx.fsm cmp %{_builddir}/uke-speaker-preset/fs19xx.fsm %{buildroot}/usr/lib/firmware/qcom/uke/audio/fs19xx.fsm test "$(find %{buildroot}/usr/lib/firmware %{buildroot}/usr/share/uke-sensors -type f | wc -l)" = 218 # UKE_AUDIO_OOB16_CHECK_BEGIN test "$(stat -c %s %{SOURCE2})" = 2838166 printf 'bd3f9b8834b80c23f86241756e263e36ddf92b2b8993ed83ff71c310af952f3e %{SOURCE2}\n' | sha256sum -c --strict - bash %{SOURCE5} %{SOURCE3} install -Dm444 %{SOURCE2} %{buildroot}/usr/lib/firmware/qcom/uke/audio/Forte_acdb_cal.acdb install -Dm644 %{SOURCE3} %{buildroot}/usr/lib/tmpfiles.d/uke-speaker-data.conf install -Dm644 %{SOURCE4} %{buildroot}%{_docdir}/uke-firmware/audio-oob-20261116.json cmp %{SOURCE2} %{buildroot}/usr/lib/firmware/qcom/uke/audio/Forte_acdb_cal.acdb test "$(find %{buildroot}/usr/lib/firmware %{buildroot}/usr/share/uke-sensors -type f | wc -l)" = 219 # UKE_AUDIO_OOB16_CHECK_END # UKE_MCU17_CHECK_BEGIN test "$(stat -c %s %{SOURCE6})" = 82740 printf 'b17fa938cf5613dfa550179d6fc40cfbaa831d534a16a22282e2904e845fa7c4 %{SOURCE6}\n' | sha256sum -c --strict - install -Dm444 %{SOURCE6} %{buildroot}/usr/lib/firmware/qcom/uke/nanosic/MCU_Upgrade.bin install -Dm644 %{SOURCE7} %{buildroot}%{_docdir}/uke-firmware/pogo-mcu-20261116.json cmp %{SOURCE6} %{buildroot}/usr/lib/firmware/qcom/uke/nanosic/MCU_Upgrade.bin test "$(find %{buildroot}/usr/lib/firmware %{buildroot}/usr/share/uke-sensors -type f | wc -l)" = 220 # UKE_MCU17_CHECK_END # UKE_DISPLAY18_CHECK_BEGIN for tuple in '8 12385898 bd88eb94134e5f62c05eebaa0a9e4b5267968363f72f440018b98a15d1bd9122' '9 12383296 2b6442ce0e8fef6d1b008cdeca3838450282868d385f6e3056c0a4ce2b8949d8' '10 2331336 3a4cac666ed1cd1ab5cb55f975dc724fd3e10603713b382f390484c37548d231';do read -r index size hash <<< "$tuple" case $index in 8) input=%{SOURCE8};;9) input=%{SOURCE9};;10) input=%{SOURCE10};;*) exit 1;;esac test "$(stat -c %s "$input")" = "$size" printf '%s %s\n' "$hash" "$input" | sha256sum -c --strict - done install -Dm444 %{SOURCE8} %{buildroot}/usr/lib/firmware/qcom/uke/display/o82-36.json install -Dm444 %{SOURCE9} %{buildroot}/usr/lib/firmware/qcom/uke/display/o82-42.json install -Dm444 %{SOURCE10} %{buildroot}/usr/lib/firmware/qcom/uke/video/vpu30_2v.mbn install -Dm644 %{SOURCE11} %{buildroot}%{_docdir}/uke-firmware/display-inputs-20261117.json cmp %{SOURCE8} %{buildroot}/usr/lib/firmware/qcom/uke/display/o82-36.json cmp %{SOURCE9} %{buildroot}/usr/lib/firmware/qcom/uke/display/o82-42.json cmp %{SOURCE10} %{buildroot}/usr/lib/firmware/qcom/uke/video/vpu30_2v.mbn test "$(find %{buildroot}/usr/lib/firmware %{buildroot}/usr/share/uke-sensors -type f | wc -l)" = 223 # UKE_DISPLAY18_CHECK_END # Apply the installed rule to a separate root so the RPM never owns the old path. ( set -eu root=$(mktemp -d) trap 'find "$root" -depth -delete' EXIT name=uke-iris-firmware-compat.conf firmware="$root/usr/lib/firmware/qcom/uke" old="$firmware/vpu30_2v.mbn" current="$firmware/video/vpu30_2v.mbn" install -Dm644 "%{buildroot}/usr/lib/tmpfiles.d/$name" "$root/usr/lib/tmpfiles.d/$name" install -Dm444 "%{buildroot}/usr/lib/firmware/qcom/uke/video/vpu30_2v.mbn" "$current" systemd-tmpfiles --root="$root" --create "$name" test "$(readlink "$old")" = video/vpu30_2v.mbn cmp "$old" "$current" systemd-tmpfiles --root="$root" --create "$name" test "$(readlink "$old")" = video/vpu30_2v.mbn unlink "$old" printf 'fixture for separate local RPM\n' > "$old" systemd-tmpfiles --root="$root" --create "$name" test ! -L "$old" grep -Fx 'fixture for separate local RPM' "$old" unlink "$old" ln -s local-vpu.mbn "$old" systemd-tmpfiles --root="$root" --create "$name" test "$(readlink "$old")" = local-vpu.mbn ) %files -n uke-firmware /usr/lib/tmpfiles.d/uke-iris-firmware-compat.conf # UKE_DISPLAY18_FILES_BEGIN /usr/lib/firmware/qcom/uke/display/o82-36.json /usr/lib/firmware/qcom/uke/display/o82-42.json /usr/lib/firmware/qcom/uke/video/vpu30_2v.mbn %doc %{_docdir}/uke-firmware/display-inputs-20261117.json # UKE_DISPLAY18_FILES_END # UKE_MCU17_FILES_BEGIN /usr/lib/firmware/qcom/uke/nanosic/MCU_Upgrade.bin %doc %{_docdir}/uke-firmware/pogo-mcu-20261116.json # UKE_MCU17_FILES_END # UKE_AUDIO_OOB16_FILES_BEGIN /usr/lib/firmware/qcom/uke/audio/Forte_acdb_cal.acdb /usr/lib/tmpfiles.d/uke-speaker-data.conf %doc %{_docdir}/uke-firmware/audio-oob-20261116.json # UKE_AUDIO_OOB16_FILES_END %config(noreplace) /usr/lib/firmware/qcom/uke/audio/fs19xx.fsm %dir %{_docdir}/uke-speaker-firmware %doc %{_docdir}/uke-speaker-firmware/README.md %doc %{_docdir}/uke-speaker-firmware/provenance.json %dir %{_licensedir}/uke-speaker-firmware %license %{_licensedir}/uke-speaker-firmware/LICENSE.Apache-2.0 %license %{_licensedir}/uke-speaker-firmware/odm-NOTICE.xml.gz %license work/uke-firmware/uke-firmware-3.0.304.0/vendor-NOTICE.xml.gz work/uke-firmware/uke-firmware-3.0.304.0/odm-NOTICE.xml.gz %doc work/uke-firmware/uke-firmware-3.0.304.0/PUBLICATION.txt work/uke-firmware/uke-firmware-3.0.304.0/local-firmware-candidates.json work/uke-firmware/uke-firmware-3.0.304.0/oem-runtime-source.json /usr/share/uke-sensors /usr/lib/firmware/adsp.* /usr/lib/firmware/adsp_dtb.* /usr/lib/firmware/ath11k/WCN6750/hw1.0/board.bin /usr/lib/firmware/ath11k/WCN6750/hw1.0/regdb.bin /usr/lib/firmware/qca6750/wpss.* /usr/lib/firmware/qcom/gen71100_* /usr/lib/firmware/qcom/uke/sensors /usr/lib/firmware/qcom/uke/touch /usr/lib/firmware/qca # UKE_AUDIO_OOB16_POST_BEGIN %post test -f /usr/lib/firmware/qcom/uke/audio/Forte_acdb_cal.acdb && test ! -L /usr/lib/firmware/qcom/uke/audio/Forte_acdb_cal.acdb || exit 1 printf 'bd3f9b8834b80c23f86241756e263e36ddf92b2b8993ed83ff71c310af952f3e /usr/lib/firmware/qcom/uke/audio/Forte_acdb_cal.acdb\n' | sha256sum -c --strict --quiet - || exit 1 /usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/uke-speaker-data.conf # UKE_AUDIO_OOB16_POST_END %posttrans /usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/uke-iris-firmware-compat.conf %changelog * Tue Dec 01 2026 Uke contributors - 3.0.304.0-19 - Supply the legacy Iris firmware path when it is absent. # UKE_DISPLAY18_HISTORY_BEGIN * Tue Nov 17 2026 Uke contributors - 3.0.304.0-18 - Retain already admitted generic OEM panel and video inputs independently of Android super. # UKE_DISPLAY18_HISTORY_END * Mon Nov 16 2026 Uke contributors - 3.0.304.0-17 - Supply the exact admitted public MCU image independently of Android super. * Mon Nov 16 2026 Uke contributors - 3.0.304.0-16 - Deliver pinned generic speaker data and restore its compatibility cache without network access. * Thu Oct 29 2026 Senemos Maintainers <75160848+MCC45TR@users.noreply.github.com> - 3.0.304.0-14.fc46 - Build this component independently from its reviewed source recipe.