diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-09-04 08:22:28 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-09-04 08:22:28 +0000 |
commit | e7b5e1602c3e3ce718a5a67a1775ff045a93e81e (patch) | |
tree | 0bed3a9ae79aa7a5a7e13f62a7276e89acefe256 /classes | |
parent | abf18fdd06972bcf2bdc9469499fb0dd6c1d2650 (diff) |
base.bbclass: Wipe install directory before running install to make rebuilding packages safer (from poky)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 6 |
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() { |