#!/bin/bash
+# Ensure we fail the job if any steps fail.
+set -eu -o pipefail
+
help_info () {
cat << ENDHELP
Usage:
CLONED_ORAN_REPO=`dirname ${SCRIPTS_DIR}`
echo_info "Use the cloned oran repo: ${CLONED_ORAN_REPO}"
cd ${SRC_ORAN_DIR}
- ln -sf ${CLONED_ORAN_REPO}
+ ln -sf ${CLONED_ORAN_REPO} rtp
else
echo_info "Cloning oran layer:"
cd ${SRC_ORAN_DIR}
# Build the oran-inf-host image
mkdir -p logs
TIMESTAMP=`date +"%Y%m%d_%H%M%S"`
-set -o pipefail
RUN_CMD="bitbake ${DRYRUN} oran-image-inf-host"
echo_cmd "Build the oran-image-inf-host image"
bitbake ${DRYRUN} oran-image-inf-host 2>&1|tee logs/bitbake_oran-image-inf-host_${TIMESTAMP}.log