summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-09-03 13:05:32 +0000
committerRoss Burton <ross@openedhand.com>2007-09-03 13:05:32 +0000
commit6fa51c276df86e2986601d3cae2434afa35153dc (patch)
tree12e94498d5debaa7425b1ad74e4c69de96f85d9c /meta/classes
parent96940234462e2615c85e1b81f641eb85be5be0d4 (diff)
downloadopenembedded-core-6fa51c276df86e2986601d3cae2434afa35153dc.tar.gz
openembedded-core-6fa51c276df86e2986601d3cae2434afa35153dc.tar.bz2
openembedded-core-6fa51c276df86e2986601d3cae2434afa35153dc.zip
base.bbclass: Remove and re-create when installing to ensure that it is empty
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2680 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 3edef13d58..9bcf212e95 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -374,6 +374,12 @@ oe_machinstall() {
fi
}
+# Remove and re-create ${D} so that is it guaranteed to be empty
+do_install_prepend() {
+ rm -rf ${D}
+ mkdir -p ${D}
+}
+
addtask listtasks
do_listtasks[nostamp] = "1"
python do_listtasks() {