%global debug_package %{nil} Name: uke-u-boot-ramboot Version: 2026.10 Release: 2%{?dist} Summary: Temporary U-Boot entry and framebuffer test for Xiaomi Uke License: GPL-2.0-or-later URL: https://u-boot-project.org/ Source0: https://git.u-boot-project.org/u-boot/u-boot/-/releases/v%{version}/downloads/u-boot-%{version}.tar.bz2 Source1: uke-ramboot.c Source2: uke_ramboot_defconfig Source3: check-uke-ramboot.sh Source4: uke-qemu-monitor.exp Patch0: uke-ramboot-hooks.patch ExclusiveArch: aarch64 BuildRequires: android-tools BuildRequires: bc BuildRequires: binutils BuildRequires: bison BuildRequires: dtc BuildRequires: expect BuildRequires: flex BuildRequires: gcc BuildRequires: libuuid-devel BuildRequires: make BuildRequires: openssl3-devel BuildRequires: openssl3-devel-engine BuildRequires: perl-interpreter BuildRequires: python3-cryptography BuildRequires: python3-devel BuildRequires: python3-libfdt BuildRequires: python3-pyelftools BuildRequires: python3-setuptools BuildRequires: qemu-system-aarch64-core BuildRequires: swig BuildRequires: xxd %description Android v4 temporary RAM boot image for the POCO Pad X1 and Xiaomi Pad 7 Uke entry and inherited-framebuffer test. Stock ABL supplies the device tree. This development image draws a diagnostic marker and includes no disk, fastboot gadget, EFI boot or EL2 exit operation. %prep printf '%%s %%s\n' 3f856da3cbbc93af51ff95fde18588a348b4a26723b01d9841e999d988481015 '%{SOURCE0}' | sha256sum -c - %autosetup -n u-boot-v%{version} -p1 install -pm0644 '%{SOURCE1}' arch/arm/mach-snapdragon/uke-ramboot.c install -pm0644 '%{SOURCE2}' configs/uke_ramboot_defconfig %build export SOURCE_DATE_EPOCH=1791236133 export KBUILD_BUILD_USER=builder KBUILD_BUILD_HOST=copr make O=out CROSS_COMPILE= uke_ramboot_defconfig %make_build O=out CROSS_COMPILE= KCFLAGS=-mstrict-align u-boot-nodtb.bin arm64=out/u-boot-nodtb.bin readelf -h out/u-boot | grep -E 'Machine:[[:space:]]+AArch64$' test "$(od -An -N4 -j56 -tx4 "$arm64" | tr -d ' ')" = 644d5241 test "$(od -An -N8 -j8 -tu8 "$arm64" | tr -d ' ')" = 0 span=$(od -An -N8 -j16 -tu8 "$arm64" | tr -d ' ') test "$span" -ge 8388608 test "$span" -le 16777216 test "$(stat -c %%s "$arm64")" -le "$span" cp "$arm64" out/uke-ramboot-Image truncate -s "$span" out/uke-ramboot-Image mkbootimg --header_version 4 --kernel out/uke-ramboot-Image --output out/uke-u-boot-ramboot.img %install root=%{buildroot}%{_datadir}/%{name} install -Dpm0644 out/uke-u-boot-ramboot.img "$root/uke-u-boot-ramboot.img" install -Dpm0644 out/.config "$root/config" %check set -o pipefail root=%{buildroot}%{_datadir}/%{name} img="$root/uke-u-boot-ramboot.img" test "$(head -c 8 "$img")" = 'ANDROID!' test "$(od -An -N4 -j40 -tu4 "$img" | tr -d ' ')" = 4 test "$(od -An -N4 -j12 -tu4 "$img" | tr -d ' ')" = 0 span=$(stat -c %%s out/uke-ramboot-Image) test "$(od -An -N4 -j8 -tu4 "$img" | tr -d ' ')" = "$span" cmp --bytes="$span" --ignore-initial=4096:0 "$img" out/uke-ramboot-Image for feature in EFI_LOADER NET MMC USB DM_USB_GADGET; do if grep -Fx "CONFIG_$feature=y" out/.config; then exit 1 fi done bash '%{SOURCE3}' out/uke-ramboot-Image '%{SOURCE4}' "$root/qemu-ramboot.log" %files %license Licenses/gpl-2.0.txt %{_datadir}/%{name}/ %changelog * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-2 - Require the inherited splash allocation to be inside admitted RAM. - Add the stock DT identity fixture and idle after painting the marker. - Make the unused capsule helper local to each translation unit. * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-1 - Qualify the Uke Android Image wrapper and inherited framebuffer in QEMU.