summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDiego Sueiro <diego.sueiro@arm.com>2020-12-08 11:44:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-09 09:17:16 +0000
commit1761f5fcf25df8188575d5add6e36b0c6f6287f9 (patch)
tree1e225038fcc36ca8101c77844affe6b6dd1167a1 /meta
parentd45ec07e5e8707bd10ea45287cab4271a71ba855 (diff)
downloadpoky-1761f5fcf25df8188575d5add6e36b0c6f6287f9.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: 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>
Diffstat (limited to 'meta')
-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 a78adf5729..df37bfe7a1 100755
--- a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
+++ b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
@@ -18,7 +18,7 @@ LOAD_MODULE=modprobe
18 18
19if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then 19if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
20 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..." 20 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
21 depmod -Ae 21 depmod -a
22fi 22fi
23 23
24loaded_modules=" " 24loaded_modules=" "