base.bbclass: Wipe install directory before running install to make rebuilding packag...
authorRichard Purdie <rpurdie@rpsys.net>
Tue, 4 Sep 2007 08:22:28 +0000 (08:22 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Tue, 4 Sep 2007 08:22:28 +0000 (08:22 +0000)
classes/base.bbclass

index 1a3739f..304eaec 100644 (file)
@@ -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() {