2012-11-13 14:57:42 +04:00
|
|
|
%define debug_package %nil
|
2012-08-24 11:27:57 -04:00
|
|
|
|
2012-02-01 17:53:06 +04:00
|
|
|
Name: u-boot-tools
|
2024-05-14 15:46:34 +00:00
|
|
|
Version: 2024.04
|
2020-04-17 14:36:43 +00:00
|
|
|
Release: 1
|
2012-02-01 17:53:06 +04:00
|
|
|
Summary: Tools for the u-boot Firmware
|
|
|
|
Group: System/Kernel and hardware
|
2020-04-17 14:36:43 +00:00
|
|
|
Epoch: 1
|
2024-05-14 15:46:34 +00:00
|
|
|
URL: https://docs.u-boot.org/en/v%{verson}/
|
|
|
|
Source0: https://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
|
2012-02-01 17:53:06 +04:00
|
|
|
License: GPLv2
|
2020-04-17 14:36:43 +00:00
|
|
|
BuildRequires: dtc
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
Provides: uboot-mkimage
|
2012-02-01 17:53:06 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
Das U-Boot (or just "U-Boot" for short)
|
|
|
|
is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
|
|
|
|
This package contains:
|
|
|
|
mkimage a tool that creates kernel bootable images for u-boot.
|
|
|
|
|
|
|
|
%prep
|
2020-04-17 14:36:43 +00:00
|
|
|
%setup -q -n u-boot-%{version}
|
2012-02-01 17:53:06 +04:00
|
|
|
|
|
|
|
%build
|
2020-04-17 14:36:43 +00:00
|
|
|
make defconfig
|
2012-02-01 17:53:06 +04:00
|
|
|
sed -i -e "s:-g ::" tools/Makefile || die
|
2020-04-17 14:36:43 +00:00
|
|
|
%make HOSTCC=%{__cc} HOSTSTRIP=%{__strip} USE_PRIVATE_LIBGG=yes tools-all
|
2012-02-01 17:53:06 +04:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage
|
|
|
|
install -D -m 0644 doc/mkimage.1 %{buildroot}%{_mandir}/man1/mkimage.1
|
|
|
|
gzip %{buildroot}%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/mkimage
|
|
|
|
%{_mandir}/man1/mkimage.1.*
|