summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Sueiro <diego.sueiro@arm.com>2020-12-08 11:44:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-14 00:06:20 +0000
commit3401ff8edeaba9105fbb38e045a440cf0d51a5b3 (patch)
tree868a31b48b12598ff4864e3455a73a659bc01683
parent4c6dfcc8d38b1f4fa0b4b889def060adff3bf9f4 (diff)
downloadopenembedded-core-contrib-3401ff8edeaba9105fbb38e045a440cf0d51a5b3.tar.gz
openembedded-core-contrib-3401ff8edeaba9105fbb38e045a440cf0d51a5b3.tar.bz2
openembedded-core-contrib-3401ff8edeaba9105fbb38e045a440cf0d51a5b3.zip
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. Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xmeta/recipes-kernel/modutils-initscripts/files/modutils.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
index 3274c25a69..28fe6f92d7 100755
--- a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
+++ b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
@@ -17,7 +17,7 @@ LOAD_MODULE=modprobe
# Test if modules.dep exists and has a size greater than zero
if [ ! -s /lib/modules/`uname -r`/modules.dep ]; then
[ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
- depmod -Ae
+ depmod -a
fi
[ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0