%global debug_package %{nil} Name: uke-u-boot-bringup Version: 2026.10 Release: 5%{?dist} Summary: U-Boot Qualcomm and ARM64 QEMU build references 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: check-qemu.exp Source2: check-qemu-esp.sh Source3: check-qemu-esp.exp ExclusiveArch: aarch64 BuildRequires: bc BuildRequires: binutils BuildRequires: bison BuildRequires: dtc BuildRequires: expect BuildRequires: flex BuildRequires: gcc BuildRequires: gnutls-devel BuildRequires: libuuid-devel BuildRequires: make BuildRequires: mtools 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: util-linux BuildRequires: xxd %description Unmodified upstream build outputs for QEMU virt and the generic Snapdragon target. These development references require a separate board port and Android image wrapper before any Uke device test. %prep printf '%%s %%s\n' 3f856da3cbbc93af51ff95fde18588a348b4a26723b01d9841e999d988481015 '%{SOURCE0}' | sha256sum -c - %autosetup -n u-boot-v%{version} %build export SOURCE_DATE_EPOCH=1791236133 export KBUILD_BUILD_USER=builder KBUILD_BUILD_HOST=copr for board in qemu_arm64 qcom; do make O="out/$board" CROSS_COMPILE= "${board}_defconfig" scripts/config --file "out/$board/.config" --enable CMD_BOOTMENU --enable USB_KEYBOARD make O="out/$board" CROSS_COMPILE= olddefconfig %make_build O="out/$board" CROSS_COMPILE= done %install root=%{buildroot}%{_datadir}/%{name} install -Dpm0644 out/qemu_arm64/u-boot.bin "$root/qemu-arm64/u-boot.bin" install -Dpm0644 out/qemu_arm64/.config "$root/qemu-arm64/config" install -Dpm0644 out/qcom/u-boot-nodtb.bin "$root/qualcomm/u-boot-nodtb.bin" install -Dpm0644 out/qcom/.config "$root/qualcomm/config" %check export LC_ALL=C for board in qemu_arm64 qcom; do readelf -h "out/$board/u-boot" | grep -E 'Machine:[[:space:]]+AArch64$' done test -s out/qcom/u-boot-nodtb.bin qemu_logs=%{buildroot}%{_datadir}/%{name}/qemu-arm64 if ! expect -f '%{SOURCE1}' out/qemu_arm64/u-boot.bin '%{version}' > "$qemu_logs/serial-check.log" 2>&1; then cat "$qemu_logs/serial-check.log" exit 1 fi printf 'QEMU ARM64 EFI variable test passed\n' | tee "$qemu_logs/efi-variables.result" for board in qemu-arm64 qualcomm; do grep -Fx 'CONFIG_CMD_BOOTMENU=y' "%{buildroot}%{_datadir}/%{name}/$board/config" grep -Fx 'CONFIG_USB_KEYBOARD=y' "%{buildroot}%{_datadir}/%{name}/$board/config" grep -Fx 'CONFIG_CMD_BOOTEFI_BOOTMGR=y' "%{buildroot}%{_datadir}/%{name}/$board/config" done if ! bash '%{SOURCE2}' out/qemu_arm64/u-boot.bin out/qemu_arm64/lib/efi_loader/helloworld.efi '%{SOURCE3}' > "$qemu_logs/efi-esp.log" 2>&1; then cat "$qemu_logs/efi-esp.log" exit 1 fi grep -F 'QEMU EFI BootOrder selection over USB HID passed' "$qemu_logs/efi-esp.log" %files %license Licenses/gpl-2.0.txt %{_datadir}/%{name}/ %changelog * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-5 - Set the EFI menu delay through bootmenu_delay for the registered command ABI. * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-4 - Test USB keyboard selection and EFI application execution from a GPT ESP. * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-3 - Require the named EFI test to complete and use Expect exit status directly. * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-2 - Link build-host FIT tools against the Fedora OpenSSL 3 ENGINE provider. * Sun Nov 22 2026 Uke Linux maintainers - 2026.10-1 - Build upstream Qualcomm and ARM64 QEMU reference images.