Split hip packages into smaller components

[ROCm/hip commit: f0e11d9856]
This commit is contained in:
Maneesh Gupta
2016-04-15 12:13:04 +05:30
parent 42df341237
commit 425c5f9ade
9 changed files with 229 additions and 43 deletions
+35
View File
@@ -0,0 +1,35 @@
#!/bin/bash
pushd () {
command pushd "$@" > /dev/null
}
popd () {
command popd "$@" > /dev/null
}
ROCMDIR=/opt/rocm
HIPDIR=$ROCMDIR/hip
# Remove soft-link to bin files
HIPBINFILES=$HIPDIR/bin/*
ROCMBINDIR=$ROCMDIR/bin
pushd $ROCMBINDIR
for f in $HIPBINFILES
do
rm $(basename $f)
done
popd
rmdir --ignore-fail-on-non-empty $ROCMBINDIR
# Remove soft-link to headers
HIPINCDIR=$HIPDIR/include
ROCMINCDIR=$ROCMDIR/include
pushd $ROCMINCDIR
rm hip
popd
pushd $HIPINCDIR
rm hip
popd
rmdir --ignore-fail-on-non-empty $ROCMINCDIR