Skip to content

Commit

Permalink
Modify dkms deb package 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 96f2fe4 commit 736275d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/build-deb-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ if [[ ${build_driver_package} == 1 ]]; then
ex cp -r ${tmpdir}/gdrcopy/src/gdrdrv ${dkmsdir}/gdrdrv-${VERSION}
ex rm -rf ${dkmsdir}/gdrdrv-${VERSION}/debian-*
ex cp ${SCRIPT_DIR_PATH}/dkms.conf ${dkmsdir}/gdrdrv-${VERSION}/
ex cp -r ${TOP_DIR_PATH}/scripts ${dkmsdir}/gdrdrv-${VERSION}
ex cd ${dkmsdir}
ex cp -r ${SCRIPT_DIR_PATH}/dkms/* .
ex find . -type f -exec sed -i "s/@FULL_VERSION@/${FULL_VERSION}/g" {} +
Expand Down
1 change: 1 addition & 0 deletions packages/dkms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ PACKAGE_VERSION="@FULL_VERSION@"
BUILT_MODULE_NAME[0]="gdrdrv"
DEST_MODULE_LOCATION[0]="@MODULE_LOCATION@"
AUTOINSTALL="yes"
MAKE[0]="cd $dkms_tree/gdrdrv/@FULL_VERSION@/build && make CONF_SCRIPT_DIR=scripts KVER=$kernelver"
3 changes: 3 additions & 0 deletions packages/dkms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ ifeq ("$(wildcard $(NAME)-$(VERSION))", "$(NAME)-$(VERSION)")

# sets 0755 for dirs, 0644 for files
chmod a-wx+rX,u+w -R "$(SRC)/$(NAME)-$(VERSION)"

# set u+x for all files under the scripts folder
chmod u+x -R "$(SRC)/$(NAME)-$(VERSION)/scripts"
endif

#tarball, possibly with binaries
Expand Down

0 comments on commit 736275d

Please sign in to comment.