On Tue, Sep 1, 2020 at 11:20 PM Xu, Yanfei <yanfei...@windriver.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'
>

The g was intentional. Is it actually causing a bug ? if not, I see no
reason to change it.

Anyone with paths with embedded '-I' have more issues than this sed expression.

Bruce

> Signed-off-by: Yanfei Xu <yanfei...@windriver.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 96ea612258..b672a1143a 100644
> --- a/meta/classes/kernel-yocto.bbclass
> +++ b/meta/classes/kernel-yocto.bbclass
> @@ -225,7 +225,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.18.2
>
> 



-- 
- 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 (#142108): 
https://lists.openembedded.org/g/openembedded-core/message/142108
Mute This Topic: https://lists.openembedded.org/mt/76575762/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to