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>
This commit is contained in:
parent
8905f7715d
commit
8d82eae8fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue