SWDEV-310152 - Remove ldconfig from rocm-ocl-icd package
ldconfig functionality moved from rocm-ocl-icd to rocm-core package Depends-On: I1148fb36240c2e63994743ccf135e51e90695c37 Depends-On: I7ba908865187d578c273b20bf31a08a3458fbbfb Change-Id: I4769c31df12fa3f1bb8baa283e0647ce9254e594
This commit is contained in:
@@ -2,19 +2,12 @@
|
||||
|
||||
set -e
|
||||
|
||||
INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
|
||||
|
||||
do_ldconfig() {
|
||||
echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
||||
mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
abort-deconfigure|abort-remove|abort-upgrade)
|
||||
echo "$1"
|
||||
;;
|
||||
configure)
|
||||
do_ldconfig
|
||||
mkdir -p /etc/OpenCL/vendors && (echo libamdocl64.so > /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
|
||||
@@ -2,16 +2,11 @@
|
||||
|
||||
set -e
|
||||
|
||||
rm_ldconfig() {
|
||||
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
||||
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
;;
|
||||
remove | upgrade )
|
||||
rm_ldconfig
|
||||
rm -f /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
|
||||
|
||||
echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
||||
mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
|
||||
mkdir -p /etc/OpenCL/vendors && (echo libamdocl64.so > /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
if [ $1 -eq 0 ]; then
|
||||
# Remove rocm-opencl.conf during remove/uninstall operation
|
||||
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
||||
fi
|
||||
# Remove icd file for uninstall and upgrade operation
|
||||
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
|
||||
rm -f /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user