During the %prep phase we run "make listnewconfig" and "make oldnoconfig" for
all six supported architectures (arm64, arm, i386, powerpc, s390, and x86_64).
We only care about the set of .configs that is relevant for the current build
architecture. So skip these two make targets for the other architectures.

Signed-off-by: Paul Bolle <[email protected]>
---
 kernel.spec | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel.spec b/kernel.spec
index f0fe21fef94b..e791d2565efc 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1250,6 +1250,9 @@ for i in *.config
 do
   mv $i .config
   Arch=`head -1 .config | cut -b 3-`
+  if [ $Arch != %{hdrarch} ]; then
+    continue
+  fi
 %if %{listnewconfig_fail}
   make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
   if [ -s .newoptions ]; then
-- 
2.7.4
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to