summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/modutils-initscripts
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-15 22:51:56 +0000
commit39867f7f20a4542b2b6c81a55da3b59a4d14943b (patch)
tree00dc4d69b0a0d6def28e5e57f0ea51d54b0e4500 /meta/recipes-kernel/modutils-initscripts
parent75b74f6b8d8eb69dd5e15e71243dea5c34ab36c9 (diff)
downloadpoky-39867f7f20a4542b2b6c81a55da3b59a4d14943b.tar.gz
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: 9292e9050fd95be4b556909e2775a45bce1ca79a) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/modutils-initscripts')
-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
17# Test if modules.dep exists and has a size greater than zero 17# Test if modules.dep exists and has a size greater than zero
18if [ ! -s /lib/modules/`uname -r`/modules.dep ]; then 18if [ ! -s /lib/modules/`uname -r`/modules.dep ]; then
19 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..." 19 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
20 depmod -Ae 20 depmod -a
21fi 21fi
22 22
23[ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0 23[ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0