From: Yanfei Xu <[email protected]>

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'

Signed-off-by: Yanfei Xu <[email protected]>
---
 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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#142092): 
https://lists.openembedded.org/g/openembedded-core/message/142092
Mute This Topic: https://lists.openembedded.org/mt/76575762/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to