Репозиторий Sisyphus
Последнее обновление: 24 октября 2020 | Пакетов: 17689 | Посещений: 19468764
en ru br
Репозитории ALT

Группа :: Система/Ядро и оборудование
Пакет: u-boot-rockchip

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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)

%description
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.

%prep
%setup
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

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

buildit()
{
 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

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

%files
%doc README doc/README.rockchip
%_datadir/u-boot/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin