From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>,
Yocto discussion list <yocto@yoctoproject.org>
Subject: Re: should YP docs explain "type=kmeta" and "destsuffix="?
Date: Wed, 4 Mar 2015 16:34:36 -0500 [thread overview]
Message-ID: <54F77A6C.2090901@windriver.com> (raw)
In-Reply-To: <alpine.LFD.2.11.1503041007020.13143@Device-040570>
On 15-03-04 10:10 AM, Robert P. J. Day wrote:
>
> i see that the meta-xilinx layer takes advantage of extending the
> search path for features directories with things like:
>
> SRC_URI = " \
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=${KBRANCH} \
> file://xilinx-base;type=kmeta;destsuffix=xilinx-base \
> file://0001-ARM64-Add-new-Xilinx-ZynqMP-SoC.patch \
> ... etc etc ...
>
> and the above is processed from kernel-yocto.bbclass with:
>
> # check the SRC_URI for "kmeta" type'd git repositories. Return the name of
> # the repository as it will be found in WORKDIR
> def find_kernel_feature_dirs(d):
> feature_dirs=[]
> fetch = bb.fetch2.Fetch([], d)
> for url in fetch.urls:
> urldata = fetch.ud[url]
> parm = urldata.parm
> if "type" in parm:
> type = parm["type"]
> if "destsuffix" in parm:
> destdir = parm["destsuffix"]
> if type == "kmeta":
> feature_dirs.append(destdir)
>
> return feature_dirs
>
> i see no mention of this feature in any of the YP docs ... is it meant
> to be used by normal developers, so that it should be explained?
It's not really a typical developer option. It is for maintaining a
separate repository of meta-data, and then allowing the tools and
kernel to use that meta data as part of the build.
Only someone maintaining (and sharing) a large set of their own
kernel fragments would be interested in this.
So I'm on the fence if it is worth documenting, but lean towards
at least mentioning it and offering a simple use case.
Bruce
>
> rday
>
next prev parent reply other threads:[~2015-03-04 21:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 15:10 should YP docs explain "type=kmeta" and "destsuffix="? Robert P. J. Day
2015-03-04 21:34 ` Bruce Ashfield [this message]
2015-03-05 7:02 ` Robert P. J. Day
2015-03-05 7:53 ` Robert P. J. Day
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=54F77A6C.2090901@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=rpjday@crashcourse.ca \
--cc=yocto@yoctoproject.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.