diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-06-21 23:56:25 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-30 20:57:05 +0100 |
commit | 477f685ce0cb48acf04074ff5be321b38e9974d5 (patch) | |
tree | 041dbede777e5e3c1fb54260301d408e64d06874 /meta/classes/image.bbclass | |
parent | b320f558ed06fc1b1f5a61c638fbaabeb0e24f64 (diff) | |
download | poky-477f685ce0cb48acf04074ff5be321b38e9974d5.tar.gz |
Add umask task control
Bitbake now allows the umask to be specified per task. The
following tasks will have a umask of 022 set by default:
do_configure
do_compile
do_install
do_package
do_populate_sysroot
do_rootfs
do_configure and do_compile need a umask of 022 set because -many- recipes
directly copy generated files out of recipe's build directory. Instead of
fixing each existing and future recipe, it was shown to be much easier to
just set the umask.
(From OE-Core rev: 0cfa7ebcf661aa0645c6d4d858b04946ebacb7e4)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 2469442d70..e77ec427fc 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -83,6 +83,8 @@ do_build[nostamp] = "1" | |||
83 | 83 | ||
84 | # Must call real_do_rootfs() from inside here, rather than as a separate | 84 | # Must call real_do_rootfs() from inside here, rather than as a separate |
85 | # task, so that we have a single fakeroot context for the whole process. | 85 | # task, so that we have a single fakeroot context for the whole process. |
86 | do_rootfs[umask] = 022 | ||
87 | |||
86 | fakeroot do_rootfs () { | 88 | fakeroot do_rootfs () { |
87 | #set -x | 89 | #set -x |
88 | rm -rf ${IMAGE_ROOTFS} | 90 | rm -rf ${IMAGE_ROOTFS} |