Skip to content

Commit

Permalink
[HIPIFY][build] Removed post install and uninstall script
Browse files Browse the repository at this point in the history
With file reorganization the soft link to scripts and binaries will be created using backward comaptibilty cmake code
Creating softlink using post install and uninstall scripts is not required.
  • Loading branch information
raramakr committed Apr 7, 2022
1 parent 1c949e4 commit 8c7dc08
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,9 @@ if(UNIX)
endif()#end of DEST_DIR check
endif()#end of rocm dir check
endif()
set(HIPBINDIR ${CPACK_PACKAGING_INSTALL_PREFIX}/bin)
set(ROCMBINDIR ${CPACK_PACKAGING_INSTALL_PREFIX}/../bin)
set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/hipify-clang)
configure_file(packaging/hipify-clang.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
configure_file(${CMAKE_SOURCE_DIR}/LICENSE.txt ${BUILD_DIR}/LICENSE.txt @ONLY)
configure_file(packaging/hipify-clang.postinst ${BUILD_DIR}/postinst @ONLY)
configure_file(packaging/hipify-clang.prerm ${BUILD_DIR}/prerm @ONLY)
configure_file(packaging/hipify-clang.rpm_post ${BUILD_DIR}/rpm_post @ONLY)
configure_file(packaging/hipify-clang.rpm_postun ${BUILD_DIR}/rpm_postun @ONLY)

add_custom_target(package_hipify-clang COMMAND ${CMAKE_COMMAND} .
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
Expand Down
3 changes: 0 additions & 3 deletions packaging/hipify-clang.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ endif()

#Debian package specific variables
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CPACK_DEBIAN_PACKAGE_HOMEPAGE} CACHE STRING "https://github.com/RadeonOpenCompute/ROCm")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR}/postinst;${PROJECT_BINARY_DIR}/prerm")
if(ROCM_DEP_ROCMCORE)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core")
endif()
Expand All @@ -58,8 +57,6 @@ endif()
set(CPACK_RPM_PACKAGE_AUTOREQPROV "NO")
string(REPLACE "/hip" "" ROCM_PATH @CPACK_PACKAGING_INSTALL_PREFIX@)
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt" "${ROCM_PATH}" "@CPACK_PACKAGING_INSTALL_PREFIX@" "@CPACK_PACKAGING_INSTALL_PREFIX@/bin")
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/rpm_post")
set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/rpm_postun")
if(ROCM_DEP_ROCMCORE)
set(CPACK_RPM_PACKAGE_REQUIRES "rocm-core")
endif()
Expand Down

0 comments on commit 8c7dc08

Please sign in to comment.