mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
kernel-yocto: only replace leading -I in include paths
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. (From OE-Core rev: 12af8abebf0a1b8bd5689f613497f45a7778ab2d) Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c52e9774dd
commit
9189aaedc7
@@ -241,7 +241,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
|
||||
|
||||
Reference in New Issue
Block a user