-}
-
-setup_anaconda_build () {
- echo_step_start "Setup anaconda (installer) build project"
-
- add_layer_anaconda_build
-
- cd ${PRJ_BUILD_DIR_ANACONDA}
- if ! grep -q 'Configs for anaconda' conf/local.conf; then
- add_configs_anaconda_build
- else
- echo_info "Nothing is added into local.conf"
- fi
-
- echo_step_end "Setup anaconda build project"
-}
-
-build_anaconda_image () {
- echo_step_start "Build anaconda (installer) images"
- source_env ${PRJ_BUILD_DIR_ANACONDA}
-
- mkdir -p logs
-
- if [ -f ${ISO_ANACONDA} ]; then
- bitbake ${DRYRUN} -c clean ${IMG_ANACONDA}
- fi
- RUN_CMD="bitbake ${DRYRUN} ${IMG_ANACONDA}"
- echo_cmd "Build the ${IMG_ANACONDA} image"
- bitbake ${DRYRUN} ${IMG_ANACONDA} 2>&1|tee logs/bitbake_${IMG_ANACONDA}_${TIMESTAMP}.log
-
- if [ -z "${DRYRUN}" ]; then
- cp -Pf ${ISO_ANACONDA} ${ISO_INF}
- fi
-
- echo_step_end
-
- echo_info "Build succeeded, you can get the image in ${ISO_INF}"
-}
-
-#########################################################################
-# Main process
-#########################################################################
-
-prepare_workspace
-prepare_src
-setup_stx_build
-setup_anaconda_build
-build_stx_image
-build_anaconda_image