Note that this patch is slightly changed from the original. I tweaked the short log, and added an anchor to the sed expression. So this one should be used, versus the earlier send.
Bruce On Wed, Sep 2, 2020 at 10:33 AM <bruce.ashfi...@gmail.com> wrote: > > From: Yanfei Xu <yanfei...@windriver.com> > > We just want to remove the first '-I' in $d, hence removing the > g' of sed avoid changing the real path which is include '-I' > > We also add an anchor to the regex to only match -I at the start > of the path. > > Signed-off-by: Yanfei Xu <yanfei...@windriver.com> > Signed-off-by: Bruce Ashfield <bruce.ashfi...@gmail.com> > --- > meta/classes/kernel-yocto.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/kernel-yocto.bbclass > b/meta/classes/kernel-yocto.bbclass > index cb7614d64a..6e74d08dca 100644 > --- a/meta/classes/kernel-yocto.bbclass > +++ b/meta/classes/kernel-yocto.bbclass > @@ -226,7 +226,7 @@ do_kernel_metadata() { > for feature in ${KERNEL_FEATURES}; do > feature_found=f > for d in $includes; do > - path_to_check=$(echo $d | sed 's/-I//g') > + path_to_check=$(echo $d | sed 's/^-I//') > if [ "$feature_found" = "f" ] && [ -e > "$path_to_check/$feature" ]; then > feature_found=t > fi > -- > 2.19.1 > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#142116): https://lists.openembedded.org/g/openembedded-core/message/142116 Mute This Topic: https://lists.openembedded.org/mt/76583475/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-