diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-02 09:46:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-03 12:40:40 +0100 |
commit | 03af60ede97ecd67d17b9fdd9e958ad2b143f946 (patch) | |
tree | 34104725a3820860345b3613fea9fcf4876df94a /meta/classes/sstate.bbclass | |
parent | 34dc844fe0b25646697c311ec6ce92732c8b50ab (diff) | |
download | poky-03af60ede97ecd67d17b9fdd9e958ad2b143f946.tar.gz |
sstate: Allow switching between linux and non-linux SDK builds within the same tmpdir
Currently if you try and switch between linux/darwin/mingw SDK builds in the
same TMPDIR, things break. This is due to sstate not reflecting the SDK_OS in
the manifest names.
Since they are different, reflect this in the manifest naming and allow
this to work.
(From OE-Core rev: 7a0e1233ba196797f5f9bf862685dfae5511e751)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 90119732dd..0d3940e409 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -45,11 +45,11 @@ python () { | |||
45 | if bb.data.inherits_class('native', d): | 45 | if bb.data.inherits_class('native', d): |
46 | d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH')) | 46 | d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH')) |
47 | elif bb.data.inherits_class('crosssdk', d): | 47 | elif bb.data.inherits_class('crosssdk', d): |
48 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${SDK_ARCH}")) | 48 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${SDK_ARCH}_${SDK_OS}")) |
49 | elif bb.data.inherits_class('cross', d): | 49 | elif bb.data.inherits_class('cross', d): |
50 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${TARGET_ARCH}")) | 50 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${TARGET_ARCH}")) |
51 | elif bb.data.inherits_class('nativesdk', d): | 51 | elif bb.data.inherits_class('nativesdk', d): |
52 | d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}")) | 52 | d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}_${SDK_OS}")) |
53 | elif bb.data.inherits_class('cross-canadian', d): | 53 | elif bb.data.inherits_class('cross-canadian', d): |
54 | d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}_${PACKAGE_ARCH}")) | 54 | d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}_${PACKAGE_ARCH}")) |
55 | elif bb.data.inherits_class('allarch', d) and d.getVar("PACKAGE_ARCH", True) == "all": | 55 | elif bb.data.inherits_class('allarch', d) and d.getVar("PACKAGE_ARCH", True) == "all": |