]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Merge patch series "Azure: Rework world build to directly use the container"
authorTom Rini <trini@konsulko.com>
Sun, 7 Dec 2025 14:10:24 +0000 (08:10 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 7 Dec 2025 18:53:09 +0000 (12:53 -0600)
This series from Tom Rini <trini@konsulko.com> makes some of our Azure
jobs easier to follow by removing the abstraction of calling docker from
the job we're running and instead following normal Azure Pipelines
conventions.

Link: https://lore.kernel.org/r/20251126234959.3909571-1-trini@konsulko.com
1  2 
.azure-pipelines.yml

index 828e6012b09c0f984ba839cdab5b7c9dd3e574fc,526deef8dd24cffd30eeaf15c326c40a7d9ad4a4..25b0e4c985c895f1017453acd22b29df1ca76848
@@@ -145,13 -126,17 +145,14 @@@ stages
      displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
      pool:
        vmImage: $(ubuntu_vm)
+     container:
+       image: $(ci_runner_image)
+       options: $(container_option)
      steps:
        - script: |
-           cat << "EOF" > build.sh
-           cd $(work_dir)
 -          # Copy things from /home/uboot to the Azure container user
 -          sudo cp -a /home/uboot/.buildman /home/uboot/.cache ~
 -          sudo chown -R 1001 ~/.cache ~/.buildman
+           # Configure git
            git config --global user.name "Azure Pipelines"
            git config --global user.email bmeng.cn@gmail.com
-           git config --global --add safe.directory $(work_dir)
            export USER=azure
            python3 -m venv /tmp/venv
            . /tmp/venv/bin/activate
            BUILDMAN: $(arm_catch_all)
          aarch64_catch_all:
            BUILDMAN: $(aarch64_catch_all)
 -        everything_but_arm_and_powerpc:
 -          BUILDMAN: $(everything_but_arm_and_powerpc)
      steps:
        - script: |
-           cat << EOF > build.sh
            set -ex
-           cd ${WORK_DIR}
-           # make environment variables available as tests are running inside a container
-           export BUILDMAN="${BUILDMAN}"
-           git config --global --add safe.directory ${WORK_DIR}
 -          # Copy things from /home/uboot to the Azure container user
 -          sudo cp -a /home/uboot/.buildman /home/uboot/.cache ~
 -          sudo chown -R 1001 ~/.cache ~/.buildman
+           # Setup venv, perform build
            python3 -m venv /tmp/venv
            . /tmp/venv/bin/activate
            pip install -r tools/binman/requirements.txt \
 -            -r tools/buildman/requirements.txt
 +            -r tools/buildman/requirements.txt \
 +            setuptools
-           EOF
-           cat << "EOF" >> build.sh
            if [[ "${BUILDMAN}" != "" ]]; then
                ret=0;
                tools/buildman/buildman -o /tmp -PEWM ${BUILDMAN} ${OVERRIDE} || ret=$?;