Skip to content

Commit

Permalink
Add aarch64 support to 440-modularity
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyDick authored and kmittman committed Oct 24, 2019
1 parent d7415a5 commit 07177ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dkms-nvidia.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down

0 comments on commit 07177ef

Please sign in to comment.