[bitbake-devel] MACHINE_ARCH not in pkgarch (sstatesig.py)

Alan Kozlay alan.kozlay at ves-solutions.com
Wed Nov 13 13:41:53 UTC 2019


Chris,

Thanks for the explanation.  I understand now.

-Alan

On Tue, Nov 12, 2019 at 10:01 PM Christopher Larson <kergoth at gmail.com>
wrote:

> On Nov 12, 2019, 1:50 PM -0700, Alan Kozlay <alan.kozlay at ves-solutions.com>,
> wrote:
>
> In:
> oe-core/meta/lib/oe/sstatesig.py
>
> The find_sstate_manifest function will search for a manifest assuming a
> number of potential paths based on various package architecture names.
> However, a few of the choices appear to have needed to be queried from the
> bitbake database but their bb database variable *names* are used,
> instead.  That yields search paths which could never be correct:
>
>         pkgarchs = ['${MACHINE_ARCH}']
>         pkgarchs = pkgarchs +
> list(reversed(d2.getVar("PACKAGE_EXTRA_ARCHS").split()))
>         pkgarchs.append('allarch')
>         pkgarchs.append('${SDK_ARCH}_${SDK_ARCH}-${SDKPKGSUFFIX}')
>
>         for pkgarch in pkgarchs:
>                 manifest =
> d2.expand("${SSTATE_MANIFESTS}/manifest-%s-%s.%s" % (pkgarch, taskdata,
> taskname))
>
>
> d2.expand() expands all the variable references from pkgarch, so unless
> it’s also used later on and *isn’t* passed to expand(), this isn’t an issue.
>
> -Chris
>


-- 
Alan Kozlay
VES Solutions, LLC
Alan Kozlay <alan.kozlay at ves.solutions>
DESK 443-595-7734
CELL 443-752-0323
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20191113/64137790/attachment.html>


More information about the bitbake-devel mailing list