| | |
| | | export KER_PATH=$TOP_PATH/kernel/linux-imx |
| | | export DRV_PATH=$TOP_PATH/kernel/install |
| | | |
| | | export KER_VER=`echo $BSP_VER|awk -F"-" '{print $2}'` |
| | | export KER_MOD=`ls -d $DRV_PATH/lib/modules/${KER_VER}* | head -n 1` |
| | | |
| | | export JOBS=`cat /proc/cpuinfo | grep processor | wc -l` |
| | | |
| | | if [[ $BOARD =~ mx6ull ]] ; then |
| | |
| | | |
| | | pr_warn "start update $SRC USB WiFi driver source code" |
| | | |
| | | KER_VER=`echo $BSP_VER|awk -F"-" '{print $2}'` |
| | | |
| | | sed -i "s|^CROSS_COMPILE ?=.*|CROSS_COMPILE ?= ${CROSS_COMPILE}|g" Makefile |
| | | sed -i "s|^ARCH ?=.*|ARCH ?= arm|g" Makefile |
| | | sed -i "s|^KVER.*|KVER := $KER_VER|g" Makefile |
| | |
| | | pr_warn "start build $SRC USB WiFi driver" |
| | | make -j ${JOBS} modules |
| | | |
| | | cp rtl8188fu.ko ${DRV_PATH}/lib/modules/${KER_VER}-dirty/extra/ |
| | | depmod -a -b ${DRV_PATH}/ ${KER_VER}-dirty |
| | | cp rtl8188fu.ko ${KER_MOD}/extra/ |
| | | depmod -a -b ${DRV_PATH}/ ${KER_MOD} |
| | | |
| | | mkdir -p ${DRV_PATH}/lib/firmware/rtlwifi/ |
| | | cp firmware/rtl8188fufw.bin ${DRV_PATH}/lib/firmware/rtlwifi/ |
| | |
| | | |
| | | 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|^MODDESTDIR.*|MODDESTDIR := ${KER_MOD}/extra/|g" Makefile |
| | | sed -i "s|^FIRMWAREDIR.*|FIRMWAREDIR := ${DRV_PATH}/lib/firmware/|g" Makefile |
| | | sed -i '/depmod -a .*/d' 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 |
| | | make install |
| | | depmod -a -b ${DRV_PATH}/ ${KER_MOD} |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | cd $PRJ_PATH |
| | | |
| | | rm -rf rtl8188fu tarballs |
| | | rm -rf rtl8188fu rtl8723du tarballs |
| | | |
| | | if [ -d user ] ; then |
| | | cd user |