All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Schuster <thebohemian@gmx.net>
To: openembedded-devel@lists.openembedded.org,
	 openembedded-users@lists.openembedded.org
Subject: reduce the monkey work: BPN/BP available
Date: Wed, 22 Oct 2008 17:20:40 +0200	[thread overview]
Message-ID: <48FF44C8.2000604@gmx.net> (raw)

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

Hi,
I just pushed the patches that adds the BP (base package) and BPN (base
package name) variables.

They are there to reduce the amount of 'monkey work' needed for a
-native recipe that has a corresponding (and very similar) non-native
recipe.

I plan to add this to the manual soon but describe it here so you can
use before it ends up there.

The problem with -native (also for -initial, -cross and -intermediate
suffix) recipes ist that they do not work correctly in regard to
SRC_URI, S and FILESPATH when those make use of P or PN.

Current workaround is to use the literal package name instead of the
variable and/or redefine some variables in the -native recipe. The
latter is what Koen called the 'monkey work'.

For future recipes you should consider using BP when you want a P that
does not change in recipes ending with -native, -initial, -cross or
-intermediate (more suffixes can be supported if needed, look at
base.bbclass).

I also added the neccessary things to make dealing with patches that
should be applied to both the non-native and the native recipe easier.
The search path includes BPN and then BP. I added them after the entries
for P and PN.

So for a recipe called foo-native_7.33.bb patches will be searched in
this order automatically:
./foo-native-7.33
./foo-native
./foo-7.33
./foo
(and the others like ./files and whatnot)

The BP/BPN stuff does not affect existing recipes since they do not use
those variables. Obviously it would be nice to simplify them when a new
package version is added or such.

Regards
Robert


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

                 reply	other threads:[~2008-10-22 15:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=48FF44C8.2000604@gmx.net \
    --to=thebohemian@gmx.net \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-users@lists.openembedded.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.