]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest.bbclass: add cleandirs flag to do_install_ptest_base
authorChen Qi <Qi.Chen@windriver.com>
Thu, 5 Sep 2013 13:58:26 +0000 (13:58 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Sep 2013 14:25:55 +0000 (15:25 +0100)
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>
meta/classes/ptest.bbclass

index 15a42d6c25335dc3df2f97a5724377503090fa43..d67b4e659fc5ad2def4ffdfb8fa4ead9857d07f2 100644 (file)
@@ -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