%global debug_package %{nil} %global source_commit 39f771216c16599f6d864f75095ada2f8b8568ad %global nabu_build_stamp 2608311409 %global uname_r 6.16.0-nabu-senemos-stable-%{nabu_build_stamp} Name: senemos-nabu-kernel Version: 6.16.0 Release: %{nabu_build_stamp}.stable%{?dist} Epoch: 1 Summary: Known-working SENEMOS Linux 6.16 stable kernel for Xiaomi Pad 5 License: GPL-2.0-only URL: https://github.com/rodriguezst/linux ExclusiveArch: aarch64 Source0: linux-%{source_commit}.tar.gz Source1: nabu-legacy-release.config Source2: nabu-build-stamp BuildRequires: bc BuildRequires: bison BuildRequires: dwarves BuildRequires: elfutils-libelf-devel BuildRequires: flex BuildRequires: gcc BuildRequires: kmod BuildRequires: make BuildRequires: openssl BuildRequires: openssl-devel BuildRequires: perl BuildRequires: python3 BuildRequires: rsync Requires: nabu-kernel-maintenance-api >= 3 Requires(posttrans): coreutils Requires(postun): kmod Provides: senemos-nabu-kernel-stable-build = %{nabu_build_stamp} %description Pinned Linux 6.16 Nabu kernel from rodriguezst commit %{source_commit}. This is the existing SENEMOS stable package family. Epoch 1 makes the intentional 6.17-to-6.16 stable-channel rollback a normal DNF upgrade while alpha, mainline and LTS remain independent packages. %prep [[ '%{nabu_build_stamp}' =~ ^[0-9]{10}$ ]] grep -Fxq '%{nabu_build_stamp}' %{SOURCE2} %autosetup -n linux-%{source_commit} -p1 %build export ARCH=arm64 export KBUILD_BUILD_USER=senemos export KBUILD_BUILD_HOST=copr make defconfig sm8150.config cat %{SOURCE1} >>.config scripts/config --file .config \ --set-str LOCALVERSION '-nabu-senemos-stable-%{nabu_build_stamp}' \ --disable LOCALVERSION_AUTO make olddefconfig make -j1 prepare make %{?_smp_mflags} Image qcom/sm8150-xiaomi-nabu.dtb modules %install install -Dm0755 arch/arm64/boot/Image %{buildroot}/boot/vmlinuz-%{uname_r} install -Dm0644 System.map %{buildroot}/boot/System.map-%{uname_r} install -Dm0644 .config %{buildroot}/boot/config-%{uname_r} install -Dm0644 arch/arm64/boot/dts/qcom/sm8150-xiaomi-nabu.dtb \ %{buildroot}%{_prefix}/lib/modules/%{uname_r}/dtb/qcom/sm8150-xiaomi-nabu.dtb make modules_install INSTALL_MOD_PATH=%{buildroot}%{_prefix} \ INSTALL_MOD_STRIP=1 DEPMOD=/bin/true rm -f %{buildroot}%{_prefix}/lib/modules/%{uname_r}/build rm -f %{buildroot}%{_prefix}/lib/modules/%{uname_r}/source /usr/sbin/depmod -b %{buildroot}%{_prefix} %{uname_r} install -Dm0644 /dev/null \ %{buildroot}%{_prefix}/lib/senemos-nabu/verbose-uki.d/%{uname_r} install -d -m0755 %{buildroot}%{_prefix}/lib/senemos-nabu/uki-version.d printf '%%s\n' '%{nabu_build_stamp}' > \ %{buildroot}%{_prefix}/lib/senemos-nabu/uki-version.d/%{uname_r} %check test -s %{buildroot}/boot/vmlinuz-%{uname_r} test -s %{buildroot}%{_prefix}/lib/modules/%{uname_r}/dtb/qcom/sm8150-xiaomi-nabu.dtb test -s %{buildroot}%{_prefix}/lib/modules/%{uname_r}/kernel/drivers/misc/fastrpc.ko test -s %{buildroot}%{_prefix}/lib/modules/%{uname_r}/kernel/drivers/usb/class/cdc-acm.ko grep -Fxq 'CONFIG_LOCALVERSION="-nabu-senemos-stable-%{nabu_build_stamp}"' \ %{buildroot}/boot/config-%{uname_r} grep -Fxq '# CONFIG_ATH10K_DEBUG is not set' %{buildroot}/boot/config-%{uname_r} grep -Fxq '# CONFIG_ATH10K_DEBUGFS is not set' %{buildroot}/boot/config-%{uname_r} grep -aFq 'xiaomi,nabu' arch/arm64/boot/dts/qcom/sm8150-xiaomi-nabu.dtb test "$(make -s kernelrelease)" = '%{uname_r}' grep -Fxq '%{nabu_build_stamp}' \ %{buildroot}%{_prefix}/lib/senemos-nabu/uki-version.d/%{uname_r} %posttrans install -d -m0755 /var/lib/nabu-kernel-maintenance/pending.d temporary=$(mktemp /var/lib/nabu-kernel-maintenance/pending.d/.stable.XXXXXX) printf '%%s\n' '%{uname_r}' >"$temporary" chmod 0644 "$temporary" mv -f "$temporary" /var/lib/nabu-kernel-maintenance/pending.d/stable %postun if [ "$1" -eq 0 ]; then /usr/sbin/depmod -a || : fi %files /boot/vmlinuz-%{uname_r} /boot/System.map-%{uname_r} /boot/config-%{uname_r} %{_prefix}/lib/modules/%{uname_r}/dtb/qcom/sm8150-xiaomi-nabu.dtb %{_prefix}/lib/modules/%{uname_r}/modules.* %{_prefix}/lib/modules/%{uname_r}/kernel/ %{_prefix}/lib/senemos-nabu/verbose-uki.d/%{uname_r} %{_prefix}/lib/senemos-nabu/uki-version.d/%{uname_r} %changelog * Mon Aug 31 2026 mcc45tr - 1:6.16.0-%{nabu_build_stamp}.stable - Restore the pinned known-working Nabu 6.16 source in the existing stable family. - Keep release diagnostics disabled and retain USB CDC host support. - Serialize generated UAPI preparation before the parallel kernel build.