mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
modutils-initscripts: Use depmod -a when modules.dep is empty
To correctly create the modules.dep when it is empty, we need to call depmod with '-a' instead of '-Ae' since the quick option uses the mtime to decide whether or not it needs to update. This way we can guarantee that it will be recreated completely and not only when adding new modules. (From OE-Core rev: 37c9cb2ed8920bd51f176d78cb505642afa9b472) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9292e9050fd95be4b556909e2775a45bce1ca79a) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d45ec07e5e
commit
1761f5fcf2
@@ -18,7 +18,7 @@ LOAD_MODULE=modprobe
|
||||
|
||||
if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
|
||||
[ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
|
||||
depmod -Ae
|
||||
depmod -a
|
||||
fi
|
||||
|
||||
loaded_modules=" "
|
||||
|
||||
Reference in New Issue
Block a user