summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-09-04 08:22:28 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-09-04 08:22:28 +0000
commite7b5e1602c3e3ce718a5a67a1775ff045a93e81e (patch)
tree0bed3a9ae79aa7a5a7e13f62a7276e89acefe256 /classes/base.bbclass
parentabf18fdd06972bcf2bdc9469499fb0dd6c1d2650 (diff)
base.bbclass: Wipe install directory before running install to make rebuilding packages safer (from poky)
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 1a3739f383..304eaecb10 100644
--- a/classes/base.bbclass
+++ b/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() {