[packages/uboot] define arm targets with more granularity

atler atler at pld-linux.org
Mon Jul 5 21:28:37 CEST 2021


commit 9dd38447ad0a325061f43813e8bf41259cf83d00
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 5 21:24:21 2021 +0200

    define arm targets with more granularity

 uboot.spec | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/uboot.spec b/uboot.spec
index 9d3643f..8bb692c 100644
--- a/uboot.spec
+++ b/uboot.spec
@@ -17,17 +17,20 @@ BuildRequires:	bison
 BuildRequires:	dtc
 BuildRequires:	flex
 BuildRequires:	openssl-devel
+BuildRequires:	rpmbuild(macros) >= 2.007
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		common_configs	tools-only
 
-%ifarch %{arm}
+%ifarch %{armv6}
 %define		arch_configs	rpi_0_w rpi_2
-%else
+%endif
+%ifarch %{armv7}
+%define		arch_configs	rpi_2
+%endif
 %ifarch aarch64
 %define		arch_configs	pinebook-pro-rk3399
 %endif
-%endif
 
 %define		configs %{common_configs} %{?arch_configs}
 
@@ -170,11 +173,13 @@ rm -rf $RPM_BUILD_ROOT
 %{imagedir}/pinebook-pro-rk3399
 %endif
 
-%ifarch %{arm}
+%ifarch %{armv6} %{armv7}
 %files image-raspberry-pi-2
 %defattr(644,root,root,755)
 %{imagedir}/rpi_2
+%endif
 
+%ifarch %{armv6}
 %files image-raspberry-pi-zero
 %defattr(644,root,root,755)
 %{imagedir}/rpi_0_w
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/uboot.git/commitdiff/9dd38447ad0a325061f43813e8bf41259cf83d00



More information about the pld-cvs-commit mailing list