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'

We also add an anchor to the regex to only match -I at the start
of the path.

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

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

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

Reply via email to