]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: only replace leading -I in include paths
authorYanfei Xu <yanfei.xu@windriver.com>
Wed, 2 Sep 2020 14:33:04 +0000 (10:33 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Sep 2020 08:43:59 +0000 (09:43 +0100)
commit12af8abebf0a1b8bd5689f613497f45a7778ab2d
tree7c02bc6f5756af414e55b217a5cd2932d54df4d7
parentccea217e6f8d8489e71b0801953542faf679d23d
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.

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>
meta/classes/kernel-yocto.bbclass