Sisyphus repository
Last update: 27 may 2020 | SRPMs: 17560 | Visits: 18619908
en ru br
ALT Linux repos

Group :: System/Kernel and hardware
RPM: u-boot-rockchip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: u-boot-rockchip
Version: 2020.04
Release: alt1

Summary: Das U-Boot
License: GPLv2+
Group: System/Kernel and hardware

ExclusiveArch: aarch64

Source: %name-%version-%release.tar

BuildRequires: atf-rockchip >= 2.0
BuildRequires: bc ccache dtc >= 1.4 flex
BuildRequires: python3-dev swig
BuildRequires: python3(elftools.elf.elffile)

boot loader for embedded boards based on PowerPC, ARM, MIPS and several
other processors, which can be installed in a boot ROM and used to
initialize and test the hardware or to download and run application code.
This package supports various Rockchip RK3399 based boards.

fgrep -lr CONFIG_ROCKCHIP_RK3399 configs |xargs sed -i \
-e '/^CONFIG_DEFAULT_FDT_FILE/ s,rockchip/,,' \
-e '/^CONFIG_BAUDRATE/ s,1500000,115200,'
sed -E '/^CONFIG_DEFAULT_FDT_FILE=/ s,=.+$,="rk3399-sapphire-excavator.dtb",' \
< configs/evb-rk3399_defconfig > configs/rk3399-sapphire-excavator_defconfig

export PYTHON=python3
export BL31=%_datadir/atf/rk3399/bl31.elf

 mkdir build
 %make_build O=build ${board}_defconfig all
 install -pm0644 -D build/u-boot.itb out/${board}/u-boot.itb
 grep -q ^CONFIG_TPL= build/.config && {
   build/tools/mkimage -n rk3399 -T rksd -d build/tpl/u-boot-tpl-dtb.bin out/${board}/idbspl.img
   cat build/spl/u-boot-spl-dtb.bin >> out/${board}/idbspl.img
 } || {
   build/tools/mkimage -n rk3399 -T rksd -d build/spl/u-boot-spl.bin out/${board}/idbspl.img
 rm -rf build

boards=$(fgrep -lr CONFIG_ROCKCHIP_RK3399 configs |sed 's,^configs/\(.\+\)_defconfig,\1,')
for board in $boards; do buildit; done

mkdir -p %buildroot%_datadir/u-boot
cd out
find . -type f | cpio -pmd %buildroot%_datadir/u-boot

%doc README doc/README.rockchip


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin