summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-08-12 23:48:04 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-08-12 23:48:04 +0000
commit4beefd8d587634df350d0e4a9f366fc9e2c98203 (patch)
tree3af3c0f4d72204f2dba50dc6fd018e53b458d7fc /classes
parent21abeeb94455504cbac2afdf6cab600dadd44bca (diff)
sanity.bbclass: Sync with Poky for umask check
Diffstat (limited to 'classes')
-rw-r--r--classes/sanity.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index f0333b1cf7..479abce7fa 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -65,8 +65,9 @@ def check_sanity(e):
if data.getVar('TARGET_OS', e.data, True) == 'INVALID':
messages = messages + 'Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.\n'
+ assume_provided = data.getVar('ASSUME_PROVIDED', e.data , True).split()
# Check user doesn't have ASSUME_PROVIDED = instead of += in local.conf
- if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split():
+ if "diffstat-native" not in assume_provided:
messages = messages + 'Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n'
# Check that the MACHINE is valid
@@ -99,6 +100,11 @@ def check_sanity(e):
missing = missing.rstrip(',')
messages = messages + "Please install following missing utilities: %s\n" % missing
+ omask = os.umask(022)
+ if omask & 0755:
+ messages = messages + "Please use a umask which allows a+rx and u+rwx\n"
+ os.umask(omask)
+
oes_bb_conf = data.getVar( 'OES_BITBAKE_CONF', e.data, True )
if not oes_bb_conf:
messages = messages + 'You do not include OpenEmbeddeds version of conf/bitbake.conf\n'