guowenxue
2024-02-22 86063e8b34368bab47956834efd6536259cd9baf
kernel/build.sh
@@ -122,7 +122,7 @@
            # 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
@@ -130,15 +130,15 @@
        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