From e7b5e1602c3e3ce718a5a67a1775ff045a93e81e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 4 Sep 2007 08:22:28 +0000 Subject: base.bbclass: Wipe install directory before running install to make rebuilding packages safer (from poky) --- classes/base.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) 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() { -- cgit v1.2.3