forked from Imagelibrary/rtems
Clean up /opt/rtems in case junk is installed in the wrong place.
This has been seen on some machine configurations.
This commit is contained in:
@@ -63,9 +63,9 @@ newlib=${newlib_version}
|
|||||||
buildroot=/tmp
|
buildroot=/tmp
|
||||||
|
|
||||||
testing=no
|
testing=no
|
||||||
do_binutils=no
|
do_binutils=yes
|
||||||
do_gdb=no
|
do_gccnewlib=yes
|
||||||
do_gccnewlib=no
|
do_gdb=yes
|
||||||
|
|
||||||
#
|
#
|
||||||
# Now get started
|
# Now get started
|
||||||
@@ -148,7 +148,6 @@ do
|
|||||||
echo "rpm -ba ${specfile} >${logfile} 2>&1"
|
echo "rpm -ba ${specfile} >${logfile} 2>&1"
|
||||||
if [ ${testing} = no ] ; then
|
if [ ${testing} = no ] ; then
|
||||||
rpm -ba ${specfile} >${logfile} 2>&1
|
rpm -ba ${specfile} >${logfile} 2>&1
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
|
${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
|
||||||
${ECHO} rm -rf ${buildroot}/opt/rtems
|
${ECHO} rm -rf ${buildroot}/opt/rtems
|
||||||
@@ -156,6 +155,7 @@ exit 0
|
|||||||
echo uninstalling binutils for ${target}
|
echo uninstalling binutils for ${target}
|
||||||
if [ ${testing} = no ] ; then
|
if [ ${testing} = no ] ; then
|
||||||
rpm -e `rpm -qa | grep rtems`
|
rpm -e `rpm -qa | grep rtems`
|
||||||
|
rm -rf /opt/rtems/*
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo Skipping gcc/newlib for ${target}
|
echo Skipping gcc/newlib for ${target}
|
||||||
|
|||||||
Reference in New Issue
Block a user