| | |
| | | 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` |
| | | |
| | |
| | | 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 |
| | |
| | | build_kernel |
| | | |
| | | do_install |
| | | |
| | | build_driver |
| | | } |
| | | |
| | | function do_clean() |
| | |
| | | rm -rf $PRJ_PATH/$KER_SRC |
| | | rm -rf $PRJ_PATH/tarballs |
| | | rm -rf $PRFX_PATH |
| | | |
| | | cd $DRV_PATH && ./build.sh -c |
| | | |
| | | cd |
| | | } |
| | | |
| | | #+-------------------------+ |