[yocto] preferred KERNEL_FEATURES format: netfilter or netfilter.scc?

Robert P. J. Day rpjday at crashcourse.ca
Tue Mar 3 01:12:27 PST 2015


  kernel dev manual uses the KERNEL_FEATURES format of:

     KERNEL_FEATURES += "features/netfilter.scc"

while ref manual variable glossary uses

     KERNEL_FEATURES="features/netfilter"

is there a preference for the usage of the .scc suffix? (i'm assuming
they're both valid, i didn't actually check that. maybe i should check
that ...)

  oh, wait, here's something from kernel-yocto.bbclass that seems to
require the presence of the .scc suffix:

# returns all the elements from the src uri that are .scc files
def find_sccs(d):
    sources=src_patches(d, True)
    sources_list=[]
    for s in sources:
        base, ext = os.path.splitext(os.path.basename(s))
        if ext and ext in [".scc", ".cfg"]:
            sources_list.append(s)
        elif base and base in 'defconfig':
            sources_list.append(s)

    return sources_list

i should note that the introductory comment is incorrect since that
function clearly does not just find "sccs", it finds .cfg and
defconfig files as well, no?

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