Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pkgs/build-support/kernel/modules-closure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ echo "kernel version is $version"
closure=
for module in $rootModules; do
echo "root module: $module"
deps=$(modprobe --config no-config -d $kernel --set-version "$version" --show-depends "$module" \
| sed 's/^insmod //') \
|| if test -z "$allowMissing"; then exit 1; fi
# Obtain the module dependencies with modprobe.
rawdeps=$(modprobe --config no-config -d "$kernel" --set-version "$version" --show-depends "$module") \
|| if test -z "$allowMissing"; then exit 1; fi

if [[ "$deps" != builtin* ]]; then
Comment thread
xaverdh marked this conversation as resolved.
Outdated
# Extract the module name from modprobe output and throws away the insmod part and the module arguments.
deps=$(printf '%s' "$rawdeps" | sed 's/^insmod \([^ ]*\).*/\1/')
closure="$closure $deps"
fi
done
Expand Down