aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-09-05 13:58:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-10 15:25:55 +0100
commit25885d3b4f679c33a514d858bc20b0e21aa63721 (patch)
treec4e9abbca5c8169184eeedfa04738bdaa9c84f6f /meta
parentd5a4f031b460437e9501e4e65194ce94d3641130 (diff)
downloadopenembedded-core-25885d3b4f679c33a514d858bc20b0e21aa63721.tar.gz
ptest.bbclass: add cleandirs flag to do_install_ptest_base
The do_install_ptest_base task should have cleandirs flag, just like the do_install task. The ${D}${PTEST_PATH} directory should be cleaned, Otherwise, there would be similar errors like below if the do_install_ptest_base task is rerun. ln: failed to create symbolic link `xxx': File exists [YOCTO #5129] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/ptest.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 15a42d6c25..d67b4e659f 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -52,6 +52,8 @@ do_install_ptest_base() {
fi
}
+do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
+
addtask configure_ptest_base after do_configure before do_compile
addtask compile_ptest_base after do_compile before do_install
addtask install_ptest_base after do_install before do_package