]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
always explicitly define ARCH in %build_kernel_modules
authorJan Palus <atler@pld-linux.org>
Sun, 3 Jan 2021 15:44:49 +0000 (16:44 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 3 Jan 2021 15:44:49 +0000 (16:44 +0100)
macros.kernel

index 12f2f4cf03e4b146971bb3e64c5a4fe799b3c0da..db1755a486b6b6049d64e257b17d3b96becb2985 100644 (file)
@@ -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 \\\\\\\
This page took 0.487291 seconds and 4 git commands to generate.