- source_env ${PRJ_BUILD_DIR}
- SRC_LAYERS=""
- for layer_url in ${SRC_YP_URL}; do
- layer_name=$(basename ${layer_url%%;commit*})
- case ${layer_name} in
- poky)
- continue
- ;;
- meta-openembedded)
- for sub_layer in ${SUB_LAYER_META_OE}; do
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/${layer_name}/${sub_layer}"
- done
- ;;
- meta-cloud-services)
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/${layer_name}"
- for sub_layer in ${SUB_LAYER_META_CLOUD_SERVICES}; do
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/${layer_name}/${sub_layer}"
- done
- ;;
- meta-security)
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/${layer_name}"
- for sub_layer in ${SUB_LAYER_META_SECURITY}; do
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/${layer_name}/${sub_layer}"
- done
- ;;
- *)
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/${layer_name}"
- ;;
-
- esac
- done
-
- SRC_LAYERS="${SRC_LAYERS} ${SRC_ORAN_DIR}/rtp/meta-stx"
-
- for src_layer in ${SRC_LAYERS}; do
- RUN_CMD="bitbake-layers add-layer ${src_layer}"
- echo_cmd "Add the ${src_layer} layer into the build project"
- ${RUN_CMD}
- done
-
- echo_step_end
-}
-
-add_configs_stx_build () {
- msg_step="Add extra configs into local.conf for StarlingX build"
- echo_step_start
-
- cd ${PRJ_BUILD_DIR}
- echo_info "Adding the following extra configs into local.conf"
- cat ${SRC_CONFIGS}/local-stx.conf | \
- sed -e "s/@BSP@/${BSP}/" | tee -a conf/local.conf
- cat ${SRC_CONFIGS}/local-mirrors.conf | tee -a conf/local.conf
-
- echo "DL_DIR = '${PRJ_SHARED_DL_DIR}'" | tee -a conf/local.conf
- echo "SSTATE_DIR = '${PRJ_SHARED_SS_DIR}'" | tee -a conf/local.conf
-
- if [ "${RM_WORK}" == "Yes" ]; then
- echo "INHERIT += 'rm_work'" | tee -a conf/local.conf
- fi
-