Add dependency on rocm-core

Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
Change-Id: I5783b116b098bc8ebad62a4fad407a29c80f19af
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>


[ROCm/rdc commit: 13c550d861]
This commit is contained in:
Icarus Sparry
2021-07-04 20:32:06 +00:00
committed by Bill(Shuzhou) Liu
parent fa9c6ad6f8
commit 506a3072e9
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -304,7 +304,7 @@ set ( CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT" )
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/postinst;
${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/prerm")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-smi-lib, libc6")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-smi-lib, libc6, rocm-core")
# RPM package specific variables
if ( DEFINED ENV{CPACK_RPM_PACKAGE_RELEASE} )
@@ -341,4 +341,9 @@ set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE
set(CPACK_RPM_PACKAGE_VERSION ${PKG_VERSION_STR})
## Add the packaging directives
# Remove dependency on rocm-core if -DROCM_DEP_ROCMCORE=ON not given to cmake
if(NOT ROCM_DEP_ROCMCORE)
string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
endif()
include (CPack)
+2
View File
@@ -113,6 +113,8 @@ if (NOT RDC_PACKAGE)
endif()
set(CPACK_PACKAGE_FILE_NAME "${RDC_PACKAGE}-${PKG_VERSION_STR}")
set ( CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core")
set ( CPACK_RPM_PACKAGE_REQUIRES "rocm-core")
## Verbose output.
set(CMAKE_VERBOSE_MAKEFILE on)