- 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
-
- 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
-
- if [ "${EXTRA_CONF}" != "" ] && [ -f "${EXTRA_CONF}" ]; then
- cat ${EXTRA_CONF} | tee -a conf/local.conf
- fi
-
- echo_step_end
-}
-
-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}