INSTALL - Add rdci binary
Change-Id: I2b7047989b650d6a3998d7a5b37fad7ade876b17
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
[ROCm/rdc commit: c22a737ce7]
This commit is contained in:
@@ -34,9 +34,10 @@ do_update_alternatives(){
|
||||
|
||||
binaries=(
|
||||
rdcd
|
||||
rdci
|
||||
)
|
||||
|
||||
for i in $binaries
|
||||
for i in "${binaries[@]}"
|
||||
do
|
||||
# No obvious recover strategy if things fail
|
||||
# No manual or other slave pages to install
|
||||
|
||||
@@ -5,9 +5,10 @@ do_update_alternatives(){
|
||||
command -v update-alternatives >/dev/null || return 0
|
||||
binaries=(
|
||||
rdcd
|
||||
rdci
|
||||
)
|
||||
|
||||
for i in "$binaries"
|
||||
for i in "${binaries[@]}"
|
||||
do
|
||||
update-alternatives --remove $i @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/$i
|
||||
done
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
do_update_alternatives(){
|
||||
# skip update if program doesn't exist
|
||||
command -v update-alternatives >/dev/null || return 0
|
||||
binaries=(
|
||||
binaries=(
|
||||
rdcd
|
||||
rdci
|
||||
)
|
||||
|
||||
for i in "$binaries"
|
||||
for i in "${binaries[@]}"
|
||||
do
|
||||
update-alternatives --remove $i @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/$i
|
||||
update-alternatives --remove "$i" @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/$i
|
||||
done
|
||||
}
|
||||
|
||||
@@ -35,7 +36,7 @@ reload_systemd() {
|
||||
return 0
|
||||
}
|
||||
|
||||
if [ $1 -le 1 ]; then
|
||||
if [ "$1" -le 1 ]; then
|
||||
# perform the below actions for rpm remove($1=0) or upgrade($1=1) operations
|
||||
stop_rdc
|
||||
rm_rdc_service
|
||||
|
||||
@@ -33,9 +33,10 @@ do_update_alternatives(){
|
||||
altscore=$((altscore*1000000+(now-1600000000)/60))
|
||||
binaries=(
|
||||
rdcd
|
||||
rdci
|
||||
)
|
||||
|
||||
for i in $binaries
|
||||
for i in "${binaries[@]}"
|
||||
do
|
||||
# No obvious recover strategy if things fail
|
||||
# No manual or other slave pages to install
|
||||
|
||||
Reference in New Issue
Block a user