commit a7086662ff0a77cb4f965561804991531c6aa9b4 Author: Jan Palus <[email protected]> Date: Sun Jan 3 16:44:49 2021 +0100
always explicitly define ARCH in %build_kernel_modules
macros.kernel | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/macros.kernel b/macros.kernel
index 12f2f4c..db1755a 100644
--- a/macros.kernel
+++ b/macros.kernel
@@ -164,6 +164,15 @@ done)
ARCH=%{_target_base_arch} CROSS_COMPILE=%{_target_cpu}-pld-linux- \\\
%endif
\\\
%else
\\\
+ %ifarch aarch64
\\\
+ ARCH=arm64
\\\
+ %endif
\\\
+ %ifarch ppc ppc64
\\\
+ ARCH=powerpc
\\\
+ %endif
\\\
+ %ifnarch aarch64 ppc ppc64
\\\
+ ARCH=%{_target_base_arch}
\\\
+ %endif
\\\
CC="%{__cc}"
\\\
%endif
\
%define MakeOpts HOSTCC="%{__cc}" SYSSRC=%{_kernelsrcdir} SYSOUT=$PWD/o
\\\\\\\
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/a7086662ff0a77cb4f965561804991531c6aa9b4
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
