diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2020-04-03 12:21:58 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-05 11:46:38 +0100 |
commit | 45157a4e8217f997996cd6b0ab47f0a3c4cc1f48 (patch) | |
tree | 8b8414a2330c355540bc13c24287f5512a8e33e9 /meta | |
parent | 8b8d6897542f07cf47a4ee9def6d00d0fece96f1 (diff) | |
download | poky-45157a4e8217f997996cd6b0ab47f0a3c4cc1f48.tar.gz |
sanity.bbclass: echo current SDK_VENDOR if it is invalid
It can be frustrating if this sanity check triggers, but you
don't know why; you haven't explicitly set any SDK vars, or
similar.
At least echo out the offending value, so the end user has
a bit more information to go on.
Before:
SDK_VENDOR should be of the form '-foosdk' with a single dash
After:
SDK_VENDOR should be of the form '-foosdk' with a single dash; found '-overc-sdk'
Cc: Ross Burton <ross.burton@intel.com>
(From OE-Core rev: e238fa177bd72bc5d165fbe4f640132267a1d3fd)
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index edd2df2626..9b97b462e4 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -823,7 +823,7 @@ def check_sanity_everybuild(status, d): | |||
823 | # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early | 823 | # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early |
824 | sdkvendor = d.getVar("SDK_VENDOR") | 824 | sdkvendor = d.getVar("SDK_VENDOR") |
825 | if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1): | 825 | if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1): |
826 | status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash\n") | 826 | status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash; found '%s'\n" % sdkvendor) |
827 | 827 | ||
828 | check_supported_distro(d) | 828 | check_supported_distro(d) |
829 | 829 | ||