| | |
| | | |
| | | pr_info "start fetch Yocto $YCT_VER source code" |
| | | |
| | | TARBALL_NAME=$YCT_VER-$BSP_VER.tar.xz |
| | | TARBALL_NAME=yocto-$YCT_VER.tar.xz |
| | | |
| | | # Download source code packet |
| | | if [ ! -s $TARBALL_PATH/$TARBALL_NAME ] ; then |
| | | pr_info "start fetch $src source code" |
| | | wget $URL/bsp/yocto/$TARBALL_NAME -P $TARBALL_PATH |
| | | wget $URL/bsp/$BSP_VER/$TARBALL_NAME -P $TARBALL_PATH |
| | | fi |
| | | |
| | | # decompress source code packet |
| | |
| | | |
| | | if [ ! -e $YCT_PATH/sources/meta-igkboard ] ; then |
| | | cd $YCT_PATH/sources/ |
| | | git clone http://main.iot-yun.club:8088/r/meta-igkboard.git -b $YCT_VER |
| | | git clone http://main.iot-yun.club:8088/r/igkboard-meta.git meta-igkboard -b $YCT_VER |
| | | fi |
| | | } |
| | | |
| | |
| | | fi |
| | | |
| | | if [[ -n "$DL_PATH" ]] ; then |
| | | sed -i "s|^#DL_DIR.*|DL_DIR ?= \"$DL_PATH\"|g" conf/local.conf |
| | | sed -i "s|^DL_DIR.*|DL_DIR ?= \"$DL_PATH\"|g" conf/local.conf |
| | | sed -i "s|^#DL_DIR.*|DL_DIR ?= \"$DL_PATH/$YCT_VER\"|g" conf/local.conf |
| | | sed -i "s|^DL_DIR.*|DL_DIR ?= \"$DL_PATH/$YCT_VER\"|g" conf/local.conf |
| | | fi |
| | | |
| | | bitbake $BB_TARGET |