From: Martin Jansa <martin.jansa@gmail.com>
To: Ulf Magnusson <ulfalizer@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: migrating simple tarballs over to OE recipes?
Date: Wed, 23 Nov 2016 16:05:25 +0100 [thread overview]
Message-ID: <20161123150525.GA3265@jama> (raw)
In-Reply-To: <CAFkk2KRQ+vv+X9paB+ZLCuFobAVpXyi7gaV7P5kwgX3hja9Rhg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
On Wed, Nov 23, 2016 at 01:00:12PM +0100, Ulf Magnusson wrote:
> On Wed, Nov 23, 2016 at 12:34 PM, Robert P. J. Day
> <rpjday@crashcourse.ca> wrote:
> > On Wed, 23 Nov 2016, Burton, Ross wrote:
> >
> >>
> >> On 23 November 2016 at 10:42, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> >> colleague has a pile of tarballs that were used to customize an x86
> >> centos system, wants to move all that to OE with as little fuss as
> >> possible, i guess the simplest way is to just create recipes that have
> >> the same tarball in the files/ directory, and write a trivial
> >> do_install() task that untars it into the root fs, yes?
> >>
> >>
> >> Pretty much, yeah.
> >>
> >> If you've a large pile and they're all effectively the same then a
> >> little class can automate it even more.
> >
> > already going down that road, just wanted to make sure i hadn't
> > overlooked something obvious.
> >
> > rday
>
> bin_package.bbclass might be useful as well, especially if the files
> are already arranged like in the rootfs inside the tarballs.
If these files are overwriting files owned by some other packages, then
you will loose that customization when the package is upgraded by
package manager (unless those files are listed in CONFFILES). You need
to use RREPLACES at least.
> do_install() task that untars it into the root fs, yes?
? do_install installs them to $D not root fs which doesn't even exist yet.
You might also need to skip strip if there are also some binaries which are
already stripped, skip ldflash qa check if they don't have matching hash
type etc
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
next prev parent reply other threads:[~2016-11-23 15:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 10:42 migrating simple tarballs over to OE recipes? Robert P. J. Day
2016-11-23 11:21 ` Burton, Ross
2016-11-23 11:34 ` Robert P. J. Day
2016-11-23 12:00 ` Ulf Magnusson
2016-11-23 15:05 ` Martin Jansa [this message]
2016-11-23 16:52 ` Robert P. J. Day
2016-11-24 16:50 ` Burton, Ross
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=20161123150525.GA3265@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ulfalizer@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox