56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
# disable the '-debug{info,source}' pkgs
|
|
%define debug_package %{nil}
|
|
# also disable packaging files in '/usr/lib/.build-id/'
|
|
%define _build_id_links none
|
|
|
|
%if "%{?non_standard_release}" == ""
|
|
Source2: release-stable.inc
|
|
%else
|
|
Source2: release-%{non_standard_release}.inc
|
|
%endif
|
|
%include %{SOURCE2}
|
|
|
|
Name: uboot-%{board_name}-tfg
|
|
Version: %{major_ver}.%{minor_ver}
|
|
Release: %{rel_ver}%{?rc_ver:.%{rc_ver}}%{?master_commit:.%{master_commit}}%{?dist}
|
|
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
|
|
Summary: U-Boot for %{board_name}
|
|
URL: http://www.denx.de/wiki/U-Boot
|
|
|
|
%ifarch aarch64
|
|
BuildRequires: arm-trusted-firmware-armv8
|
|
%endif
|
|
BuildRequires: bc bison dtc flex gcc gnutls-devel libuuid-devel make ncurses-devel openssl-devel perl-interpreter python3-devel python3-libfdt python3-pyelftools python3-setuptools SDL2-devel swig
|
|
Requires: dtc
|
|
|
|
%global make make -j$(( $(nproc) + 2 ))
|
|
|
|
%description
|
|
This package contains images for the %{board_name}.
|
|
|
|
%prep
|
|
%setup -q -n %{src_dir}
|
|
|
|
%{make} distclean
|
|
%{make} %{board_defconfig}
|
|
|
|
%build
|
|
%if "%{?rkbin_git_commit}" != ""
|
|
pushd ..
|
|
cp %{_sourcedir}/%{?rkbin_git_commit}.tar.gz .
|
|
tar xf %{?rkbin_git_commit}.tar.gz
|
|
export RKBIN_DIRECTORY="%{_builddir}/rkbin-%{?rkbin_git_commit}"
|
|
export BL31="${RKBIN_DIRECTORY}/bin/rk35/rk3588_bl31_v1.40.elf"
|
|
export ROCKCHIP_TPL="${RKBIN_DIRECTORY}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin"
|
|
popd
|
|
%endif
|
|
%{make}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}/usr/share/uboot/%{board_name}
|
|
cp -v %{output_files} %{buildroot}/usr/share/uboot/%{board_name}
|
|
|
|
%files
|
|
/usr/share/uboot/%{board_name}
|