From 8829b120649c2367a8dfdca454fe4c6a4b74f9d7 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 05 Apr 2024 19:37:43 +0800
Subject: [PATCH] Driver:IGKBoard-IMX6ULL: Update driver build shell script to add depmod for wifi driver

---
 kernel/build.sh |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/kernel/build.sh b/kernel/build.sh
index 7314a8b..8b1ac2e 100755
--- a/kernel/build.sh
+++ b/kernel/build.sh
@@ -93,6 +93,7 @@
     export BRANCH=$BSP_VER
     export KER_SRC=linux-imx
     export KER_PATH=$PRJ_PATH/$KER_SRC
+    export DRV_PATH=$TOP_PATH/drivers/${BOARD}
 
     export JOBS=`cat /proc/cpuinfo | grep processor | wc -l`
 
@@ -188,6 +189,19 @@
     fi
 }
 
+function build_driver()
+{
+    if [ ! -d $DRV_PATH ] ; then
+        return 0;
+    fi
+
+    pr_info "start ${BOARD} linux drivers"
+
+    cd $DRV_PATH && ./build.sh
+
+    cd $PRJ_PATH
+}
+
 function do_build()
 {
     cd $PRJ_PATH
@@ -195,6 +209,8 @@
     build_kernel
 
     do_install
+
+    build_driver
 }
 
 function do_clean()
@@ -204,6 +220,10 @@
     rm -rf $PRJ_PATH/$KER_SRC
     rm -rf $PRJ_PATH/tarballs
     rm -rf $PRFX_PATH
+
+    cd $DRV_PATH && ./build.sh -c
+
+    cd
 }
 
 #+-------------------------+

--
Gitblit v1.9.1