summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index acda1a9e46..b054146bd1 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -147,9 +147,13 @@ def check_sanity(e):
147 if (LooseVersion(__version__) < LooseVersion(minversion)): 147 if (LooseVersion(__version__) < LooseVersion(minversion)):
148 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, __version__) 148 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, __version__)
149 149
150 # Check TARGET_ARCH is set 150 # Check TUNE_ARCH is set
151 if data.getVar('TARGET_ARCH', e.data, True) == 'INVALID': 151 if data.getVar('TUNE_ARCH', e.data, True) == 'INVALID':
152 messages = messages + 'Please set TARGET_ARCH directly, or choose a MACHINE or DISTRO that does so.\n' 152 messages = messages + 'TUNE_ARCH is unset. Please ensure your MACHINE configuration includes a valid tune configuration file which will set this correctly.\n'
153
154 # Check TARGET_ARCH is set correctly
155 if data.getVar('TARGE_ARCH', e.data, False) == '${TUNE_ARCH}':
156 messages = messages + 'TARGET_ARCH is being overwritten, likely by your MACHINE configuration files.\nPlease use a valid tune configuration file which should set this correctly automatically\nand avoid setting this in the machine configuration. See the OE-Core mailing list for more information.\n'
153 157
154 # Check TARGET_OS is set 158 # Check TARGET_OS is set
155 if data.getVar('TARGET_OS', e.data, True) == 'INVALID': 159 if data.getVar('TARGET_OS', e.data, True) == 'INVALID':