cb625e8fb2
Revert "SWDEV-310152 - Remove ldconfig from rocm-ocl-icd package"
This reverts commit 0f5c2f0ba8.
Change-Id: Id07f4c8b2915c4ed7937094087ddba8402444da9
20 baris
289 B
Bash
20 baris
289 B
Bash
#!/bin/bash
|
|
|
|
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
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|