hvk: clean old modules directory before installing new modules
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 6 Nov 2024 17:28:55 +0000 (12:28 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 6 Nov 2024 17:28:55 +0000 (12:28 -0500)
scripts/hvk-compile.sh

index 0662b8a..036b2fe 100755 (executable)
@@ -108,6 +108,9 @@ fi
 function rootfs_install() {
     mkdir -p ${deploydir}
 
+    # Clean old modules directory:
+    rm -rf ${deploydir}/lib/modules
+
     if [ x"${CONFIG_MODULES}" = x"1" ]; then
         ${KMAKE} INSTALL_MOD_PATH=${deploydir} modules_install
     fi