1b10b4515SJerome Forissiername: CI 2b10b4515SJerome Forissieron: [push, pull_request] 39c16bc95SAlexpermissions: 49c16bc95SAlex contents: read # to fetch code (actions/checkout) 5b10b4515SJerome Forissierjobs: 6b10b4515SJerome Forissier code_style: 7b10b4515SJerome Forissier name: Code style 8b10b4515SJerome Forissier runs-on: ubuntu-latest 9b10b4515SJerome Forissier container: jforissier/optee_os_ci 10b10b4515SJerome Forissier steps: 11b10b4515SJerome Forissier - name: Checkout 12b10b4515SJerome Forissier uses: actions/checkout@v3 13b10b4515SJerome Forissier with: 143957cdc4SJerome Forissier fetch-depth: 0 # full history so checkpatch can check commit IDs in commit messages 15b10b4515SJerome Forissier - name: Update Git config 16b10b4515SJerome Forissier run: git config --global --add safe.directory ${GITHUB_WORKSPACE} 17b10b4515SJerome Forissier - name: Run checkpatch 18b10b4515SJerome Forissier shell: bash 19b10b4515SJerome Forissier run: | 20b10b4515SJerome Forissier # checkpatch task 21b10b4515SJerome Forissier set -e 22b10b4515SJerome Forissier git config --global --add safe.directory /__w/optee_os/optee_os 23b10b4515SJerome Forissier pushd . >/dev/null 24b10b4515SJerome Forissier mkdir -p /tmp/linux/scripts 25b10b4515SJerome Forissier cd /tmp/linux/scripts 26b10b4515SJerome Forissier wget --quiet https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/plain/scripts/checkpatch.pl 27b10b4515SJerome Forissier chmod +x checkpatch.pl 28b10b4515SJerome Forissier wget --quiet https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/plain/scripts/spelling.txt 29b10b4515SJerome Forissier echo "invalid.struct.name" >const_structs.checkpatch 30b10b4515SJerome Forissier export PATH=/tmp/linux/scripts:$PATH 31b10b4515SJerome Forissier popd >/dev/null 32b10b4515SJerome Forissier source scripts/checkpatch_inc.sh 33b10b4515SJerome Forissier function _do() { echo '>>' $*; $*; } 34b10b4515SJerome Forissier # Run checkpatch.pl: 35b10b4515SJerome Forissier # - on the tip of the branch only if we're not in a pull request 36b10b4515SJerome Forissier # - otherwise: 37b10b4515SJerome Forissier # * on each commit in the development branch that is not in the target (merge to) branch 38b10b4515SJerome Forissier # * on the global diff if the PR contains more than one commit (useful to check if fixup 39b10b4515SJerome Forissier # commits do solve previous checkpatch errors) 40b10b4515SJerome Forissier if [ "${GITHUB_EVENT_NAME}" = "push" ]; then \ 41b10b4515SJerome Forissier _do checkpatch HEAD || failed=1; \ 42b10b4515SJerome Forissier else \ 43b10b4515SJerome Forissier for c in $(git rev-list HEAD^1..HEAD^2); do \ 44b10b4515SJerome Forissier _do checkpatch $c || failed=1; \ 45b10b4515SJerome Forissier done; \ 46b10b4515SJerome Forissier if [ "$(git rev-list --count HEAD^1..HEAD^2)" -gt 1 ]; then \ 47b10b4515SJerome Forissier _do checkdiff $(git rev-parse HEAD^1) $(git rev-parse HEAD^2) || failed=1; \ 48b10b4515SJerome Forissier fi; \ 49b10b4515SJerome Forissier fi 50b10b4515SJerome Forissier [ -z "$failed" ] 51b10b4515SJerome Forissier - name: Run pycodestyle 5232692b31SJerome Forissier if: success() || failure() 53b10b4515SJerome Forissier run: | 54b10b4515SJerome Forissier # pycodestyle task 55b10b4515SJerome Forissier sudo -E bash -c "apt update -qq -y && apt install -qq -y pycodestyle" 56b10b4515SJerome Forissier pycodestyle scripts/*.py core/arch/arm/plat-stm32mp1/scripts/stm32image.py 57b10b4515SJerome Forissier builds: 58b10b4515SJerome Forissier name: make (multi-platform) 59b10b4515SJerome Forissier runs-on: ubuntu-latest 60b10b4515SJerome Forissier container: jforissier/optee_os_ci 61b10b4515SJerome Forissier steps: 62b10b4515SJerome Forissier - name: Restore build cache 63b10b4515SJerome Forissier uses: actions/cache@v3 64b10b4515SJerome Forissier with: 65b10b4515SJerome Forissier path: /github/home/.cache/ccache 66b10b4515SJerome Forissier key: builds-cache-${{ github.sha }} 67b10b4515SJerome Forissier restore-keys: | 68b10b4515SJerome Forissier builds-cache- 69b10b4515SJerome Forissier - name: Checkout 70b10b4515SJerome Forissier uses: actions/checkout@v3 71b10b4515SJerome Forissier - shell: bash 72b10b4515SJerome Forissier run: | 73b10b4515SJerome Forissier # build task 74b10b4515SJerome Forissier set -e -v 75b10b4515SJerome Forissier export LC_ALL=C 76b10b4515SJerome Forissier export PATH=/usr/local/bin:$PATH # clang 77b10b4515SJerome Forissier export CROSS_COMPILE32="ccache arm-linux-gnueabihf-" 78b10b4515SJerome Forissier export CROSS_COMPILE64="ccache aarch64-linux-gnu-" 79b10b4515SJerome Forissier export CFG_DEBUG_INFO=n 80b10b4515SJerome Forissier export CFG_WERROR=y 81b10b4515SJerome Forissier 82b10b4515SJerome Forissier function _make() { make -j$(nproc) -s O=out $*; } 8366370233SJorge Ramirez-Ortiz function download_plug_and_trust() { mkdir -p $HOME/se050 && git clone --single-branch -b v0.4.2 https://github.com/foundriesio/plug-and-trust $HOME/se050/plug-and-trust || (rm -rf $HOME/se050 ; echo Nervermind); } 845cc24a60SNicola Mazzucato 851188e423SNicola Mazzucato function download_scp_firmware() { git clone --single-branch https://github.com/ARM-software/SCP-firmware.git $HOME/scp-firmware || echo Nervermind; } 86b10b4515SJerome Forissier 87b10b4515SJerome Forissier ccache -s -v 88b10b4515SJerome Forissier download_plug_and_trust 895948737dSEtienne Carriere download_scp_firmware 90b10b4515SJerome Forissier 91b10b4515SJerome Forissier _make 92b10b4515SJerome Forissier _make COMPILER=clang 93b10b4515SJerome Forissier _make CFG_TEE_CORE_LOG_LEVEL=4 CFG_TEE_CORE_DEBUG=y CFG_TEE_TA_LOG_LEVEL=4 CFG_CC_OPT_LEVEL=0 CFG_DEBUG_INFO=y 94b10b4515SJerome Forissier _make CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n CFG_TEE_TA_LOG_LEVEL=0 CFG_DEBUG_INFO=n CFG_ENABLE_EMBEDDED_TESTS=n 95b10b4515SJerome Forissier _make CFG_TEE_CORE_MALLOC_DEBUG=y CFG_CORE_DEBUG_CHECK_STACKS=y 9683d0edeeSJerome Forissier _make CFG_CORE_SANITIZE_KADDRESS=y CFG_CORE_ASLR=n 97b10b4515SJerome Forissier _make CFG_LOCKDEP=y 98b10b4515SJerome Forissier _make CFG_CRYPTO=n 99b10b4515SJerome Forissier _make CFG_CRYPTO_{AES,DES}=n 100b10b4515SJerome Forissier _make CFG_CRYPTO_{DSA,RSA,DH}=n 101b10b4515SJerome Forissier _make CFG_CRYPTO_{DSA,RSA,DH,ECC}=n 102b10b4515SJerome Forissier _make CFG_CRYPTO_{H,C,CBC_}MAC=n 103b10b4515SJerome Forissier _make CFG_CRYPTO_{G,C}CM=n 104b10b4515SJerome Forissier _make CFG_CRYPTO_{MD5,SHA{1,224,256,384,512,512_256}}=n 105b10b4515SJerome Forissier _make CFG_WITH_PAGER=y out/core/tee{,-pager,-pageable}.bin 106b10b4515SJerome Forissier _make CFG_WITH_PAGER=y CFG_CRYPTOLIB_NAME=mbedtls CFG_CRYPTOLIB_DIR=lib/libmbedtls 107b10b4515SJerome Forissier _make CFG_WITH_PAGER=y CFG_WITH_LPAE=y 108b10b4515SJerome Forissier _make CFG_WITH_LPAE=y 1099cded664SJens Wiklander _make CFG_CORE_PREALLOC_EL0_TBLS=y 110b10b4515SJerome Forissier _make CFG_RPMB_FS=y 111b10b4515SJerome Forissier _make CFG_RPMB_FS=y CFG_RPMB_TESTKEY=y 112b10b4515SJerome Forissier _make CFG_REE_FS=n CFG_RPMB_FS=y 113b10b4515SJerome Forissier _make CFG_WITH_PAGER=y CFG_WITH_LPAE=y CFG_RPMB_FS=y CFG_DT=y CFG_TEE_CORE_LOG_LEVEL=1 CFG_TEE_CORE_DEBUG=y CFG_CC_OPT_LEVEL=0 CFG_DEBUG_INFO=y 114b10b4515SJerome Forissier _make CFG_WITH_PAGER=y CFG_WITH_LPAE=y CFG_RPMB_FS=y CFG_DT=y CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n DEBUG=0 115b10b4515SJerome Forissier _make CFG_BUILT_IN_ARGS=y CFG_PAGEABLE_ADDR=0 CFG_NS_ENTRY_ADDR=0 CFG_DT_ADDR=0 CFG_DT=y 116b10b4515SJerome Forissier _make CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_ULIBS_SHARED=y 117b10b4515SJerome Forissier _make CFG_TA_GPROF_SUPPORT=y CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y CFG_ULIBS_MCOUNT=y 118b10b4515SJerome Forissier _make CFG_SECURE_DATA_PATH=y 119b10b4515SJerome Forissier _make CFG_REE_FS_TA_BUFFERED=y 120b10b4515SJerome Forissier _make CFG_WITH_USER_TA=n 1214dc19277SClement Faure _make CFG_{ATTESTATION,DEVICE_ENUM,RTC,SCMI,SECSTOR_TA_MGT}_PTA=y CFG_WITH_STATS=y CFG_TA_STATS=y 122b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a 123b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a COMPILER=clang 124b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n CFG_TEE_TA_LOG_LEVEL=0 CFG_DEBUG_INFO=n 1259655e48eSClement Faure _make PLATFORM=vexpress-qemu_armv8a CFG_TEE_CORE_LOG_LEVEL=4 CFG_TEE_CORE_DEBUG=y CFG_TEE_TA_LOG_LEVEL=4 CFG_CC_OPT_LEVEL=0 CFG_DEBUG_INFO=y 126b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_WITH_PAGER=y 127b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_ULIBS_SHARED=y 128b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_TA_GPROF_SUPPORT=y CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y CFG_ULIBS_MCOUNT=y 129b76b2296SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_NS_VIRTUALIZATION=y 1309cded664SJens Wiklander _make PLATFORM=vexpress-qemu_armv8a CFG_CORE_PREALLOC_EL0_TBLS=y 131b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_CORE_SEL1_SPMC=y 1323ce90223SJens Wiklander _make PLATFORM=vexpress-qemu_armv8a CFG_CORE_SEL2_SPMC=y CFG_CORE_PHYS_RELOCATABLE=y CFG_TZDRAM_START=0x0d304000 CFG_TZDRAM_SIZE=0x00cfc000 1334dc19277SClement Faure _make PLATFORM=vexpress-qemu_armv8a CFG_{ATTESTATION,DEVICE_ENUM,RTC,SCMI,SECSTOR_TA_MGT}_PTA=y CFG_WITH_STATS=y CFG_TA_STATS=y 134faef0dd6SJens Wiklander _make PLATFORM=vexpress-qemu_armv8a CFG_CORE_SEL1_SPMC=y CFG_NS_VIRTUALIZATION=y 135b10b4515SJerome Forissier dd if=/dev/urandom of=BL32_AP_MM.fd bs=2621440 count=1 && _make PLATFORM=vexpress-qemu_armv8a CFG_STMM_PATH=BL32_AP_MM.fd CFG_RPMB_FS=y CFG_CORE_HEAP_SIZE=524288 CFG_TEE_RAM_VA_SIZE=0x00400000 1365948737dSEtienne Carriere if [ -d $HOME/scp-firmware ]; then _make PLATFORM=vexpress-qemu_armv8a CFG_SCMI_SCPFW=y CFG_SCP_FIRMWARE=$HOME/scp-firmware; fi 137b10b4515SJerome Forissier _make PLATFORM=stm-b2260 138b10b4515SJerome Forissier _make PLATFORM=stm-cannes 139b10b4515SJerome Forissier _make PLATFORM=stm32mp1 140b10b4515SJerome Forissier _make PLATFORM=stm32mp1-135F_DK 1415948737dSEtienne Carriere if [ -d $HOME/scp-firmware ]; then _make PLATFORM=stm32mp1-157C_DK2 CFG_SCMI_SCPFW=y CFG_SCP_FIRMWARE=$HOME/scp-firmware; fi 142*76438b80SGatien Chevallier _make PLATFORM=stm32mp2 143b10b4515SJerome Forissier _make PLATFORM=vexpress-fvp 144b10b4515SJerome Forissier _make PLATFORM=vexpress-fvp CFG_ARM64_core=y 145b10b4515SJerome Forissier _make PLATFORM=vexpress-fvp CFG_ARM64_core=y CFG_CORE_SEL1_SPMC=y CFG_SECURE_PARTITION=y 1465948737dSEtienne Carriere if [ -d $HOME/scp-firmware ]; then _make PLATFORM=vexpress-fvp CFG_SCMI_SCPFW=y CFG_SCP_FIRMWARE=$HOME/scp-firmware; fi 147b10b4515SJerome Forissier _make PLATFORM=vexpress-juno 148b10b4515SJerome Forissier _make PLATFORM=vexpress-juno CFG_ARM64_core=y 149b10b4515SJerome Forissier _make PLATFORM=hikey 150b10b4515SJerome Forissier _make PLATFORM=hikey CFG_ARM64_core=y 151b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8173 152b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8175 153b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8183 154b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8516 155b10b4515SJerome Forissier _make PLATFORM=imx-mx6ulevk 156b10b4515SJerome Forissier _make PLATFORM=imx-mx6ulevk CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 157b10b4515SJerome Forissier _make PLATFORM=imx-mx6ul9x9evk 158b10b4515SJerome Forissier _make PLATFORM=imx-mx6ullevk CFG_WITH_SOFTWARE_PRNG=n CFG_IMX_RNGB=y 159cf4c4622SJorge Ramirez-Ortiz if [ -d $HOME/se050/plug-and-trust ]; then _make PLATFORM=imx-mx6ullevk CFG_NXP_SE05X=y CFG_IMX_I2C=y CFG_STACK_{THREAD,TMP}_EXTRA=8192 CFG_CRYPTO_DRV_{CIPHER,ACIPHER}=y CFG_WITH_SOFTWARE_PRNG=n CFG_NXP_SE05X_{DIEID,RNG,RSA,ECC,CTR}_DRV=y CFG_NXP_SE05X_RSA_DRV_FALLBACK=y CFG_NXP_SE05X_ECC_DRV_FALLBACK=y CFG_NXP_SE05X_PLUG_AND_TRUST=$HOME/se050/plug-and-trust ; fi 160b10b4515SJerome Forissier _make PLATFORM=imx-mx6ulzevk 161b10b4515SJerome Forissier _make PLATFORM=imx-mx6slevk 162b10b4515SJerome Forissier _make PLATFORM=imx-mx6sllevk 163b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabreauto 164b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabresd 165b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabresd CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 166b10b4515SJerome Forissier _make PLATFORM=imx-mx6solosabresd 167b10b4515SJerome Forissier _make PLATFORM=imx-mx6solosabreauto 168b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabreauto 169b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabrelite 170b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabresd 171b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabresd CFG_RPMB_FS=y 172b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabreauto 173b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabreauto CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 174b10b4515SJerome Forissier _make PLATFORM=imx-mx6qpsabreauto 175b10b4515SJerome Forissier _make PLATFORM=imx-mx6qpsabresd 176b10b4515SJerome Forissier _make PLATFORM=imx-mx6dlsabresd 177b10b4515SJerome Forissier _make PLATFORM=imx-mx6dlsabreauto 178b10b4515SJerome Forissier _make PLATFORM=imx-mx6dapalis 179b10b4515SJerome Forissier _make PLATFORM=imx-mx6qapalis 180b10b4515SJerome Forissier _make PLATFORM=imx-mx7dsabresd 181b10b4515SJerome Forissier _make PLATFORM=imx-mx7dsabresd CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 182b10b4515SJerome Forissier _make PLATFORM=imx-mx7ulpevk 183b10b4515SJerome Forissier _make PLATFORM=imx-mx8mmevk 184b10b4515SJerome Forissier _make PLATFORM=imx-mx8mmevk CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 185cf4c4622SJorge Ramirez-Ortiz if [ -d $HOME/se050/plug-and-trust ]; then _make PLATFORM=imx-mx8mmevk CFG_NXP_CAAM=y CFG_NXP_CAAM_RNG_DRV=y CFG_NXP_SE05X=y CFG_IMX_I2C=y CFG_STACK_{THREAD,TMP}_EXTRA=8192 CFG_CRYPTO_DRV_{CIPHER,ACIPHER}=y CFG_NXP_SE05X_RNG_DRV=n CFG_WITH_SOFTWARE_PRNG=n CFG_NXP_SE05X_{DIEID,RSA,ECC,CTR}_DRV=y CFG_NXP_SE05X_RSA_DRV_FALLBACK=y CFG_NXP_SE05X_ECC_DRV_FALLBACK=y CFG_NXP_SE05X_PLUG_AND_TRUST=$HOME/se050/plug-and-trust ; fi 186b10b4515SJerome Forissier _make PLATFORM=imx-mx8mnevk 187b10b4515SJerome Forissier _make PLATFORM=imx-mx8mqevk 188b10b4515SJerome Forissier _make PLATFORM=imx-mx8mpevk 189b10b4515SJerome Forissier _make PLATFORM=imx-mx8qxpmek 19037f820d6SClement Faure _make PLATFORM=imx-mx8dxmek 191b10b4515SJerome Forissier _make PLATFORM=imx-mx8qmmek 192b10b4515SJerome Forissier _make PLATFORM=imx-mx8dxlevk 193b10b4515SJerome Forissier _make PLATFORM=imx-mx8ulpevk 194b10b4515SJerome Forissier _make PLATFORM=imx-mx8ulpevk CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 195cb34c33eSClement Faure _make PLATFORM=imx-mx93evk 196b10b4515SJerome Forissier _make PLATFORM=k3-j721e 197b10b4515SJerome Forissier _make PLATFORM=k3-j721e CFG_ARM64_core=y 1980b28c65fSJayesh Choudhary _make PLATFORM=k3-j784s4 1990b28c65fSJayesh Choudhary _make PLATFORM=k3-j784s4 CFG_ARM64_core=y 200b10b4515SJerome Forissier _make PLATFORM=k3-am65x 201b10b4515SJerome Forissier _make PLATFORM=k3-am65x CFG_ARM64_core=y 202b10b4515SJerome Forissier _make PLATFORM=k3-am64x 203b10b4515SJerome Forissier _make PLATFORM=k3-am64x CFG_ARM64_core=y 204b10b4515SJerome Forissier _make PLATFORM=k3-am62x 205b10b4515SJerome Forissier _make PLATFORM=k3-am62x CFG_ARM64_core=y 206b10b4515SJerome Forissier _make PLATFORM=ti-dra7xx out/core/tee{,-pager,-pageable}.bin 207b10b4515SJerome Forissier _make PLATFORM=ti-am57xx 208b10b4515SJerome Forissier _make PLATFORM=ti-am43xx 209b10b4515SJerome Forissier _make PLATFORM=sprd-sc9860 210b10b4515SJerome Forissier _make PLATFORM=sprd-sc9860 CFG_ARM64_core=y 211b10b4515SJerome Forissier _make PLATFORM=ls-ls1043ardb 212b10b4515SJerome Forissier _make PLATFORM=ls-ls1046ardb 213b10b4515SJerome Forissier _make PLATFORM=ls-ls1012ardb 214b10b4515SJerome Forissier _make PLATFORM=ls-ls1028ardb 215b10b4515SJerome Forissier _make PLATFORM=ls-ls1088ardb 216b10b4515SJerome Forissier _make PLATFORM=ls-ls2088ardb 217b10b4515SJerome Forissier _make PLATFORM=ls-lx2160ardb 218b10b4515SJerome Forissier _make PLATFORM=ls-lx2160aqds 219b10b4515SJerome Forissier _make PLATFORM=zynq7k-zc702 220b10b4515SJerome Forissier _make PLATFORM=zynqmp-zcu102 221b10b4515SJerome Forissier _make PLATFORM=zynqmp-zcu102 CFG_ARM64_core=y 2225ba2acecSVesa Jääskeläinen _make PLATFORM=zynqmp-zcu102 CFG_ARM64_core=y CFG_WITH_SOFTWARE_PRNG=n CFG_XIPHERA_TRNG=y CFG_ZYNQMP_HUK=y 223b10b4515SJerome Forissier _make PLATFORM=d02 224b10b4515SJerome Forissier _make PLATFORM=d02 CFG_ARM64_core=y 225b10b4515SJerome Forissier _make PLATFORM=rcar 226b10b4515SJerome Forissier _make PLATFORM=rzg 227b10b4515SJerome Forissier _make PLATFORM=rzg CFG_ARM64_core=y 228b10b4515SJerome Forissier _make PLATFORM=rpi3 229b10b4515SJerome Forissier _make PLATFORM=rpi3 CFG_ARM64_core=y 230b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 231b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 COMPILER=clang 232b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 CFG_ARM64_core=y 233b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 CFG_ARM64_core=y COMPILER=clang 234b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 CFG_SECURE_DATA_PATH=n 235b10b4515SJerome Forissier _make PLATFORM=poplar 236b10b4515SJerome Forissier _make PLATFORM=poplar CFG_ARM64_core=y 237b10b4515SJerome Forissier _make PLATFORM=rockchip-rk322x 238b10b4515SJerome Forissier _make PLATFORM=rockchip-rk3399 239b10b4515SJerome Forissier _make PLATFORM=sam 240de80c329SThomas Perrot _make PLATFORM=sam-sama5d2_xplained 2414cc1b64dSThomas Perrot _make PLATFORM=sam-sama5d27_som1_ek 2426807d41fSEtienne Carriere _make PLATFORM=sam-sama5d27_wlsom1_ek 243b10b4515SJerome Forissier _make PLATFORM=marvell-armada7k8k 244b10b4515SJerome Forissier _make PLATFORM=marvell-armada3700 245b10b4515SJerome Forissier _make PLATFORM=marvell-otx2t96 246b10b4515SJerome Forissier _make PLATFORM=marvell-otx2f95 247b10b4515SJerome Forissier _make PLATFORM=marvell-otx2t98 2489115cdfaSGowthami _make PLATFORM=marvell-cn10ka 2499115cdfaSGowthami _make PLATFORM=marvell-cn10kb 2509115cdfaSGowthami _make PLATFORM=marvell-cnf10ka 2519115cdfaSGowthami _make PLATFORM=marvell-cnf10kb 252b10b4515SJerome Forissier _make PLATFORM=synquacer 253b10b4515SJerome Forissier _make PLATFORM=sunxi-bpi_zero 254b10b4515SJerome Forissier _make PLATFORM=sunxi-sun50i_a64 255b10b4515SJerome Forissier _make PLATFORM=bcm-ns3 CFG_ARM64_core=y 256b10b4515SJerome Forissier _make PLATFORM=hisilicon-hi3519av100_demo 257b10b4515SJerome Forissier _make PLATFORM=amlogic 258b10b4515SJerome Forissier _make PLATFORM=rzn1 259d8d2e5e6SJorge Ramirez-Ortiz _make PLATFORM=versal CFG_VERSAL_FPGA_DDR_ADDR=0x40000000 26042f66171SVishnu Banavath _make PLATFORM=corstone1000 26128a029b5SMargarita Glushkin _make PLATFORM=nuvoton 262b10b4515SJerome Forissier 263b10b4515SJerome Forissier QEMUv8_check: 264b10b4515SJerome Forissier name: make check (QEMUv8) 265b10b4515SJerome Forissier runs-on: ubuntu-latest 26632fe7da6SJerome Forissier container: jforissier/optee_os_ci:qemuv8_check2 267b10b4515SJerome Forissier steps: 268b10b4515SJerome Forissier - name: Restore build cache 269b10b4515SJerome Forissier uses: actions/cache@v3 270b10b4515SJerome Forissier with: 271b10b4515SJerome Forissier path: /github/home/.cache/ccache 272b10b4515SJerome Forissier key: qemuv8_check-cache-${{ github.sha }} 273b10b4515SJerome Forissier restore-keys: | 274b10b4515SJerome Forissier qemuv8_check-cache- 275b10b4515SJerome Forissier - name: Checkout 276b10b4515SJerome Forissier uses: actions/checkout@v3 277b10b4515SJerome Forissier - shell: bash 278b10b4515SJerome Forissier run: | 279b10b4515SJerome Forissier # make check task 280baa05d63SJerome Forissier set -e -v 281b10b4515SJerome Forissier export LC_ALL=C 282f8ea228aSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 28370a5b401SJerome Forissier export CFG_TEE_CORE_LOG_LEVEL=0 28440be56c9SJerome Forissier export CFG_ATTESTATION_PTA=y 28540be56c9SJerome Forissier export CFG_ATTESTATION_PTA_KEY_SIZE=1024 286b10b4515SJerome Forissier WD=$(pwd) 2875f1d31ffSJerome Forissier cd .. 2885f1d31ffSJerome Forissier TOP=$(pwd)/optee_repo_qemu_v8 2895f1d31ffSJerome Forissier /root/get_optee_qemuv8.sh ${TOP} 2905f1d31ffSJerome Forissier mv ${TOP}/optee_os ${TOP}/optee_os_old 2915f1d31ffSJerome Forissier ln -s ${WD} ${TOP}/optee_os 2925f1d31ffSJerome Forissier cd ${TOP}/build 293b10b4515SJerome Forissier 2945f1d31ffSJerome Forissier make -j$(nproc) check 2955f1d31ffSJerome Forissier make -j$(nproc) check CFG_CRYPTO_WITH_CE82=y 296497c6876SJerome Forissier make -j$(nproc) check CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y XTEST_ARGS=regression_1001 297a012b992SSeonghyun Park make -j$(nproc) check CFG_PAN=y 298b10b4515SJerome Forissier 29911af44c2SJerome Forissier QEMUv8_Xen_check: 30011af44c2SJerome Forissier name: make check (QEMUv8, Xen) 30111af44c2SJerome Forissier runs-on: ubuntu-latest 30232fe7da6SJerome Forissier container: jforissier/optee_os_ci:qemuv8_check2 30311af44c2SJerome Forissier steps: 30411af44c2SJerome Forissier - name: Restore build cache 30511af44c2SJerome Forissier uses: actions/cache@v3 30611af44c2SJerome Forissier with: 30711af44c2SJerome Forissier path: /github/home/.cache/ccache 30811af44c2SJerome Forissier key: qemuv8_xen_check-cache-${{ github.sha }} 30911af44c2SJerome Forissier restore-keys: | 31011af44c2SJerome Forissier qemuv8_xen_check-cache- 31111af44c2SJerome Forissier - name: Checkout 31211af44c2SJerome Forissier uses: actions/checkout@v3 31311af44c2SJerome Forissier - shell: bash 31411af44c2SJerome Forissier run: | 31511af44c2SJerome Forissier # make check task 316baa05d63SJerome Forissier set -e -v 31711af44c2SJerome Forissier export LC_ALL=C 31811af44c2SJerome Forissier export CFG_TEE_CORE_LOG_LEVEL=0 319f8ea228aSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 32011af44c2SJerome Forissier WD=$(pwd) 3215f1d31ffSJerome Forissier cd .. 3225f1d31ffSJerome Forissier TOP=$(pwd)/optee_repo_qemu_v8 3235f1d31ffSJerome Forissier /root/get_optee_qemuv8.sh ${TOP} 3245f1d31ffSJerome Forissier mv ${TOP}/optee_os ${TOP}/optee_os_old 3255f1d31ffSJerome Forissier ln -s ${WD} ${TOP}/optee_os 3265f1d31ffSJerome Forissier cd ${TOP}/build 32711af44c2SJerome Forissier 3285f1d31ffSJerome Forissier make -j$(nproc) check XEN_BOOT=y 329b10b4515SJerome Forissier 3303427eb2aSJens Wiklander QEMUv8_Hafnium_check: 3313427eb2aSJens Wiklander name: make check (QEMUv8, Hafnium) 3323427eb2aSJens Wiklander runs-on: ubuntu-latest 3333427eb2aSJens Wiklander container: jforissier/optee_os_ci:qemuv8_check2 3343427eb2aSJens Wiklander steps: 335a03aafedSJerome Forissier - name: Remove /__t/* 336a03aafedSJerome Forissier run: rm -rf /__t/* 3373427eb2aSJens Wiklander - name: Restore build cache 3383427eb2aSJens Wiklander uses: actions/cache@v3 3393427eb2aSJens Wiklander with: 3403427eb2aSJens Wiklander path: /github/home/.cache/ccache 3413427eb2aSJens Wiklander key: qemuv8_hafnium_check-cache-${{ github.sha }} 3423427eb2aSJens Wiklander restore-keys: | 3433427eb2aSJens Wiklander qemuv8_hafnium_check-cache- 3443427eb2aSJens Wiklander - name: Checkout 3453427eb2aSJens Wiklander uses: actions/checkout@v3 3463427eb2aSJens Wiklander - shell: bash 3473427eb2aSJens Wiklander run: | 3483427eb2aSJens Wiklander # make check task 3493427eb2aSJens Wiklander set -e -v 3503427eb2aSJens Wiklander export LC_ALL=C 3513427eb2aSJens Wiklander export CFG_TEE_CORE_LOG_LEVEL=0 3523427eb2aSJens Wiklander export BR2_CCACHE_DIR=/github/home/.cache/ccache 3533427eb2aSJens Wiklander WD=$(pwd) 3543427eb2aSJens Wiklander cd .. 3553427eb2aSJens Wiklander TOP=$(pwd)/optee_repo_qemu_v8 3563427eb2aSJens Wiklander /root/get_optee_qemuv8.sh ${TOP} 3573427eb2aSJens Wiklander mv ${TOP}/optee_os ${TOP}/optee_os_old 3583427eb2aSJens Wiklander ln -s ${WD} ${TOP}/optee_os 3593427eb2aSJens Wiklander cd ${TOP}/build 3603427eb2aSJens Wiklander 3613427eb2aSJens Wiklander make -j$(nproc) check SPMC_AT_EL=2 3623427eb2aSJens Wiklander 36329711e3bSJerome Forissier QEMUv8_check_BTI_MTE_PAC: 36429711e3bSJerome Forissier name: make check (QEMUv8, BTI+MTE+PAC) 36529711e3bSJerome Forissier runs-on: ubuntu-latest 36629711e3bSJerome Forissier container: jforissier/optee_os_ci:qemuv8_check2 36729711e3bSJerome Forissier steps: 36829711e3bSJerome Forissier - name: Restore build cache 36929711e3bSJerome Forissier uses: actions/cache@v3 37029711e3bSJerome Forissier with: 37129711e3bSJerome Forissier path: /github/home/.cache/ccache 37229711e3bSJerome Forissier key: qemuv8_check_bti_mte_pac-cache-${{ github.sha }} 37329711e3bSJerome Forissier restore-keys: | 37429711e3bSJerome Forissier qemuv8_check_bti_mte_pac-cache- 37529711e3bSJerome Forissier - name: Checkout 37629711e3bSJerome Forissier uses: actions/checkout@v3 37729711e3bSJerome Forissier - shell: bash 37829711e3bSJerome Forissier run: | 37929711e3bSJerome Forissier # make check task 38029711e3bSJerome Forissier set -e -v 38129711e3bSJerome Forissier export LC_ALL=C 38229711e3bSJerome Forissier # The BTI-enabled toolchain is aarch64-unknown-linux-uclibc-gcc in /usr/local/bin 38329711e3bSJerome Forissier export PATH=/usr/local/bin:$PATH 38429711e3bSJerome Forissier export AARCH64_CROSS_COMPILE=aarch64-unknown-linux-uclibc- 38529711e3bSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 38629711e3bSJerome Forissier export CFG_TEE_CORE_LOG_LEVEL=0 38729711e3bSJerome Forissier export CFG_USER_TA_TARGETS=ta_arm64 38829711e3bSJerome Forissier WD=$(pwd) 3895f1d31ffSJerome Forissier cd .. 3905f1d31ffSJerome Forissier TOP=$(pwd)/optee_repo_qemu_v8 3915f1d31ffSJerome Forissier # TF-A v2.6 fails to build with the above toolchain so override it 3925f1d31ffSJerome Forissier export TF_A_EXPORTS="CROSS_COMPILE=${TOP}/toolchains/aarch64/bin/aarch64-linux-gnu-" 3935f1d31ffSJerome Forissier /root/get_optee_qemuv8.sh ${TOP} 39429711e3bSJerome Forissier # QEMU v7.2.0 has an issue with MTE 39529711e3bSJerome Forissier # https://github.com/OP-TEE/optee_os/issues/5759#issuecomment-1380590951 3965f1d31ffSJerome Forissier cd ${TOP}/qemu && git fetch github && git checkout 13356edb87 3975f1d31ffSJerome Forissier mv ${TOP}/optee_os ${TOP}/optee_os_old 3985f1d31ffSJerome Forissier ln -s ${WD} ${TOP}/optee_os 3995f1d31ffSJerome Forissier cd ${TOP}/build 40029711e3bSJerome Forissier 40129711e3bSJerome Forissier # xtest 1031 is excluded because 1031.4 (C++ exception from shared library) fails with this cross-compiler 4025f1d31ffSJerome Forissier make -j$(nproc) CFG_CORE_BTI=y CFG_TA_BTI=y MEMTAG=y PAUTH=y XTEST_ARGS="-x 1031" check 40329711e3bSJerome Forissier 404b10b4515SJerome Forissier QEMUv8_check_rust: 405b10b4515SJerome Forissier name: make check-rust (QEMUv8) 406b10b4515SJerome Forissier runs-on: ubuntu-latest 40732fe7da6SJerome Forissier container: jforissier/optee_os_ci:qemuv8_check2 408b10b4515SJerome Forissier steps: 409788069faSJerome Forissier - name: Remove /__t/* 410788069faSJerome Forissier run: rm -rf /__t/* 411f8ea228aSJerome Forissier - name: Restore build cache 412f8ea228aSJerome Forissier uses: actions/cache@v3 413f8ea228aSJerome Forissier with: 414f8ea228aSJerome Forissier path: /github/home/.cache/ccache 415f8ea228aSJerome Forissier key: qemuv8_check_rust-cache-${{ github.sha }} 416f8ea228aSJerome Forissier restore-keys: | 417f8ea228aSJerome Forissier qemuv8_check_rust-cache- 418b10b4515SJerome Forissier - name: Checkout 419b10b4515SJerome Forissier uses: actions/checkout@v3 420b10b4515SJerome Forissier - shell: bash 421b10b4515SJerome Forissier run: | 422b10b4515SJerome Forissier # make check-rust task 423b10b4515SJerome Forissier set -e -v 424b10b4515SJerome Forissier export LC_ALL=C 425f8ea228aSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 426b10b4515SJerome Forissier WD=$(pwd) 4275f1d31ffSJerome Forissier cd .. 4285f1d31ffSJerome Forissier TOP=$(pwd)/optee_repo_qemu_v8 4295f1d31ffSJerome Forissier /root/get_optee_qemuv8.sh ${TOP} 4305f1d31ffSJerome Forissier mv ${TOP}/optee_os ${TOP}/optee_os_old 4315f1d31ffSJerome Forissier ln -s ${WD} ${TOP}/optee_os 4325f1d31ffSJerome Forissier cd ${TOP}/build 433b10b4515SJerome Forissier 4345f1d31ffSJerome Forissier make -j$(nproc) OPTEE_RUST_ENABLE=y check-rust 435