summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 364a4e4af9..208f65ff5a 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -54,6 +54,13 @@ def check_sanity(e):
54 if data.getVar('TARGET_OS', e.data, True) == 'INVALID': 54 if data.getVar('TARGET_OS', e.data, True) == 'INVALID':
55 messages = messages + 'Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.\n' 55 messages = messages + 'Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.\n'
56 56
57 # Check we are using a valid conf setup
58 current_conf = data.getVar('CONF_VERSION', e.data, True)
59 conf_version = data.getVar('POKY_CONF_VERSION', e.data, True)
60
61 if current_conf != conf_version:
62 messages = messages + "Poky has noticed your version of local.conf was generated from an older version of local.conf.sample and there have been updates made to this file. Please compare the two files and merge any changes before continuing.\nMatching the version numbers will remove this message.\n\"meld conf/local.conf conf/local.conf.sample\" is a good way to visualise the changes")
63
57 assume_provided = data.getVar('ASSUME_PROVIDED', e.data , True).split() 64 assume_provided = data.getVar('ASSUME_PROVIDED', e.data , True).split()
58 # Check user doesn't have ASSUME_PROVIDED = instead of += in local.conf 65 # Check user doesn't have ASSUME_PROVIDED = instead of += in local.conf
59 if "diffstat-native" not in assume_provided: 66 if "diffstat-native" not in assume_provided: