SWDEV-438177 - move ldconfig to amd opencl package instead of icd
Change-Id: I2486f38d398a508ead7d24f03d4cf7816d5c157c
Este cometimento está contido em:
cometido por
AlexBin Xie
ascendente
5158ec1c00
cometimento
06ff62da61
@@ -2,8 +2,11 @@
|
||||
|
||||
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@)
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
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@
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
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@)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
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@
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador