summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-12-03 17:21:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 17:45:53 +0000
commitb4b1c90bcfe4b3baddabd5bfcea9a264be223908 (patch)
tree94a91a46106e425ac3df87008d5ab620e47d8f47 /meta/classes/ptest.bbclass
parent65535bff09afd21b6d9f129651df6c70570c3aa0 (diff)
downloadpoky-b4b1c90bcfe4b3baddabd5bfcea9a264be223908.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 rev: 64f0a0bc408d8e32d5e795aeb9fffee0539f5e22) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/ptest.bbclass')
-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 508ea9a48e..06dddf7908 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -53,3 +53,8 @@ do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
53addtask configure_ptest_base after do_configure before do_compile 53addtask configure_ptest_base after do_configure before do_compile
54addtask compile_ptest_base after do_compile before do_install 54addtask compile_ptest_base after do_compile before do_install
55addtask install_ptest_base after do_install before do_package 55addtask install_ptest_base after do_install before do_package
56
57python () {
58 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
59 d.setVarFlag('do_install_ptest_base', 'fakeroot', 1)
60}