Skip to content

Commit

Permalink
Modify rpm package creation to support the new gdrdrv Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pakmarkthub committed Nov 29, 2024
1 parent 736275d commit 428e8fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/build-rpm-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ex cd ${TOP_DIR_PATH}

ex mkdir -p $tmpdir/gdrcopy
ex rm -rf $tmpdir/gdrcopy/*
ex cp -r packages/dkms.conf packages/rhel/init.d packages/rhel/gdrcopy.service insmod.sh Makefile README.md include src tests config_arch LICENSE packages/gdrcopy.spec $tmpdir/gdrcopy/
ex cp -r packages/dkms.conf packages/rhel/init.d packages/rhel/gdrcopy.service scripts/ insmod.sh Makefile README.md include src tests config_arch LICENSE packages/gdrcopy.spec $tmpdir/gdrcopy/
ex rm -f $tmpdir/gdrcopy-$VERSION.tar.gz

ex cd $tmpdir/gdrcopy
Expand Down
2 changes: 2 additions & 0 deletions packages/gdrcopy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ cp -a $RPM_BUILD_DIR/%{name}-%{version}/src/gdrdrv/gdrdrv.h $RPM_BUILD_ROOT%{usr
cp -a $RPM_BUILD_DIR/%{name}-%{version}/src/gdrdrv/Makefile $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}/
cp -a $RPM_BUILD_DIR/%{name}-%{version}/src/gdrdrv/nv-p2p-dummy.c $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}/
cp -a $RPM_BUILD_DIR/%{name}-%{version}/dkms.conf $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}
cp -a -r $RPM_BUILD_DIR/%{name}-%{version}/scripts $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}/

%if 0%{!?suse_version:1}
# RHEL
Expand Down Expand Up @@ -341,6 +342,7 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%{usr_src_dir}/gdrdrv-%{version}/Makefile
%{usr_src_dir}/gdrdrv-%{version}/nv-p2p-dummy.c
%{usr_src_dir}/gdrdrv-%{version}/dkms.conf
%{usr_src_dir}/gdrdrv-%{version}/scripts/*


%if %{BUILD_KMOD} > 0
Expand Down

0 comments on commit 428e8fa

Please sign in to comment.