diff --git a/u-boot.spec b/u-boot.spec index ff974a2..68cdc94 100644 --- a/u-boot.spec +++ b/u-boot.spec @@ -1,6 +1,4 @@ -# # u-boot multiplatform specfile -# Copyright (c) 2007-2010 by Silvan Calarco # # Build examples: # rpmbuild -ba u-boot.spec --define="TARGET_BOARD pxa255_idp" --target="arm" @@ -11,22 +9,25 @@ # Name: u-boot -Version: 2009.11.1 +Version: 2024.01 Release: 1mamba Summary: Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://u-boot.sourceforge.net/ -Source: ftp://ftp.denx.de/pub/u-boot/%{name}-%{version}.tar.bz2 -#Source: http://surfnet.dl.sourceforge.net/sourceforge/u-boot/%{name}-%{version}.tar.bz2 +URL: https://www.denx.de/wiki/U-Boot/WebHome +Source: https://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2 Patch0: u-boot-1.1.4-pxa255_idp.patch Patch1: u-boot-1.1.6-phycore-pxa270-4.diff Patch2: u-boot-1.1.6-mainstone.patch Patch3: u-boot-1.1.6-mainstone_rr.patch +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libncurses-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. @@ -50,16 +51,14 @@ Group: System/Kernel and Hardware 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. +%debug_package + %prep %setup -q -%if "%{?TARGET_BOARD}" -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%endif -sed -i "s|-idirafter|-I|" tools/Makefile %build +make defconfig + %if "%{?TARGET_BOARD}" %if "%{?TARGET_BOARD}" == "mainstone_rr" patch -p1 < %{PATCH3} @@ -70,14 +69,20 @@ sed -i "s|-idirafter|-I|" tools/Makefile CROSS_COMPILE=%{_target_platform}- make all %else # configure for a fictituous target (only tools will be build) -%make TQM850L_config -%make CC=%{_target_platform}-gcc tools +%make tools-all %endif %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} -install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage -#install -d -m 0755 tools/img2srec %{buildroot}%{_bindir}/img2srec + +for f in {mk{,env}image,env/fw_printenv,img2srec,dumpimage,netconsole,jtagconsole,ncb,kwboot}; do + install -D -m 0755 tools/${f} %{buildroot}%{_bindir}/${f} +done + +for f in {mkimage,dumpimage,kwboot}; do + install -D -m 0644 doc/${f}.1 %{buildroot}%{_mandir}/man1/${f}.1 +done + %if "%{?TARGET_BOARD}" install -D -m 0755 u-boot.bin %{buildroot}/boot/u-boot-%{TARGET_BOARD}.bin install -D -m 0644 u-boot.map %{buildroot}/boot/u-boot-%{TARGET_BOARD}.map @@ -95,10 +100,24 @@ install -D -m 0644 u-boot.map %{buildroot}/boot/u-boot-%{TARGET_BOARD}.map %files tools %defattr(-,root,root) +%{_bindir}/dumpimage +%{_bindir}/env/fw_printenv +%{_bindir}/img2srec +%{_bindir}/jtagconsole +%{_bindir}/kwboot +%{_bindir}/mkenvimage %{_bindir}/mkimage -%doc COPYING CREDITS README +%{_bindir}/ncb +%{_bindir}/netconsole +%{_mandir}/man1/dumpimage.1* +%{_mandir}/man1/kwboot.1* +%{_mandir}/man1/mkimage.1* +%doc Licenses %changelog +* Tue Feb 13 2024 Silvan Calarco 2024.01-1mamba +- update to 2024.01 + * Wed Mar 31 2010 Silvan Calarco 2009.11.1-1mamba - update to 2009.11.1