add possibility to set manual PV
[opendreambox.git] / meta-opendreambox / classes / rm_old_work.bbclass
1 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"
2
3 do_rm_old_works() {
4         subdir="${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}"
5         if [ -d "$subdir" ]; then
6            for v in `ls $subdir`; do
7                if [ "$subdir/$v" != "${WORKDIR}" ]; then
8                   echo "Deleting old work dir $v"
9                   rm -rf $subdir/$v
10                fi
11            done
12         fi
13 }
14
15 addtask rm_old_works before do_unpack