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]
Dieser Commit ist enthalten in:
1 Ursprung
a665dc415f
Commit
b289416285
1 Datei geändert
+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()
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren