【s5p4418嵌入式学习】分步编译之module编译05

来源:互联网 发布:c语言源代码大全 编辑:程序博客网 时间:2024/05/17 23:04

作者: Linux-小企鹅
博客地址:http://blog.csdn.net/u012319379/article/details/77822206

脚本分析

function build_module(){    if [ ${BUILD_ALL} == "true" ] || [ ${BUILD_MODULE} == "true" ]; then        echo ""        echo "=============================================="        echo "build modules"        echo "=============================================="        local out_dir=${TOP}/out/target/product/${BOARD}        mkdir -p ${out_dir}/system/lib/modules        if [ ${VERBOSE} == "true" ]; then            echo -n -e "build vr driver..."        fi        cd ${TOP}/hardware/samsung_slsi/slsiap/prebuilt/modules/vr        ./build.sh        if [ ${VERBOSE} == "true" ]; then            echo "End"        fi        if [ ${VERBOSE} == "true" ]; then            echo -n -e "build coda driver..."        fi        cd ${TOP}/linux/platform/${CHIP_NAME}/modules/coda960        ./build.sh        if [ ${VERBOSE} == "true" ]; then            echo "End"        fi        #if [ ${VERBOSE} == "true" ]; then        #    echo -n -e "build wifi driver..."        #fi        #cd ${TOP}/${WIFI_DRIVER_PATH}        #./build.sh        #if [ ${VERBOSE} == "true" ]; then        #    echo "End"        #fi        cd ${TOP}        if [ ${VERBOSE} == "true" ]; then            echo "End"        fi        echo "---------- End of build modules"    fi}#这个还是好简单,就编译了两个模块,vr,coda960