diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-09-05 13:58:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-10 15:57:19 +0100 |
commit | 8d82eae8fd40fba8dac717af4cc317db766ab8e0 (patch) | |
tree | 4756c419777404e2186a032ef2dab12e0248460c | |
parent | 8905f7715d175c834c4d0797b2da7366ee2c8ace (diff) | |
download | poky-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.bbclass | 2 |
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 | ||
55 | do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}" | ||
56 | |||
55 | addtask configure_ptest_base after do_configure before do_compile | 57 | addtask configure_ptest_base after do_configure before do_compile |
56 | addtask compile_ptest_base after do_compile before do_install | 58 | addtask compile_ptest_base after do_compile before do_install |
57 | addtask install_ptest_base after do_install before do_package | 59 | addtask install_ptest_base after do_install before do_package |