Skip to content

Commit 49c3ca3

Browse files
committed
scripts/nsdeps: adjust to the format change of *.mod files
Commit 22f26f2 ("kbuild: get rid of duplication in *.mod files") changed the format of *.mod files to put one object per line, but missed to adjust scripts/nsdeps. Fixes: 22f26f2 ("kbuild: get rid of duplication in *.mod files") Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 7bf179d commit 49c3ca3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/nsdeps

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ generate_deps() {
3434
local mod=${1%.ko:}
3535
shift
3636
local namespaces="$*"
37-
local mod_source_files="`cat $mod.mod | sed -n 1p \
38-
| sed -e 's/\.o/\.c/g' \
39-
| sed "s|[^ ]* *|${src_prefix}&|g"`"
37+
local mod_source_files=$(sed "s|^\(.*\)\.o$|${src_prefix}\1.c|" $mod.mod)
38+
4039
for ns in $namespaces; do
4140
echo "Adding namespace $ns to module $mod.ko."
4241
generate_deps_for_ns $ns "$mod_source_files"

0 commit comments

Comments
 (0)