uboot/package.inc

65 lines
1.5 KiB
PHP
Raw Normal View History

2023-10-28 07:07:20 +00:00
# disable the '-debug{info,source}' pkgs
%define debug_package %{nil}
# also disable packaging files in '/usr/lib/.build-id/'
%define _build_id_links none
2023-10-28 07:48:15 +00:00
%if "%{?non_standard_release}" == ""
2023-10-28 07:07:20 +00:00
Source2: release-stable.inc
2023-10-28 07:48:15 +00:00
%else
Source2: release-%{non_standard_release}.inc
2023-10-28 07:07:20 +00:00
%endif
%include %{SOURCE2}
Name: uboot-%{board_name}-tfg
Version: %{major_ver}.%{minor_ver}
2023-11-10 16:46:52 +00:00
Release: %{rel_ver}%{?rc_ver:.rc%{rc_ver}}%{?master_commit:.git%{master_commit}}%{?dist}
2023-10-28 07:07:20 +00:00
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
popd
%endif
export BL31='%{BL31}'
%if "%{?ROCKCHIP_TPL}" != ""
export ROCKCHIP_TPL='%{ROCKCHIP_TPL}'
%endif
%if "%{?SCP}" == "does_not_exist"
touch scp.bin
export SCP="$PWD/scp.bin"
%elif "%{?SCP}" != ""
export SCP='%{SCP}'
%endif
2023-10-28 07:07:20 +00:00
%{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}