summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-10-14 12:42:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-29 09:08:17 +0000
commitc07d45d20c270b19745fbc1c6a1c1da1eb5b21c8 (patch)
treeaefdc090be4029db277cf15e66018f0317754c2f /meta/classes
parentcd24be7c47e59e92df365d65117126d07cdc0531 (diff)
downloadpoky-c07d45d20c270b19745fbc1c6a1c1da1eb5b21c8.tar.gz
sanity: check the format of SDK_VENDOR
If SDK_VENDOR isn't formatted as -foosdk and is instead for example -foo-sdk then the triple that are constructed are not in fact triples, which results in mysterious compile errors. Check in sanity.bbclass so this failure is detected early. [ YOCTO #13573 ] (From OE-Core rev: 95d3ca54453cdb0662fae2a2cf7e8173611c86f4) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b0efd8d4d0dbc30e6505b42f5603f18fa764d732) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 2d3f49eb1a..705062bc86 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -798,6 +798,11 @@ def check_sanity_everybuild(status, d):
798 elif d.getVar('SDK_ARCH', False) == "${BUILD_ARCH}": 798 elif d.getVar('SDK_ARCH', False) == "${BUILD_ARCH}":
799 status.addresult('SDKMACHINE is set, but SDK_ARCH has not been changed as a result - SDKMACHINE may have been set too late (e.g. in the distro configuration)\n') 799 status.addresult('SDKMACHINE is set, but SDK_ARCH has not been changed as a result - SDKMACHINE may have been set too late (e.g. in the distro configuration)\n')
800 800
801 # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early
802 sdkvendor = d.getVar("SDK_VENDOR")
803 if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1):
804 status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash\n")
805
801 check_supported_distro(d) 806 check_supported_distro(d)
802 807
803 omask = os.umask(0o022) 808 omask = os.umask(0o022)