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:
committed by
Bill(Shuzhou) Liu
parent
fa9c6ad6f8
commit
506a3072e9
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user