1#!/bin/bash 2 3current_path=$PWD 4source_path=$PWD/OK3568_Linux_fs 5 6OK3568_source_url=git@172.16.0.250:RK/3568-linux-5.10.160/OK3568-linux-source.git 7source_branch=master 8 9OK3568_kernel_url=git@172.16.0.250:RK/3568-linux-5.10.160/OK3568-linux-kernel.git 10kernel_branch=master 11 12OK3568_uboot_url=git@172.16.0.250:RK/3568-linux-5.10.160/OK3568-linux-uboot.git 13uboot_branch=master 14 15git clone $OK3568_source_url OK3568_Linux_fs 16cd OK3568_Linux_fs && \ 17git checkout $source_branch 18 19git clone $OK3568_kernel_url $source_path/kernel 20cd $source_path/kernel && \ 21git checkout $kernel_branch 22 23git clone $OK3568_uboot_url $source_path/u-boot 24cd $source_path/u-boot && \ 25git checkout $uboot_branch 26 27cd $current_path && \ 28cp $source_path/build_close_source.sh ./ 29