UPSTREAM: scripts/nsdeps: adjust to the format change of *.mod files
Commit 22f26f21774f ("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.
Bug: 254441685
Fixes: 22f26f21774f ("kbuild: get rid of duplication in *.mod files")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit 49c3ca34f7dbe5227c0163cba4deb5d29e145fae)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I1bc73a09c4af9ab53798d0ee3a7a4f6a01933281
This commit is contained in:
committed by
Treehugger Robot
parent
90af5dfd50
commit
d2d5e7f1cb
@@ -34,9 +34,8 @@ generate_deps() {
|
|||||||
local mod=${1%.ko:}
|
local mod=${1%.ko:}
|
||||||
shift
|
shift
|
||||||
local namespaces="$*"
|
local namespaces="$*"
|
||||||
local mod_source_files="`cat $mod.mod | sed -n 1p \
|
local mod_source_files=$(sed "s|^\(.*\)\.o$|${src_prefix}\1.c|" $mod.mod)
|
||||||
| sed -e 's/\.o/\.c/g' \
|
|
||||||
| sed "s|[^ ]* *|${src_prefix}&|g"`"
|
|
||||||
for ns in $namespaces; do
|
for ns in $namespaces; do
|
||||||
echo "Adding namespace $ns to module $mod.ko."
|
echo "Adding namespace $ns to module $mod.ko."
|
||||||
generate_deps_for_ns $ns "$mod_source_files"
|
generate_deps_for_ns $ns "$mod_source_files"
|
||||||
|
|||||||
Reference in New Issue
Block a user