| | |
| | | export CROSS_COMPILE=`jq -r ".bsp.cortexAtool" $CONF_FILE | tr 'A-Z' 'a-z'` |
| | | export MCORE_COMPILE=`jq -r ".bsp.cortexMtool" $CONF_FILE | tr 'A-Z' 'a-z'` |
| | | |
| | | export SRCS="imx-atf uboot-imx imx-mkimage" |
| | | export BRANCH=$BSP_VER |
| | | export JOBS=`cat /proc/cpuinfo | grep processor | wc -l` |
| | | export ARCH=arm |
| | | |
| | | # i.MX6ULL only need uboot-imx |
| | | if [[ $BOARD =~ mx6ull ]] ; then |
| | | export SRCS="uboot-imx" |
| | | return ; |
| | | fi |
| | | |
| | | export SRCS="uboot-imx imx-atf imx-mkimage" |
| | | export_fmver |
| | | export SRCS="imx-atf uboot-imx imx-mkimage" |
| | | |
| | | if [[ $BOARD =~ mx8mp ]] ; then |
| | | |
| | |
| | | fi |
| | | done |
| | | |
| | | # i.MX6ULL only need uboot-imx |
| | | if [[ $BOARD =~ mx6ull ]] ; then |
| | | return ; |
| | | fi |
| | | |
| | | mkdir -p $FMW_PATH && cd $FMW_PATH |
| | | |
| | |
| | | cd $PRJ_PATH/${SRC} |
| | | |
| | | # do patch if not patched |
| | | if [ ! -s configs/$defconfig ] ; then |
| | | if [ ! -s configs/$defconfig -a -s $patch_file ] ; then |
| | | pr_warn "do patch for $SRC now..." |
| | | patch -p1 < $patch_file |
| | | fi |
| | |
| | | make ARCH=arm ${BOARD}_defconfig |
| | | fi |
| | | make -j${JOBS} CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm |
| | | |
| | | # i.MX6ULL only need uboot-imx |
| | | if [[ $BOARD =~ mx6ull ]] ; then |
| | | cp u-boot-dtb.imx u-boot-${BOARD}.imx |
| | | chmod a+x u-boot-${BOARD}.imx |
| | | set -x |
| | | cp u-boot-${BOARD}.imx $PRFX_PATH |
| | | set +x |
| | | return ; |
| | | fi |
| | | |
| | | set -x |
| | | cp u-boot.bin $MKIMG_BIN_PATH |
| | |
| | | cd $PRJ_PATH |
| | | mkdir -p $PRFX_PATH |
| | | |
| | | build_atf |
| | | #build_cortexM |
| | | build_uboot |
| | | |
| | | # i.MX6ULL only need uboot-imx |
| | | if [[ ${BOARD} =~ mx6ull ]] ; then |
| | | return ; |
| | | fi |
| | | |
| | | build_atf |
| | | build_imxboot |
| | | #build_cortexM |
| | | } |
| | | |
| | | function do_install() |