All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Williams <patrick@stwcx.xyz>
To: Arjun Padmanabhan <arjun.padmanabhan@microsemi.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
	Balaji Marimuthu <balaji.marimuthu@microsemi.com>
Subject: Re: [openbmc] Adding new recipe qa error
Date: Thu, 13 Oct 2016 08:25:00 -0500	[thread overview]
Message-ID: <20161013132500.GC32710@heinlein.lan> (raw)
In-Reply-To: <C160D2872FE0DE4683E1910F9BF829414846E409@avsrvexchmbx2.microsemi.net>

[-- Attachment #1: Type: text/plain, Size: 1932 bytes --]

On Thu, Oct 13, 2016 at 01:07:30PM +0000, Arjun Padmanabhan wrote:
> As an alternative way, I am adding a custom recipe which includes my application. Application folder structure includes cross-compiled *.a and *.so.
> 
> I am getting following errors while do_package_qa().
> 
> 
> -          Mycode-1.0-r0 do_package_qa: QA Issue: non -staticdev package contains static .a library ...............
> 
> -          Mycode-1.0-r0 do_package_qa: QA Issue:No GNU_HASH in elf binary .......................
> 
> -Is there any way to include static library in my recipe to openbmc image by getting past qa issue?
> 
> -Is there a way to skip GNU_HASH check in so files which is in my custom development recipe?
> 
> -          A way I found while searching through google was to add export LD="${LD} --hash-style=gnu" before compiling my binaries. Is there any other way where I can disable GNU_CHECK for my recipe?
> 

Generally speaking, Yocto prefers you to use bitbake itself to build
your package.  Rather than your recipe pointing to a pre-compiled set of
binaries, your recipe should point to your source and then build it
directly.

The "QA Issue: non -staticdev pacakge..." issue is a valid issue and one
you should not disable.  It does not make sense to put a .a file onto an
installed package on your target because you do not compile and link
programs on your target.  There is no way to use a .a file on the target
so it shouldn't be in your recipe.

It sounds like you might be missing one of the general bbclasses that
you should be importing.  This would create packages within your recipe,
such as ${PN}-staticdev where all *.a files would be automatically
placed.

The GNU_HASH check is also likely valid.  You need to make sure that
your precompiled binaries, if you continue to go that route, are
compiled with the same flags as the rest of the recipes.

-- 
Patrick Williams

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-10-13 13:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 13:07 [openbmc] Adding new recipe qa error Arjun Padmanabhan
2016-10-13 13:25 ` Patrick Williams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161013132500.GC32710@heinlein.lan \
    --to=patrick@stwcx.xyz \
    --cc=arjun.padmanabhan@microsemi.com \
    --cc=balaji.marimuthu@microsemi.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.