[OE-core] [PATCH][master][RESEND 01/15] sanity.bbclass: add more information to error message about TUNE_PKGARCH missing in PACKAGE_ARCHS

Khem Raj raj.khem at gmail.com
Thu Dec 10 21:11:44 UTC 2015


> On Dec 10, 2015, at 5:48 AM, Martin Jansa <martin.jansa at gmail.com> wrote:
> 
> * sometimes it's hard to see whots wrong here

typo 'whats'

> * error message:
>  Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (cortexa7t2hfhf-vfp-vfpv4-neon).
>  doesn't help much to understand what exactly went wrong and where
> 
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
> meta/classes/sanity.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index ad9dda8..9f35558 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -329,6 +329,7 @@ def check_sanity_validmachine(sanity_data):
>     # Check that we don't have duplicate entries in PACKAGE_ARCHS & that TUNE_PKGARCH is in PACKAGE_ARCHS
>     pkgarchs = sanity_data.getVar('PACKAGE_ARCHS', True)
>     tunepkg = sanity_data.getVar('TUNE_PKGARCH', True)
> +    defaulttune = sanity_data.getVar('DEFAULTTUNE', True)
>     tunefound = False
>     seen = {}
>     dups = []
> @@ -345,7 +346,7 @@ def check_sanity_validmachine(sanity_data):
>         messages = messages + "Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: %s" % " ".join(dups)
> 
>     if tunefound == False:
> -        messages = messages + "Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (%s)." % tunepkg
> +        messages = messages + "Error, the PACKAGE_ARCHS variable (%s) for DEFAULTTUNE (%s) does not contain TUNE_PKGARCH (%s)." % (pkgarchs, defaulttune, tunepkg)



> 
>     return messages
> 
> --
> 2.6.3
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151210/f193fdaf/attachment-0002.sig>


More information about the Openembedded-core mailing list