summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-12-03 17:21:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-09 11:04:13 +0000
commit8299a1ee7183e62041023ff19b4b745b107059e5 (patch)
treea7d258204dac398231e6654d5f3e3a04519094f9 /meta
parent32c7150b046df43f9d69d1a7d5eac2c71d137aa0 (diff)
downloadpoky-8299a1ee7183e62041023ff19b4b745b107059e5.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/ptest.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 7cc8d26d8c..897f29197e 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -57,3 +57,8 @@ do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
57addtask configure_ptest_base after do_configure before do_compile 57addtask configure_ptest_base after do_configure before do_compile
58addtask compile_ptest_base after do_compile before do_install 58addtask compile_ptest_base after do_compile before do_install
59addtask install_ptest_base after do_install before do_package 59addtask install_ptest_base after do_install before do_package
60
61python () {
62 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
63 d.setVarFlag('do_install_ptest_base', 'fakeroot', 1)
64}