linux: run depmod only if modules directory exists
authorPaul Cercueil <paul@crapouillou.net>
Tue, 23 Jun 2020 11:38:59 +0000 (13:38 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 29 Aug 2020 14:56:30 +0000 (16:56 +0200)
commit532fe9fb5788b0b2a2f25b2fd72e63f7c8c490d6
treeff1fb1ffb63a4663a428b5eb2c7d1f7d4305bc18
parentb9026e83f9c7610526f045f2fc1135b45a26305f
linux: run depmod only if modules directory exists

If the modules directory that corresponds to the version of the kernel
being built has been deleted, don't try to run depmod, which will
obviously fail.

This can happen for instance when the modules are stripped from the main
root filesystem, and placed into a separate filesystem image, so that
the root filesystem and the kernel can be updated separately.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
linux/linux.mk