sstate: Convert to use ':' as a filename sperator and use SSTATE_SWSPEC globally
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Dec 2013 12:06:02 +0000 (12:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Dec 2013 12:26:31 +0000 (12:26 +0000)
commitea9bf30fc6fdbb84fc3d89f1afa4942884a32947
tree9bf4be9672879faea1c0671fe6dd8ceaedcf98b0
parente39e155026ef73feddcea9e4f5a2f9a7d729b3de
sstate: Convert to use ':' as a filename sperator and use SSTATE_SWSPEC globally

Currently the code has problems differentiating between "gcc-cross" and "gcc-cross-initial"
sstate files. We could add in a ton of special casing but tests show this isn't scaling
well. Using a more unique separator resolves the issue.

The choice of which separator to use is a hard one. We need something which isn't commonly
used in PN, PV, PR, *_OS and *_ARCH which rules out '-', '_' and it needs to work ok with
webservers/http which makes ';' and '%' harder.

The change also sets SSTATE_SWSPEC globally since writing out differently named siginfo
files for the fetch/unpack/patch tasks is a waste of diskspace, the hashes match for
all PN in the majority of cases and if they don't, its not a big issue as the hash is
different. This makes the results from sstate debugging more understandable.

(From OE-Core rev: 6f823a23c5f1d0ffa0a27db1c1bc1907de788505)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass
meta/recipes-devtools/gcc/gcc-common.inc