- Do not set %{?linux_make_arch} for running make modules/modules-install

- supersedes 550.135.patch

OBS-URL: https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed?expand=0&rev=163
This commit is contained in:
Stefan Dirsch 2024-12-07 16:38:16 +00:00 committed by Git OBS Bridge
parent 2c38047e37
commit bf7d94d7fb
2 changed files with 2 additions and 16 deletions

View File

@ -1,13 +0,0 @@
Index: open-gpu-kernel-modules-550.135/kernel-open/Makefile
===================================================================
--- open-gpu-kernel-modules-550.135.orig/kernel-open/Makefile
+++ open-gpu-kernel-modules-550.135/kernel-open/Makefile
@@ -83,7 +83,7 @@ else
KERNEL_ARCH = $(ARCH)
- ifneq ($(filter $(ARCH),i386 x86_64),)
+ ifneq ($(filter $(ARCH),i386 x86_64 x86),)
KERNEL_ARCH = x86
else
ifeq ($(filter $(ARCH),arm64 powerpc),)

View File

@ -88,7 +88,6 @@ Source14: group-source-files.pl
Source15: kmp-trigger.sh
Patch0: persistent-nvidia-id-string.patch
%if "%{flavor}" != "cuda"
Patch1: 550.135.patch
%ifarch aarch64
%if 0%{?suse_version} >= 1600
Patch2: aarch64-TW-buildfix.patch
@ -214,7 +213,7 @@ for flavor in %{flavors_to_build}; do
export SYSSRC=/usr/src/linux
fi
export SYSOUT=/usr/src/linux-obj/%_target_cpu/$flavor
make %{?_smp_mflags} %{?linux_make_arch} modules
make %{?_smp_mflags} modules
popd
done
@ -231,7 +230,7 @@ for flavor in %{flavors_to_build}; do
export SYSSRC=/usr/src/linux
fi
export SYSOUT=/usr/src/linux-obj/%_target_cpu/$flavor
make %{?linux_make_arch} modules_install
make modules_install
popd
done