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


[ROCm/rocminfo commit: 2b4b0c8862]
此提交包含在:
Sean Keely committed 2021-10-29 16:23:01 -05:00
1 父節點 a665dc415f
當前提交 b289416285
1 file changed
+2 -2
+2 -2
查看文件
@@ -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()