%global candidate rc6 # Binaries not used in standard manner so debuginfo is useless %global debug_package %{nil} Name: uboot-tools Version: 2024.10 Release: 0.9%{?candidate:.%{candidate}}%{?dist} Summary: U-Boot utilities License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+ URL: http://www.denx.de/wiki/U-Boot ExcludeArch: s390x Source0: https://ftp.denx.de/pub/u-boot/u-boot-%{version}%{?candidate:-%{candidate}}.tar.bz2 Source1: rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin Source2: rk3568_ddr_1560MHz_v1.21.bin Source4: rk3588-boards Source5: rk356x-boards Source6: rk3308-boards # This is now legacy, most devices use bootflow, we keep this for the laggards Patch1: uefi-distro-load-FDT-from-any-partition-on-boot-device.patch # Identify VFAT partitions as ESP, allows EFI setvar on our images Patch2: uefi-Add-all-options-for-EFI-System-Partitions.patch # New function to find fdt for loading from disk Patch3: uefi-initial-find_fdt_location-for-finding-the-DT-on-disk.patch # Fedora patches to enable/disable features Patch4: disable-VBE-by-default.patch Patch5: enable-bootmenu-by-default.patch # Should be upstream but it's taking time #Patch6: Add-video-damage-tracking.patch # Rockchips improvements Patch10: rockchip-Enable-preboot-start-for-pci-usb.patch Patch11: FUSB302-USB-C-controller-support.patch # QCom Patch15: Qualcomm-add-support-for-SC7280-and-the-RB3-Gen-2.patch BuildRequires: bc BuildRequires: bison BuildRequires: dtc BuildRequires: flex BuildRequires: gcc BuildRequires: gnutls-devel BuildRequires: libuuid-devel BuildRequires: make BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: openssl-devel-engine BuildRequires: perl-interpreter BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-libfdt BuildRequires: SDL2-devel BuildRequires: swig BuildRequires: arm-trusted-firmware-armv8 BuildRequires: python3-pyelftools BuildRequires: xxd %description This package contains a few U-Boot utilities - mkimage for creating boot images and fw_printenv/fw_setenv for manipulating the boot environment variables. %package -n uboot-images-copr Summary: U-Boot firmware images for aarch64 boards BuildArch: noarch %description -n uboot-images-copr U-Boot firmware binaries for aarch64 boards %prep %autosetup -p1 -n u-boot-%{version}%{?candidate:-%{candidate}} cp %SOURCE1 . cp %SOURCE2 . cp %SOURCE4 . cp %SOURCE5 . cp %SOURCE6 . %build mkdir builds for board in $(cat rk3588-boards) do echo "Board: $board using rk3588" mkdir builds/$(echo $board)/ make $(echo $board)_defconfig O=builds/$(echo $board)/ BL31=/usr/share/arm-trusted-firmware/rk3588/bl31.elf \ ROCKCHIP_TPL=rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin \ %make_build HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" O=builds/$(echo $board)/ done for board in $(cat rk356x-boards) do echo "Board: $board using rk356x" mkdir builds/$(echo $board)/ make $(echo $board)_defconfig O=builds/$(echo $board)/ BL31=/usr/share/arm-trusted-firmware/rk3568/bl31.elf \ ROCKCHIP_TPL=rk3568_ddr_1560MHz_v1.21.bin \ %make_build HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" O=builds/$(echo $board)/ done %install mkdir -p %{buildroot}%{_datadir}/uboot/ for board in $(ls builds) do for file in u-boot-rockchip-spi.bin u-boot-rockchip.bin do if [ -f builds/$(echo $board)/$(echo $file) ]; then install -pD -m 0644 builds/$(echo $board)/$(echo $file) %{buildroot}%{_datadir}/uboot/$(echo $board)/$(echo $file) fi done done %files -n uboot-images-copr %license Licenses/* %dir %{_datadir}/uboot/ %{_datadir}/uboot/* %changelog * Wed Oct 02 2024 Peter Robinson - 2024.10-0.9.rc6 - Update to 2024.10 RC6 * Mon Sep 23 2024 Peter Robinson - 2024.10-0.8.rc5 - Fix usb/nvme storage * Wed Sep 18 2024 Peter Robinson - 2024.10-0.7.rc5 - Update to 2024.10 RC5 * Sun Sep 15 2024 Peter Robinson - 1:2024.10-0.6.rc4 - Initial builds for rk35xx boards * Fri Sep 6 2024 Peter Robinson - 1:2024.10-0.5.rc4 - Add missing licenses directory * Tue Sep 03 2024 Peter Robinson - 1:2024.10-0.4.rc4 - Update to 2024.10 RC4