ptest: ensure do_install_ptest_base task runs in fakeroot context
As this task is installing files into $D it needs to run inside pseudo so that special permissions and owners are preserved. (From OE-Core master rev: 64f0a0bc408d8e32d5e795aeb9fffee0539f5e22) (From OE-Core rev: dbfc8b977dd9c8223568bbaf58e236461d6adcf6) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
32c7150b04
commit
8299a1ee71
|
@ -57,3 +57,8 @@ 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
|
||||
|
||||
python () {
|
||||
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
|
||||
d.setVarFlag('do_install_ptest_base', 'fakeroot', 1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue