diff options
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index a626162ffb..91ca9865fd 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -64,13 +64,14 @@ def check_sanity(e): | |||
64 | if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split(): | 64 | if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split(): |
65 | raise_sanity_error('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf') | 65 | raise_sanity_error('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf') |
66 | 66 | ||
67 | # Check the MACHINE is valid | 67 | # Check that the MACHINE is valid |
68 | if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data): | 68 | if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data): |
69 | raise_sanity_error('Please set a valid MACHINE in your local.conf') | 69 | raise_sanity_error('Please set a valid MACHINE in your local.conf') |
70 | 70 | ||
71 | # Check the distro is valid | 71 | # Check that the DISTRO is valid |
72 | if not check_conf_exists("conf/distro/${DISTRO}.conf", e.data): | 72 | # need to take into account DISTRO renaming DISTRO |
73 | raise_sanity_error('Please set a valid DISTRO in your local.conf') | 73 | if not ( check_conf_exists("conf/distro/${DISTRO}.conf", e.data) or check_conf_exists("conf/distro/include/${DISTRO}.inc", e.data) ): |
74 | raise_sanity_error("DISTRO '%s' not found. Please set a valid DISTRO in your local.conf" % data.getVar("DISTRO", e.data, True )) | ||
74 | 75 | ||
75 | if not check_app_exists("${MAKE}", e.data): | 76 | if not check_app_exists("${MAKE}", e.data): |
76 | raise_sanity_error('GNU make missing. Please install GNU make') | 77 | raise_sanity_error('GNU make missing. Please install GNU make') |