summaryrefslogtreecommitdiffstats
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:57:19 +0100
commit8d82eae8fd40fba8dac717af4cc317db766ab8e0 (patch)
tree4756c419777404e2186a032ef2dab12e0248460c
parent8905f7715d175c834c4d0797b2da7366ee2c8ace (diff)
downloadpoky-8d82eae8fd40fba8dac717af4cc317db766ab8e0.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] (From OE-Core rev: 25885d3b4f679c33a514d858bc20b0e21aa63721) 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>
-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() {
52 fi 52 fi
53} 53}
54 54
55do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
56
55addtask configure_ptest_base after do_configure before do_compile 57addtask configure_ptest_base after do_configure before do_compile
56addtask compile_ptest_base after do_compile before do_install 58addtask compile_ptest_base after do_compile before do_install
57addtask install_ptest_base after do_install before do_package 59addtask install_ptest_base after do_install before do_package