From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Is it possible for a recipe to include/require something from a subdirectory?
Date: Sat, 22 Aug 2009 10:13:02 +0200 [thread overview]
Message-ID: <4A8FA88E.1050805@atmel.com> (raw)
In-Reply-To: <b6ebd0a50908200826u31c28b11n81b92a08fd05d630@mail.gmail.com>
Chris Larson skrev:
> On Thu, Aug 20, 2009 at 7:31 AM, Ulf Samuelsson<ulf.samuelsson@atmel.com> wrote:
>> I just finished a nice gnome script which allows me to automatically
>> generate SRC_URI_append's
>>
>> I select the files[1-4] in <recipy-dir>/<recipy>/<xxx>/<yyy>",
>> and then run the script
>>
>> result is:
>>
>> SRC_URI_append_<board> = "\
>> file://<file1> \
>> file://<file2> \
>> file://<file3> \
>> file://<file4> \
>> "
>>
>> Now, in <recipy-dir>/<recipy>.bb I want to include the file using
>>
>> require <xxx>/<yyy>/SRC_URI_append
>>
>> This did not work, so I tried symlinking - bad move...
>> I'd hate having to move it to the top directory of the recipe.
>>
>> Any ideas?
>
> include/require obey BBPATH. As far as I know, the parser should be
> temporarily changing bbpath to facilitate includes relative to the
> file doing the including. If that isn't working, you could try
> require ${FILE_DIRNAME}/foo/bar instead.
That worked,
This saves me a lot of time.
I am thinking of checking in the script that generates the file.
Anyone interested?
Got as few other gnome scripts which I find useful.
1: Select <dir>; Copy <dir> to <dir>-0rig for creating a patch
2: Select <dir1> and <dir2>; diff -urN <dir1> <dir2>
3: Select <patch>.patch;
splitdiff the patch into the directory <patch>/patchdir.
Rename each <patch> to <patch>.patch
If the file "template" is present:
For each <string> (one per line) in template
If a patch matches the string:
create the <string> directory
move all matching patches to this directory.
4: Select <source> and <patch-directory>
The <patch-directory> is identified by having "./patchdir"
"./patchdir contains a number of directories (patchsets).
Attempt to apply all patches in the patch directory
to the source tree using --dry-run.
Provide OK/FAIL result + a list of all
working patches are collected in a file.
5: Select a number of files; Generate SRC_URI_append.inc,
optimized for the kernel
It will check if a file "arch" exists and for
each machine listed in "arch" it will check its subdirectory
for a "defconfig", and will generate a
SRC_URI_append_<arch>.inc, containing the stuff for each arch.
6: Select <file>; Set the execute bit on the <file>
7: Select <dir> <file>.patch; apply <patch>.patch to <dir>
Report results
--
Best Regards
Ulf Samuelsson
prev parent reply other threads:[~2009-08-22 8:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 14:31 Is it possible for a recipe to include/require something from a subdirectory? Ulf Samuelsson
2009-08-20 15:26 ` Chris Larson
2009-08-22 8:13 ` Ulf Samuelsson [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=4A8FA88E.1050805@atmel.com \
--to=ulf.samuelsson@atmel.com \
--cc=openembedded-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox