init commit
This commit is contained in:
commit
b5b6ab07ff
6
libretech_all_h5_cc_h5.spec
Normal file
6
libretech_all_h5_cc_h5.spec
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
%global board_name libretech_all_h5_cc_h5
|
||||||
|
%global board_defconfig %{board_name}_defconfig
|
||||||
|
%global output_files u-boot-sunxi-with-spl.bin sunxi-spl.bin
|
||||||
|
|
||||||
|
Source1: package.inc
|
||||||
|
%include %{SOURCE1}
|
10
orangepi-5-plus-rk3588.spec
Normal file
10
orangepi-5-plus-rk3588.spec
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
%global board_name orangepi-5-plus-rk3588
|
||||||
|
%global board_defconfig %{board_name}_defconfig
|
||||||
|
%global output_files u-boot-rockchip.bin u-boot-rockchip-spi.bin
|
||||||
|
%global extern_rkbin true
|
||||||
|
%global rkbin_git_commit b4558da0860ca48bf1a571dd33ccba580b9abe23
|
||||||
|
|
||||||
|
Source1: package.inc
|
||||||
|
Source2: release-master.inc
|
||||||
|
Source3: https://github.com/rockchip-linux/rkbin/archive/%{rkbin_git_commit}.tar.gz
|
||||||
|
%include %{SOURCE1}
|
10
orangepi-5-rk3588s.spec
Normal file
10
orangepi-5-rk3588s.spec
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
%global board_name orangepi-5-rk3588s
|
||||||
|
%global board_defconfig %{board_name}_defconfig
|
||||||
|
%global output_files u-boot-rockchip.bin u-boot-rockchip-spi.bin
|
||||||
|
%global extern_rkbin true
|
||||||
|
%global rkbin_git_commit b4558da0860ca48bf1a571dd33ccba580b9abe23
|
||||||
|
|
||||||
|
Source1: package.inc
|
||||||
|
Source2: release-master.inc
|
||||||
|
Source3: https://github.com/rockchip-linux/rkbin/archive/%{rkbin_git_commit}.tar.gz
|
||||||
|
%include %{SOURCE1}
|
55
package.inc
Normal file
55
package.inc
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# 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 "%{SOURCE2}" == ""
|
||||||
|
Source2: release-stable.inc
|
||||||
|
%endif
|
||||||
|
#Source2: release-rc.inc
|
||||||
|
#Source2: release-master.inc
|
||||||
|
%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}
|
7
release-master.inc
Normal file
7
release-master.inc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
%global rel_ver 0
|
||||||
|
%global master_commit d5d9770f58ce0ba620e4d311bbd756b97839480a
|
||||||
|
%global major_ver 2024
|
||||||
|
%global minor_ver 01
|
||||||
|
%global src_dir u-boot-%{master_commit}
|
||||||
|
|
||||||
|
Source0: https://github.com/u-boot/u-boot/archive/%{master_commit}.tar.gz
|
7
release-rc.inc
Normal file
7
release-rc.inc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
%global rel_ver 0
|
||||||
|
%global rc_ver 1
|
||||||
|
%global major_ver 2024
|
||||||
|
%global minor_ver 01
|
||||||
|
%global src_dir u-boot-%{major_ver}.%{minor_ver}-rc%{rc_ver}
|
||||||
|
|
||||||
|
Source0: https://ftp.denx.de/pub/u-boot/u-boot-%{major_ver}.%{minor_ver}-rc%{rc_ver}.tar.bz2
|
6
release-stable.inc
Normal file
6
release-stable.inc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
%global rel_ver 0
|
||||||
|
%global major_ver 2023
|
||||||
|
%global minor_ver 10
|
||||||
|
%global src_dir u-boot-%{major_ver}.%{minor_ver}
|
||||||
|
|
||||||
|
Source0: https://ftp.denx.de/pub/u-boot/u-boot-%{major_ver}.%{minor_ver}.tar.bz2
|
9
rock5b-rk3588.spec
Normal file
9
rock5b-rk3588.spec
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
%global board_name rock5b-rk3588
|
||||||
|
%global board_defconfig %{board_name}_defconfig
|
||||||
|
%global output_files u-boot-rockchip.bin u-boot-rockchip-spi.bin
|
||||||
|
%global extern_rkbin true
|
||||||
|
%global rkbin_git_commit b4558da0860ca48bf1a571dd33ccba580b9abe23
|
||||||
|
|
||||||
|
Source1: package.inc
|
||||||
|
Source3: https://github.com/rockchip-linux/rkbin/archive/%{rkbin_git_commit}.tar.gz
|
||||||
|
%include %{SOURCE1}
|
10
rpi_arm64.spec
Normal file
10
rpi_arm64.spec
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
%global board_name rpi_arm64
|
||||||
|
%global board_defconfig %{board_name}_defconfig
|
||||||
|
%global output_files u-boot.bin
|
||||||
|
# from tag 1.20230405
|
||||||
|
#%global rpi_firm_git_commit 055e044d5359ded1aacc5a17a8e35365373d0b8b
|
||||||
|
|
||||||
|
Requires: bcm283x-firmware
|
||||||
|
|
||||||
|
Source1: package.inc
|
||||||
|
%include %{SOURCE1}
|
Loading…
Reference in New Issue
Block a user