[oe-commits] org.oe.dev sanity.bbclass: Requiring MACHINE to be set is too paranoid.

pfalcon commit openembedded-commits at lists.openembedded.org
Sat Dec 15 07:04:57 UTC 2007


sanity.bbclass: Requiring MACHINE to be set is too paranoid.
* It's pretty legal to have only TARGET_ARCH set, for example to build
non-machine-specific packages (for example, using external SDK).

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 3afbe0b60ab4c00ea448ef08a1d2f4da08be3465
ViewMTN: http://monotone.openembedded.org/revision/info/3afbe0b60ab4c00ea448ef08a1d2f4da08be3465
Files:
1
classes/sanity.bbclass
Diffs:

#
# mt diff -r7830f5e90162b4508a3948a7473f7d5ce3323e61 -r3afbe0b60ab4c00ea448ef08a1d2f4da08be3465
#
# 
# 
# patch "classes/sanity.bbclass"
#  from [808f5e34043a37c456f2b223aace94f414b22349]
#    to [a81f2a3b9cc1e0daf9c88d6874dd369ef2c660b5]
# 
============================================================
--- classes/sanity.bbclass	808f5e34043a37c456f2b223aace94f414b22349
+++ classes/sanity.bbclass	a81f2a3b9cc1e0daf9c88d6874dd369ef2c660b5
@@ -70,8 +70,9 @@ def check_sanity(e):
 	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
-	if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data):
+	# Check that the MACHINE is valid, if it is set
+	if data.getVar('MACHINE', e.data, True):
+	    if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data):
 		messages = messages + 'Please set a valid MACHINE in your local.conf\n'
 	
 	# Check that the DISTRO is valid






More information about the Openembedded-commits mailing list