- echo_info "For all layers source: ${SRC_LAYER_DIR}"
- echo_info "For StarlingX build project: ${PRJ_BUILD_DIR}"
- echo_info "For anaconda (installer) build project: ${PRJ_BUILD_DIR_ANACONDA}"
-
- echo_step_end
-}
-
-prepare_src () {
- msg_step="Get the source code repos"
- echo_step_start
-
- # Clone the oran layer if it's not already cloned
- # Check if the script is inside the repo
- if cd ${SCRIPTS_DIR} && git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
- CLONED_ORAN_REPO=`dirname ${SCRIPTS_DIR}`
- echo_info "Use the cloned oran repo: ${CLONED_ORAN_REPO}"
- mkdir -p ${SRC_ORAN_DIR}/rtp
- cd ${SRC_ORAN_DIR}/rtp
- rm -rf scripts
- ln -sf ${CLONED_ORAN_REPO}/scripts scripts
- else
- echo_info "Cloning oran layer:"
- cd ${SRC_ORAN_DIR}
- clone_update_repo ${SRC_ORAN_BRANCH} ${SRC_ORAN_URL} rtp
- fi
-
- echo_info "Cloning or update Yocto layers:"
-
- cd ${SRC_LAYER_DIR}
- for layer_url in ${SRC_YP_URL}; do
- layer_name=$(basename ${layer_url%%;commit*})
- layer_commit=$(basename ${layer_url##*;commit=})
- clone_update_repo ${SRC_YP_BRANCH} ${layer_url%%;commit*} ${layer_name} ${layer_commit}
- done
-
- echo_info "Cloning or update meta-starlingx layers:"
- clone_update_repo ${SRC_STX_BRANCH} ${SRC_STX_URL} $(basename ${SRC_STX_URL})
+ echo_info "For Yocto buid: ${WORKSPACE_YP}"
+ echo_info "For CentOS buid: ${WORKSPACE_CENTOS}"
+ echo_info "For Debian buid: ${WORKSPACE_DEB}"