gitlab/opensbi: Move to docker:stableThe OpenSBI build has been using docker:19.03.1, which appears to be oldenough that v2 of the manifest is no longer supported. Something hasstarted serving u
gitlab/opensbi: Move to docker:stableThe OpenSBI build has been using docker:19.03.1, which appears to be oldenough that v2 of the manifest is no longer supported. Something hasstarted serving us those manifests, resulting in errors along the linesof $ docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $IMAGE_TAG .gitlab-ci.d/opensbi Step 1/7 : FROM ubuntu:18.04 18.04: Pulling from library/ubuntu mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'This moves to docker:stable, as was suggested by the template. It alsoadds the python3 package via apt, as OpenSBI requires that to build.Reviewed-by: Bin Meng <bmeng@tinylab.org>Message-ID: <20230303202448.11911-2-palmer@rivosinc.com>Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
show more ...
gitlab-ci.yml: Add jobs to build OpenSBI firmware binariesAdd two GitLab jobs to build the OpenSBI firmware binaries.The first job builds a Docker image with the packages requisiteto build OpenS
gitlab-ci.yml: Add jobs to build OpenSBI firmware binariesAdd two GitLab jobs to build the OpenSBI firmware binaries.The first job builds a Docker image with the packages requisiteto build OpenSBI, and stores this image in the GitLab registry.The second job pulls the image from the registry and builds theOpenSBI firmware binaries.The docker image is only rebuilt if the GitLab YAML or theDockerfile is updated. The second job is only built when theroms/opensbi/ submodule is updated, when a git-ref starts with'opensbi' or when the last commit contains 'OpenSBI'. The filesgenerated are archived in the artifacts.zip file.With OpenSBI v0.6, it took 2 minutes 56 seconds to buildthe docker image, and 1 minute 24 seconds to generate theartifacts.zip with the firmware binaries (filesize: 111KiB).See: https://gitlab.com/lbmeng/qemu/pipelines/120520138Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>