%global debug_package %{nil} Name: uke-u-boot-ramboot Version: 2026.10 Release: 5%{?dist} Summary: Temporary U-Boot entry and Linux handoff 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 for POCO Pad X1 and Xiaomi Pad 7. The image accepts clean EL1 and EL2 entry, marks the inherited framebuffer, and can hand off to an appended Linux Image with the incoming device tree and EL. %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 export KCONFIG_NOSILENTUPDATE=1 timeout 30s make O=out CROSS_COMPILE= syncconfig