* preferred KERNEL_FEATURES format: netfilter or netfilter.scc?
@ 2015-03-03 9:12 Robert P. J. Day
2015-03-03 10:39 ` Robert P. J. Day
0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2015-03-03 9:12 UTC (permalink / raw)
To: Yocto discussion list
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
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: preferred KERNEL_FEATURES format: netfilter or netfilter.scc?
2015-03-03 9:12 preferred KERNEL_FEATURES format: netfilter or netfilter.scc? Robert P. J. Day
@ 2015-03-03 10:39 ` Robert P. J. Day
2015-03-03 14:29 ` Bruce Ashfield
0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2015-03-03 10:39 UTC (permalink / raw)
To: Yocto discussion list
On Tue, 3 Mar 2015, Robert P. J. Day wrote:
>
> 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 ...)
hang on, i think there's an error in the docs ... if i check the
meta branch, i see that the actual structure for the netfilter feature
is "features/netfilter/netfilter.scc", so "features/netfilter.scc"
shouldn't even work, should it? historical remnant?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: preferred KERNEL_FEATURES format: netfilter or netfilter.scc?
2015-03-03 10:39 ` Robert P. J. Day
@ 2015-03-03 14:29 ` Bruce Ashfield
2015-03-03 16:27 ` Robert P. J. Day
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2015-03-03 14:29 UTC (permalink / raw)
To: Robert P. J. Day, Yocto discussion list
On 15-03-03 05:39 AM, Robert P. J. Day wrote:
> On Tue, 3 Mar 2015, Robert P. J. Day wrote:
>
>>
>> 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 ...)
>
> hang on, i think there's an error in the docs ... if i check the
> meta branch, i see that the actual structure for the netfilter feature
> is "features/netfilter/netfilter.scc", so "features/netfilter.scc"
> shouldn't even work, should it? historical remnant?
It works, but it is an old shortcut that isn't emphasized or used.
So yes, its a historical remnant, and explicit .scc references are
preferred.
Cheers,
Bruce
>
> rday
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: preferred KERNEL_FEATURES format: netfilter or netfilter.scc?
2015-03-03 14:29 ` Bruce Ashfield
@ 2015-03-03 16:27 ` Robert P. J. Day
2015-03-03 16:30 ` Bruce Ashfield
0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2015-03-03 16:27 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: Yocto discussion list
On Tue, 3 Mar 2015, Bruce Ashfield wrote:
> On 15-03-03 05:39 AM, Robert P. J. Day wrote:
> > On Tue, 3 Mar 2015, Robert P. J. Day wrote:
> >
> > >
> > > 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 ...)
> >
> > hang on, i think there's an error in the docs ... if i check the
> > meta branch, i see that the actual structure for the netfilter feature
> > is "features/netfilter/netfilter.scc", so "features/netfilter.scc"
> > shouldn't even work, should it? historical remnant?
>
> It works, but it is an old shortcut that isn't emphasized or used.
> So yes, its a historical remnant, and explicit .scc references are
> preferred.
wait ... just to be clear, you're saying that referring to a
features *directory* is a historical remnant? note above that i'm
asking about what appears to be a historical remnant where it looks
like netfilter used to be a .scc file directly under features/, now
it's in a subdirectory.
as it stands now, it would *appear* that the statement:
KERNEL_FEATURES += "features/netfilter.scc"
is simply wrong and can't possibly work, correct?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: preferred KERNEL_FEATURES format: netfilter or netfilter.scc?
2015-03-03 16:27 ` Robert P. J. Day
@ 2015-03-03 16:30 ` Bruce Ashfield
2015-03-03 16:46 ` Robert P. J. Day
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2015-03-03 16:30 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Yocto discussion list
On 15-03-03 11:27 AM, Robert P. J. Day wrote:
> On Tue, 3 Mar 2015, Bruce Ashfield wrote:
>
>> On 15-03-03 05:39 AM, Robert P. J. Day wrote:
>>> On Tue, 3 Mar 2015, Robert P. J. Day wrote:
>>>
>>>>
>>>> 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 ...)
>>>
>>> hang on, i think there's an error in the docs ... if i check the
>>> meta branch, i see that the actual structure for the netfilter feature
>>> is "features/netfilter/netfilter.scc", so "features/netfilter.scc"
>>> shouldn't even work, should it? historical remnant?
>>
>> It works, but it is an old shortcut that isn't emphasized or used.
>> So yes, its a historical remnant, and explicit .scc references are
>> preferred.
>
> wait ... just to be clear, you're saying that referring to a
> features *directory* is a historical remnant? note above that i'm
> asking about what appears to be a historical remnant where it looks
> like netfilter used to be a .scc file directly under features/, now
> it's in a subdirectory.
This format: KERNEL_FEATURES="features/netfilter"
Is the historical remnant. The tools can convert that to
features/netfilter/netfiler.scc internally. It was a shortcut to
make the features more human readable when they followed that
defined form "<dirname>/<dirname>.scc"
>
> as it stands now, it would *appear* that the statement:
>
> KERNEL_FEATURES += "features/netfilter.scc"
>
> is simply wrong and can't possibly work, correct?
That one is wrong, but the tools can also do a basename before
running the test, which converts it to that other format, and
then it can be expanded to find the feature description.
Both are non-obvious, and error prone .. hence why they are not
used anymore.
So the answer is that the docs should be updated to purge the
old references.
Bruce
>
> rday
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: preferred KERNEL_FEATURES format: netfilter or netfilter.scc?
2015-03-03 16:30 ` Bruce Ashfield
@ 2015-03-03 16:46 ` Robert P. J. Day
0 siblings, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2015-03-03 16:46 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: Yocto discussion list
On Tue, 3 Mar 2015, Bruce Ashfield wrote:
... snip ...
> This format: KERNEL_FEATURES="features/netfilter"
>
> Is the historical remnant. The tools can convert that to
> features/netfilter/netfiler.scc internally. It was a shortcut to
> make the features more human readable when they followed that
> defined form "<dirname>/<dirname>.scc"
>
> >
> > as it stands now, it would *appear* that the statement:
> >
> > KERNEL_FEATURES += "features/netfilter.scc"
> >
> > is simply wrong and can't possibly work, correct?
>
> That one is wrong, but the tools can also do a basename before
> running the test, which converts it to that other format, and
> then it can be expanded to find the feature description.
>
> Both are non-obvious, and error prone .. hence why they are not
> used anymore.
>
> So the answer is that the docs should be updated to purge the
> old references.
thank you, that was the "A" answer.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-03 16:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 9:12 preferred KERNEL_FEATURES format: netfilter or netfilter.scc? Robert P. J. Day
2015-03-03 10:39 ` Robert P. J. Day
2015-03-03 14:29 ` Bruce Ashfield
2015-03-03 16:27 ` Robert P. J. Day
2015-03-03 16:30 ` Bruce Ashfield
2015-03-03 16:46 ` Robert P. J. Day
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.