Skip to content

Commit

Permalink
scripts/nsdeps: adjust to the format change of *.mod files
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masahir0y committed Jun 8, 2022
1 parent 7bf179d commit 49c3ca3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/nsdeps
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ generate_deps() {
local mod=${1%.ko:}
shift
local namespaces="$*"
local mod_source_files="`cat $mod.mod | sed -n 1p \
| sed -e 's/\.o/\.c/g' \
| sed "s|[^ ]* *|${src_prefix}&|g"`"
local mod_source_files=$(sed "s|^\(.*\)\.o$|${src_prefix}\1.c|" $mod.mod)

for ns in $namespaces; do
echo "Adding namespace $ns to module $mod.ko."
generate_deps_for_ns $ns "$mod_source_files"
Expand Down

0 comments on commit 49c3ca3

Please sign in to comment.