summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJessica Yu <jeyu@kernel.org>2019-10-21 15:34:26 +0200
committerJessica Yu <jeyu@kernel.org>2019-10-23 11:21:06 +0200
commit09684950050be09ed6cd591e6fbf0c71d3473237 (patch)
tree6865eaec7baa64a82bff5e30d335a387a24d15f3 /include
parent69923208431e097ce3830647aee98e5bd3e889c8 (diff)
downloadlinux-09684950050be09ed6cd591e6fbf0c71d3473237.tar.bz2
scripts/nsdeps: use alternative sed delimiter
When doing an out of tree build with O=, the nsdeps script constructs the absolute pathname of the module source file so that it can insert MODULE_IMPORT_NS statements in the right place. However, ${srctree} contains an unescaped path to the source tree, which, when used in a sed substitution, makes sed complain: ++ sed 's/[^ ]* *//home/jeyu/jeyu-linux\/&/g' sed: -e expression #1, char 12: unknown option to `s' The sed substitution command 's' ends prematurely with the forward slashes in the pathname, and sed errors out when it encounters the 'h', which is an invalid sed substitution option. To avoid escaping forward slashes ${srctree}, we can use '|' as an alternative delimiter for sed instead to avoid this error. Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Matthias Maennich <maennich@google.com> Tested-by: Matthias Maennich <maennich@google.com> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions