From 597549c3864eebb1ba6766f76f42d3ecb51f269d Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sun, 14 Apr 2024 18:34:03 +0800 Subject: [PATCH] Driver:IGKBoard-IMX6ULL: Update driver build shell script to add new rtl8723du WiFi/BT driver support --- drivers/igkboard-imx6ull/build.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/igkboard-imx6ull/build.sh b/drivers/igkboard-imx6ull/build.sh index e1caac0..7e18a96 100755 --- a/drivers/igkboard-imx6ull/build.sh +++ b/drivers/igkboard-imx6ull/build.sh @@ -120,7 +120,7 @@ cd ${PRJ_PATH} } -function build_wifi() +function build_rtl8188fu() { SRC=rtl8188fu @@ -174,13 +174,60 @@ } +function build_rtl8723du() +{ + SRC=rtl8723du + + cd $PRJ_PATH + + if [ -d $SRC ] ; then + pr_info "$SRC USB WiFi driver source code fetched already" + else + pr_info "start fetch $SRC USB WiFi drver source code" + + if [[ $BSP_URL =~ github.com ]] ; then + git clone https://github.com/lwfinger/rtw88.git --depth=1 $SRC + else + mkdir -p $TARBALL_PATH + + # Download source code packet + if [ ! -s $TARBALL_PATH/$SRC.tar.xz ] ; then + wget $BSP_URL/imx/bsp/misc/$SRC.tar.xz -P $TARBALL_PATH + fi + + # decompress source code packet + do_unpack $TARBALL_PATH/$SRC.tar.xz + fi + fi + + cd $SRC + + pr_warn "start update $SRC USB WiFi driver source code" + + KER_VER=`echo $BSP_VER|awk -F"-" '{print $2}'` + + sed -i "s|^KVER.*|KVER ?= $KER_VER|g" Makefile + sed -i "s|^KSRC.*|KSRC := ${KER_PATH}|g" Makefile + sed -i "s|^MODDESTDIR.*|MODDESTDIR := ${DRV_PATH}/lib/modules/${KER_VER}-dirty/extra/|g" Makefile + sed -i "s|^FIRMWAREDIR.*|FIRMWAREDIR := ${DRV_PATH}/lib/firmware/|g" Makefile + sed -i '/depmod -a .*/d' Makefile + + pr_warn "start build $SRC USB WiFi driver" + make -j ${JOBS} + make install + depmod -a -b ${DRV_PATH}/ ${KER_VER}-dirty +} + + function do_build() { cd $PRJ_PATH build_user - build_wifi + build_rtl8188fu + + build_rtl8723du } function do_clean() -- Gitblit v1.9.1