[packages/kernel-tools] explicitly pass ARCH in makeopts

atler atler at pld-linux.org
Sat Dec 19 00:10:54 CET 2020


commit e6e29afa076a50c388e19acaeddc789f90ac2204
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Dec 18 23:46:38 2020 +0100

    explicitly pass ARCH in makeopts

 kernel-tools.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index fa156fb..a77f759 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -99,7 +99,17 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # otherwise /usr/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character
 %define		_enable_debug_packages	0
 
-%define		makeopts	CC="%{__cc}" %{?with_verbose:V=1}
+%ifarch ppc ppc64
+%define		makearch	powerpoc
+%else
+%ifarch aarch64
+%define		makearch	arm64
+%else
+%define		makearch	%{_target_base_arch}
+%endif
+%endif
+
+%define		makeopts	ARCH=%{makearch} CC="%{__cc}" %{?with_verbose:V=1}
 
 %description
 This package contains the software from tools/ subdirectory from Linux
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/21836c3cca38265ed5ebf8b43ebd4b81cf32413d



More information about the pld-cvs-commit mailing list