-add_layer_anaconda_build () {
- msg_step="Add required layers to the anaconda (installer) build project"
- echo_step_start
-
- source_env ${PRJ_BUILD_DIR_ANACONDA}
- SRC_LAYERS=""
- for sub_layer in ${SUB_LAYER_META_OE_ANACONDA}; do
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/meta-openembedded/${sub_layer}"
- done
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/meta-intel"
- SRC_LAYERS="${SRC_LAYERS} ${SRC_LAYER_DIR}/meta-anaconda"
- SRC_LAYERS="${SRC_LAYERS} ${SRC_STX_DIR}/meta-stx-distro"
- SRC_LAYERS="${SRC_LAYERS} ${SRC_STX_DIR}/meta-stx-integ"
-
- 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_anaconda_build () {
- msg_step="Add extra configs into local.conf for anaconda (installer) build"
- echo_step_start
-
- cd ${PRJ_BUILD_DIR_ANACONDA}
- echo_info "Adding the following extra configs into local.conf"
- cat ${SRC_CONFIGS}/local-anaconda.conf | \
- sed -e "s/@BSP@/${BSP}/" \
- -e "s|@TARGET_BUILD@|${PRJ_BUILD_DIR}|" \
- | 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
- echo "RM_WORK_EXCLUDE += '${IMG_ANACONDA}'" | tee -a conf/local.conf
- fi
-
- if [ "${EXTRA_CONF}" != "" ] && [ -f "${EXTRA_CONF}" ]; then
- cat ${EXTRA_CONF} | tee -a conf/local.conf
- fi
-
- echo_step_end
-}