rename the build script and image name:
- build_stx.sh -> build_inf.sh
- stx-image-aio-installer-intel-corei7-64.iso
-> inf-image-aio-installer-intel-corei7-64.iso
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: If442d933e6f5c430944da1b70f13f2a1cf130e57
-r whether to inherit rm_work (default is Yes)
-s whether to skip update the repo if already exists
examples:
-r whether to inherit rm_work (default is Yes)
-s whether to skip update the repo if already exists
examples:
-./build_stx.sh
-./build_stx.sh -w workspace_1234 -r no -e /path/to/extra_local.conf
+$0
+$0 -w workspace_1234 -r no -e /path/to/extra_local.conf
SRC_LAYER_DIR=${WORKSPACE}/src_layers
SRC_ORAN_DIR=${SRC_LAYER_DIR}/oran
PRJ_BUILD_DIR=${WORKSPACE}/prj_oran_stx
SRC_LAYER_DIR=${WORKSPACE}/src_layers
SRC_ORAN_DIR=${SRC_LAYER_DIR}/oran
PRJ_BUILD_DIR=${WORKSPACE}/prj_oran_stx
-PRJ_BUILD_DIR_ANACONDA=${WORKSPACE}/prj_oran_stx_anaconda
+PRJ_BUILD_DIR_ANACONDA=${WORKSPACE}/prj_oran_inf_anaconda
PRJ_SHARED_DIR=${WORKSPACE}/prj_shared
PRJ_SHARED_DL_DIR=${WORKSPACE}/prj_shared/downloads
PRJ_SHARED_SS_DIR=${WORKSPACE}/prj_shared/sstate-cache
PRJ_SHARED_DIR=${WORKSPACE}/prj_shared
PRJ_SHARED_DL_DIR=${WORKSPACE}/prj_shared/downloads
PRJ_SHARED_SS_DIR=${WORKSPACE}/prj_shared/sstate-cache
SRC_CONFIGS=${SRC_ORAN_DIR}/rtp/scripts/configs
IMG_STX=stx-image-aio
IMG_ANACONDA=stx-image-aio-installer
SRC_CONFIGS=${SRC_ORAN_DIR}/rtp/scripts/configs
IMG_STX=stx-image-aio
IMG_ANACONDA=stx-image-aio-installer
+IMG_INF=inf-image-aio-installer
ISO_STX=${PRJ_BUILD_DIR}/tmp/deploy/images/${BSP}/${IMG_STX}-${BSP}.iso
ISO_ANACONDA=${PRJ_BUILD_DIR_ANACONDA}/tmp-glibc/deploy/images/${BSP}/${IMG_ANACONDA}-${BSP}.iso
ISO_STX=${PRJ_BUILD_DIR}/tmp/deploy/images/${BSP}/${IMG_STX}-${BSP}.iso
ISO_ANACONDA=${PRJ_BUILD_DIR_ANACONDA}/tmp-glibc/deploy/images/${BSP}/${IMG_ANACONDA}-${BSP}.iso
+ISO_INF=${PRJ_BUILD_DIR_ANACONDA}/tmp-glibc/deploy/images/${BSP}/${IMG_INF}-${BSP}.iso
prepare_workspace () {
msg_step="Create workspace for the build"
prepare_workspace () {
msg_step="Create workspace for the build"
echo_cmd "Build the ${IMG_ANACONDA} image"
bitbake ${DRYRUN} ${IMG_ANACONDA} 2>&1|tee logs/bitbake_${IMG_ANACONDA}_${TIMESTAMP}.log
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_info "Build succeeded, you can get the image in ${ISO_ANACONDA}"
+ echo_info "Build succeeded, you can get the image in ${ISO_INF}"
}
#########################################################################
}
#########################################################################