| | |
| | | |
| | | # Download source code packet |
| | | if [ ! -s $TARBALL_PATH/$KER_SRC.tar.xz ] ; then |
| | | wget $BSP_URL/bsp/$BSP_VER/$KER_SRC.tar.xz -P $TARBALL_PATH |
| | | wget $BSP_URL/imx/bsp/$BSP_VER/$KER_SRC.tar.xz -P $TARBALL_PATH |
| | | fi |
| | | |
| | | # decompress source code packet |
| | |
| | | fi |
| | | fi |
| | | |
| | | pr_info "Start build linux kernel source code" |
| | | |
| | | cd $KER_PATH |
| | | |
| | | if [ ! -s arch/$ARCH/configs/$defconfig -a -s $patch_file ] ; then |
| | | pr_warn "do patch for $KER_PATH now..." |
| | | pr_warn "do patch for $KER_SRC now..." |
| | | patch -p1 < $patch_file |
| | | fi |
| | | |
| | | pr_warn "start build $KER_SRC" |
| | | |
| | | if [ ! -s .config ] ; then |
| | | make ${defconfig} |
| | | fi |