2a0ecb1e56
Wrapper header files
Soft link to libraries and binaries
rocm_smi.py and rsmiBindings.py installed in libexec/rocm_smi
Binaries, libraries and header files installed as per File Reorg folder structure
Change-Id: I3166ab67f89c2ae4aafbc87bb00c9a5233221ade
[ROCm/amdsmi commit: f1da5591b5]
24 lines
425 B
Bash
Executable File
24 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
do_ldconfig() {
|
|
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
echo @CPACK_PACKAGING_INSTALL_PREFIX@/lib > /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf
|
|
ldconfig
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
( configure )
|
|
do_ldconfig
|
|
;;
|
|
( abort-upgrade | abort-remove | abort-deconfigure )
|
|
echo "$1"
|
|
;;
|
|
( * )
|
|
exit 0
|
|
;;
|
|
esac
|