25280d88c1
Create symlink directory before attmpting to create the symlink.
Change-Id: Ic4d07052e5bfc32280c7d71e58784cbba3536e2a
[ROCm/ROCR-Runtime commit: d163fac13d]
22 行
429 B
Plaintext
22 行
429 B
Plaintext
#/bin/bash
|
|
|
|
set -e
|
|
|
|
do_ldconfig() {
|
|
echo @CPACK_PACKAGING_INSTALL_PREFIX@/hsa/lib > /etc/ld.so.conf.d/hsa-rocr-dev.conf && ldconfig
|
|
}
|
|
|
|
case "$1" in
|
|
configure)
|
|
do_ldconfig
|
|
mkdir -p @CPACK_PACKAGING_INSTALL_PREFIX@/include
|
|
ln -sf ../hsa/include/hsa @CPACK_PACKAGING_INSTALL_PREFIX@/include/hsa
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
echo "$1"
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|