[yocto] should YP docs explain "type=kmeta" and "destsuffix="?

Robert P. J. Day rpjday at crashcourse.ca
Wed Mar 4 07:10:07 PST 2015


  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?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the yocto mailing list