File tree Expand file tree Collapse file tree 3 files changed +20
-7
lines changed
tools/ci/dynamic_pipelines/templates Expand file tree Collapse file tree 3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -191,13 +191,21 @@ variables:
191191 fi
192192
193193 # Custom OpenOCD
194- if [[ ! -z "$OOCD_DISTRO_URL" && "$CI_JOB_STAGE" == "target_test" ]]; then
195- echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
196- wget $OOCD_DISTRO_URL
197- ARCH_NAME=$(basename $OOCD_DISTRO_URL)
198- tar -x -f $ARCH_NAME
199- export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
200- export PATH=$PWD/openocd-esp32/bin:$PATH
194+ if [[ "$CI_JOB_STAGE" == "target_test" ]]; then
195+ machine="$(uname -m)"
196+ if [[ "$machine" == "armv7l" ]] ; then
197+ OOCD_DISTRO_URL="$OOCD_DISTRO_URL_ARMHF"
198+ elif [[ "$machine" == "aarch64" ]] ; then
199+ OOCD_DISTRO_URL="$OOCD_DISTRO_URL_ARM64"
200+ fi
201+ if [[ ! -z "$OOCD_DISTRO_URL" ]]; then
202+ echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
203+ wget $OOCD_DISTRO_URL
204+ ARCH_NAME=$(basename $OOCD_DISTRO_URL)
205+ tar -x -f $ARCH_NAME
206+ export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
207+ export PATH=$PWD/openocd-esp32/bin:$PATH
208+ fi
201209 fi
202210
203211 if [[ -n "$CI_PYTHON_TOOL_REPO" ]]; then
Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ pipeline_variables:
165165 if [ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]; then
166166 echo "BUILD_AND_TEST_ALL_APPS=1" >> pipeline.env
167167 fi
168+ - echo "OOCD_DISTRO_URL_ARMHF=$OOCD_DISTRO_URL_ARMHF" >> pipeline.env
169+ - echo "OOCD_DISTRO_URL_ARM64=$OOCD_DISTRO_URL_ARM64" >> pipeline.env
168170 - python tools/ci/ci_process_description.py
169171 - cat pipeline.env
170172 - python tools/ci/artifacts_handler.py upload --type modified_files_and_components_report
Original file line number Diff line number Diff line change 5757 ENV_MARKERS : " "
5858 INSTALL_EXTRA_TOOLS : " xtensa-esp-elf-gdb riscv32-esp-elf-gdb openocd-esp32 esp-rom-elfs"
5959 PYTEST_EXTRA_FLAGS : " --dev-passwd ${ETHERNET_TEST_PASSWORD} --dev-user ${ETHERNET_TEST_USER} --capture=fd --verbosity=0 --unity-test-report-mode merge"
60+ needs :
61+ - pipeline : $PARENT_PIPELINE_ID
62+ job : pipeline_variables
6063 cache :
6164 # Usually do not need submodule-cache in target_test
6265 - key : pip-cache-${LATEST_GIT_TAG}
You can’t perform that action at this time.
0 commit comments