build-qemu-robot-docker: update to jammy
The HEAD of the OpenBMC now builds the QEMU binary with GLIbc_2.33. But
this QEMU-Robot-docker still uses GLIbc_2.31, which causes
run-qemu-robot to fail.
The fix is to simply update the base image to jammy which has a newer
version of glibc.
This commit also fixed imcompatible packages in the build script:
python2.
Tested: run-robot-test-qemu worked on the Romulus image built from HEAD
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I4d8b63dddced1e33eb4073b4f4471220ed7e76da
diff --git a/scripts/build-qemu-robot-docker.sh b/scripts/build-qemu-robot-docker.sh
index 7de8bb1..823ae8e 100755
--- a/scripts/build-qemu-robot-docker.sh
+++ b/scripts/build-qemu-robot-docker.sh
@@ -19,7 +19,7 @@
http_proxy=${http_proxy:-}
DOCKER_IMG_NAME=${1:-"openbmc/ubuntu-robot-qemu"}
-DISTRO=${2:-"ubuntu:focal"}
+DISTRO=${2:-"ubuntu:jammy"}
UBUNTU_MIRROR=${UBUNTU_MIRROR:-""}
PIP_MIRROR=${PIP_MIRROR:-""}
@@ -62,8 +62,8 @@
debianutils \
gawk \
git \
- python \
- python-dev \
+ python2 \
+ python2-dev \
python-setuptools \
python3 \
python3-dev \