Stop building triplets from buildstream %arch
Context
Currently we are building triplets from the %arch variable in Buildstream (https://gitlab.com/freedesktop-sdk/freedesktop-sdk/blob/master/project.conf#L77), we should not do this.
The triplets are not built off uname -m
for all architectures. The %arch variable is uname -m
as described here: https://docs.buildstream.build/format_project.html#architecture
Description
We should have a mapping between each architecture we support and the name we give it, say, ppc64le which is returned from uname -m
, and the multiarch and GNU triplets. Right now, there's few hacks to try and build correct triplets but it's confusing.
My proposal is that we take what's returned from uname -m
as a name we use to call it for the project, and then we map this to the triplets we want.
Example:
$(uname -m) -> ppc64le {
multiarch: 'powerpc64le-linux-gnu'
gnu: 'powerpc64le-unknown-linux-gnu'
}