Skip to content
Snippets Groups Projects
Commit 0daabdeb authored by Bartosz Podrygajlo's avatar Bartosz Podrygajlo
Browse files

Update the aw2s entrypoint to support new yaml config and updated images

parent 8e6234a2
No related branches found
No related tags found
2 merge requests!3021Integration: `2024.w40b`,!3007Enable gNB configuration through YAML file
...@@ -9,14 +9,29 @@ echo "==================================" ...@@ -9,14 +9,29 @@ echo "=================================="
echo "/proc/sys/kernel/core_pattern=$(cat /proc/sys/kernel/core_pattern)" echo "/proc/sys/kernel/core_pattern=$(cat /proc/sys/kernel/core_pattern)"
if [ ! -f $CONFIGFILE ]; then if [ ! -f $CONFIGFILE ]; then
echo "No configuration file found: please mount at $CONFIGFILE" echo "No configuration file $CONFIGFILE found: attempting to find YAML config"
exit 255 YAML_CONFIGFILE=$PREFIX/etc/gnb.yaml
if [ ! -f $YAML_CONFIGFILE ]; then
echo "No configuration file $YAML_CONFIGFILE found. Please mount either at $CONFIGFILE or $YAML_CONFIGFILE"
exit 255
fi
CONFIGFILE=$YAML_CONFIGFILE
fi fi
echo "==================================" echo "=================================="
echo "== Configuration file:" echo "== Configuration file:"
cat $CONFIGFILE cat $CONFIGFILE
new_args=()
while [[ $# -gt 0 ]]; do
new_args+=("$1")
shift
done
new_args+=("-O")
new_args+=("$CONFIGFILE")
# enable printing of stack traces on assert # enable printing of stack traces on assert
export OAI_GDBSTACKS=1 export OAI_GDBSTACKS=1
...@@ -24,7 +39,6 @@ echo "==================================" ...@@ -24,7 +39,6 @@ echo "=================================="
echo "== Starting gNB soft modem with AW2S" echo "== Starting gNB soft modem with AW2S"
if [[ -v USE_ADDITIONAL_OPTIONS ]]; then if [[ -v USE_ADDITIONAL_OPTIONS ]]; then
echo "Additional option(s): ${USE_ADDITIONAL_OPTIONS}" echo "Additional option(s): ${USE_ADDITIONAL_OPTIONS}"
new_args=()
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
new_args+=("$1") new_args+=("$1")
shift shift
...@@ -35,6 +49,6 @@ if [[ -v USE_ADDITIONAL_OPTIONS ]]; then ...@@ -35,6 +49,6 @@ if [[ -v USE_ADDITIONAL_OPTIONS ]]; then
echo "${new_args[@]}" echo "${new_args[@]}"
exec "${new_args[@]}" exec "${new_args[@]}"
else else
echo "$@" echo "${new_args[@]}"
exec "$@" exec "${new_args[@]}"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment