diff options
author | Yanfei Xu <yanfei.xu@windriver.com> | 2020-09-02 10:33:04 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-03 09:44:30 +0100 |
commit | 9189aaedc76b798b9ddc76d28b97f05149300a6b (patch) | |
tree | 5f15c30a98b0be31786b6a51835cdd9e95d4429b /meta/classes | |
parent | c52e9774dd64c6942998dcf75c158b1e4803cc80 (diff) | |
download | poky-9189aaedc76b798b9ddc76d28b97f05149300a6b.tar.gz |
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>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 092afe251d..a35c5923df 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -241,7 +241,7 @@ do_kernel_metadata() { | |||
241 | for feature in ${KERNEL_FEATURES}; do | 241 | for feature in ${KERNEL_FEATURES}; do |
242 | feature_found=f | 242 | feature_found=f |
243 | for d in $includes; do | 243 | for d in $includes; do |
244 | path_to_check=$(echo $d | sed 's/-I//g') | 244 | path_to_check=$(echo $d | sed 's/^-I//') |
245 | if [ "$feature_found" = "f" ] && [ -e "$path_to_check/$feature" ]; then | 245 | if [ "$feature_found" = "f" ] && [ -e "$path_to_check/$feature" ]; then |
246 | feature_found=t | 246 | feature_found=t |
247 | fi | 247 | fi |