Add dependency on kmod.

rocminfo uses lsmod to check for loaded drivers.  Use of sysfs is
possible but sysfs' stable interface does not allow for easy parsing.
Use of lsmod avoids needing to walk the sysfs tree and avoids issues
of permissions to examine sysfs.

Both Debian and Fedora list lsmod under kmod.  Presumption is that
CentOS and RHEL also follow this.

Change-Id: Ic5033e0b780100c54d2fe0b4f501c40acbc237fb
This commit is contained in:
Sean Keely
2021-09-20 21:30:10 -05:00
parent 86560046de
commit 2b4b0c8862
+2 -2
View File
@@ -202,7 +202,7 @@ if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
endif()
#Debian package specific variables
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hsa-rocr")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hsa-rocr, kmod")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CPACK_DEBIAN_PACKAGE_HOMEPAGE} CACHE STRING "https://github.com/RadeonOpenCompute/ROCm")
if (DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE})
set(CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE})
@@ -214,7 +214,7 @@ if ( ROCM_DEP_ROCMCORE )
endif()
#RPM package specific variables
set(CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr")
set(CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr kmod")
if(DEFINED CPACK_PACKAGING_INSTALL_PREFIX)
set ( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}" )
endif()