]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Swicth to use cleandirs flag for install task
authorRichard Purdie <richard@openedhand.com>
Wed, 5 Sep 2007 08:41:10 +0000 (08:41 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 5 Sep 2007 08:41:10 +0000 (08:41 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2694 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/base.bbclass

index 9bcf212e959cd3a9eb78e190df7656622eb69705..ed78c721724245da5f9dded26402a403e3b4e11c 100644 (file)
@@ -374,12 +374,6 @@ 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() {
@@ -695,6 +689,7 @@ python do_populate_staging () {
 
 addtask install after do_compile
 do_install[dirs] = "${D} ${S} ${B}"
+do_install[cleandirs] = "${D}"
 
 base_do_install() {
        :