| | |
| | | |
| | | PRJ_PATH=`pwd` |
| | | |
| | | BOARD=imx6ull |
| | | BOARD=igkboard |
| | | |
| | | #CROSS_TOOL=arm-linux-gnueabihf- |
| | | CROSS_TOOL=/opt/buildroot/cortexA7/bin/arm-linux- |
| | | |
| | | # bootloader, linux kernel tarball path and branch |
| | | # bootloader, linux kernel tarball path and branch |
| | | TAR_PATH=${PRJ_PATH}/tarball |
| | | BSP_BRANCH="lf-5.10.52-2.1.0" |
| | | |
| | | # rootfs should be buildroot/yocto or stretch/buster/bullseye for debian system |
| | | ROOTFS=buster |
| | | # rootfs should be buildroot/yocto or bullseye for debian system |
| | | ROOTFS=buildroot |
| | | |
| | | set -u |
| | | set -e |
| | |
| | | } |
| | | |
| | | function do_modify() |
| | | { |
| | | { |
| | | do_modify_build tarball |
| | | do_modify_build bootloader |
| | | do_modify_build kernel |
| | | do_modify_build rootfs |
| | | do_modify_build rootfs |
| | | do_modify_build images |
| | | } |
| | | |
| | |
| | | |
| | | function do_action() |
| | | { |
| | | folder=$1 |
| | | folder=$1 |
| | | action=$2 |
| | | |
| | | cd $PRJ_PATH/$folder |
| | |
| | | ./build.sh -b |
| | | elif [ $action == "clean" ] ; then |
| | | ./build.sh -c |
| | | fi |
| | | fi |
| | | |
| | | cd $PRJ_PATH |
| | | } |
| | |
| | | do_usage |
| | | fi |
| | | |
| | | do_modify |
| | | if [ $action == "build" ] ; then |
| | | do_modify |
| | | cd tarball && ./build.sh && cd - |
| | | fi |
| | | |
| | | if [ $1 == "bsp" ] ; then |
| | | if [ $action == "build" ] ; then |
| | |
| | | fi |
| | | do_action bootloader $action |
| | | do_action kernel $action |
| | | do_action drivers $action |
| | | elif [ $1 == "image" ] ; then |
| | | do_root "yes" |
| | | do_action rootfs $action |