From 07177ef255e565b08b21c5062c62dce7cb54afbb Mon Sep 17 00:00:00 2001 From: Andy Dick Date: Thu, 24 Oct 2019 11:16:50 -0700 Subject: [PATCH] Add aarch64 support to 440-modularity --- dkms-nvidia.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dkms-nvidia.spec b/dkms-nvidia.spec index 8781572..69b546f 100755 --- a/dkms-nvidia.spec +++ b/dkms-nvidia.spec @@ -9,11 +9,12 @@ Epoch: 3 License: NVIDIA License URL: http://www.nvidia.com/object/unix.html # Package is not noarch as it contains pre-compiled binary code -ExclusiveArch: x86_64 ppc64le +ExclusiveArch: x86_64 ppc64le aarch64 Source0: %{dkms_name}-kmod-%{version}-x86_64.tar.xz Source1: dkms-%{dkms_name}.conf Source2: %{dkms_name}-kmod-%{version}-ppc64le.tar.xz +Source3: %{dkms_name}-kmod-%{version}-aarch64.tar.xz BuildRequires: sed Provides: %{dkms_name}-kmod = %{?epoch:%{epoch}:}%{version} @@ -36,6 +37,11 @@ cp -f %{SOURCE1} kernel/dkms.conf cp -f %{SOURCE1} kernel/dkms.conf %endif +%ifarch aarch64 +%setup -q -T -b 3 -n %{dkms_name}-kmod-%{version}-aarch64 +cp -f %{SOURCE1} kernel/dkms.conf +%endif + sed -i -e 's/__VERSION_STRING/%{version}/g' kernel/dkms.conf %build