@@ -20,6 +20,9 @@ dist: focal
20
20
21
21
addons :
22
22
apt :
23
+ sources :
24
+ - sourceline : ' deb https://apt.kitware.com/ubuntu/ focal main'
25
+ key_url : ' https://apt.kitware.com/keys/kitware-archive-latest.asc'
23
26
packages :
24
27
- cmake
25
28
- srecord
@@ -46,11 +49,19 @@ matrix:
46
49
language : python
47
50
python : 3.8
48
51
install :
52
+ # Hide Travis-preinstalled CMake
53
+ # The Travis-preinstalled CMake is unfortunately not installed via apt, so we
54
+ # can't replace it with an apt-supplied version very easily. Additionally, we
55
+ # can't permit the Travis-preinstalled copy to survive, as the Travis default
56
+ # path lists the Travis CMake install location ahead of any place where apt
57
+ # would install CMake to. Instead of apt removing or upgrading to a new CMake
58
+ # version, we must instead delete the Travis copy of CMake.
59
+ - sudo rm -rf /usr/local/cmake*
49
60
# Install arm-none-eabi-gcc
50
61
- pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc
51
62
- curl -L0 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=108bd959-44bd-4619-9c19-26187abf5225&la=en&hash=E788CE92E5DFD64B2A8C246BBA91A249CB8E2D2D" --output gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
52
63
- tar xf gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
53
- - export PATH="$PATH:${PWD} /gcc-arm-none-eabi-9-2019-q4-major/bin"
64
+ - export PATH="$(pwd) /gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH "
54
65
- popd
55
66
# Setup ccache
56
67
- ccache -o compiler_check=content
@@ -68,6 +79,8 @@ matrix:
68
79
- pip install -r mbed-os/requirements.txt
69
80
script :
70
81
# Build TF-M and all tests
82
+ - python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --build || true
83
+ - sed -i '136imessage("GCC=${GNUARM_PATH}/bin/${_GCC_BINARY_NAME}")' mbed-os/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_V1_1/TARGET_IGNORE/trusted-firmware-m/cmake/Common/FindGNUARM.cmake
71
84
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --build
72
85
- ccache -s
73
86
0 commit comments