From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>, Andre McCurdy <armccurdy@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: Automatically creating tar files for bin_package.bbclass
Date: Tue, 05 Jul 2016 23:27:04 +0100 [thread overview]
Message-ID: <1467757624.8590.207.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAMKF1squ8mH9Aq9k1j9PZ=KDPp02DagQtuf9tWrrSqZ6XEMr4A@mail.gmail.com>
On Tue, 2016-07-05 at 08:12 -0700, Khem Raj wrote:
> On Tue, Jul 5, 2016 at 1:21 AM, Andre McCurdy <armccurdy@gmail.com>
> wrote:
> > On Mon, Jul 4, 2016 at 8:58 AM, Burton, Ross <ross.burton@intel.com
> > > wrote:
> > >
> > > On 4 July 2016 at 16:00, Andre McCurdy <armccurdy@gmail.com>
> > > wrote:
> > > >
> > > > Say I have a proprietary library which only I can build from
> > > > source
> > > > and I have a conventional recipe which builds it within OE. I
> > > > would
> > > > now like to create a tar file of the library and headers etc,
> > > > plus a
> > > > companion recipe based on bin_package.bbclass to allow others
> > > > to make
> > > > use of the library in their OE builds. ie the situation
> > > > described
> > > > here:
> > > >
> > > > http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.ht
> > > > ml#packaging-externally-produced-binaries
> > > >
> > > > Is there a recommended way to create the tar file to support
> > > > that?
> > > > e.g. a class which automatically creates a deployable tar file
> > > > of a
> > > > recipe's ${D} directory?
> > >
> > > You *may* be able to use package_tar in the recipe in some way to
> > > achieve
> > > this.
> >
> > It only seems to support creating tar files after packages have
> > been
> > split ( ie individual tar files for each subdirectory under
> > ${WORKDIR}/packages-split ). I don't think it's going to be
> > directly
> > useful for creating a tar file of ${D}.
>
> package_tar is just another packaging format here so you will get
> individual package separately
> you might want to add another class to package everything into 1
> thats
> a separate issue, you have
> to either add this via a bbclass or additional function
Personally, I think that involving package_tar is likely going to
overcomplicate this, as is packaging up the already separated out
packages.
Better to provide the output as do_install would leave it in ${D}, and
then let packaging happen as the user has configured. Only tricky part
would be the lack of source for the debugging symbols but if you can't
release the source you'd want to "fix" that anyway.
This way you don't need to worry if your tarball matches the users
package configuration options (which backend, which packaging options
etc.).
Cheers,
Richard
next prev parent reply other threads:[~2016-07-05 22:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 15:00 Automatically creating tar files for bin_package.bbclass Andre McCurdy
2016-07-04 15:58 ` Burton, Ross
2016-07-05 8:21 ` Andre McCurdy
2016-07-05 15:12 ` Khem Raj
2016-07-05 22:20 ` Paul Eggleton
2016-07-05 22:27 ` Richard Purdie [this message]
2016-07-06 8:20 ` Andre McCurdy
2019-07-19 8:09 ` Nicolas Dechesne
2019-07-21 20:31 ` Andre McCurdy
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=1467757624.8590.207.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=armccurdy@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/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.