b3d035b1dc
Update the packaging code to be CMake 3.5 compatible for CI. Create two packages rocm-opencl and rocm-opencl-dev on Ubuntu and CentOS. Add proper versioning into naming. Change-Id: I116081b7f6f7efa4be43ab3a66e4d3bff0589298
20 lignes
227 B
Bash
20 lignes
227 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
rm_ldconfig() {
|
|
rm -f /etc/ld.so.conf.d/x86_64-rocm-opencl.conf && ldconfig
|
|
rm -f /etc/OpenCL/vendors/amdocl64.icd
|
|
}
|
|
|
|
case "$1" in
|
|
purge)
|
|
;;
|
|
remove)
|
|
rm_ldconfig
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|