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 $*; } 83c450df92SJorge Ramirez-Ortiz function download_plug_and_trust() { mkdir -p $HOME/se050 && git clone --single-branch -b v0.4.1 https://github.com/foundriesio/plug-and-trust $HOME/se050/plug-and-trust || (rm -rf $HOME/se050 ; echo Nervermind); } 845948737dSEtienne Carriere function download_scp_firmware() { git clone --single-branch https://github.com/ARM-software/SCP-firmware.git $HOME/scp-firmware || echo Nervermind; } 85b10b4515SJerome Forissier 86b10b4515SJerome Forissier ccache -s -v 87b10b4515SJerome Forissier download_plug_and_trust 885948737dSEtienne Carriere download_scp_firmware 89b10b4515SJerome Forissier 90b10b4515SJerome Forissier _make 91b10b4515SJerome Forissier _make COMPILER=clang 92b10b4515SJerome 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 93b10b4515SJerome 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 94b10b4515SJerome Forissier _make CFG_TEE_CORE_MALLOC_DEBUG=y CFG_CORE_DEBUG_CHECK_STACKS=y 95b10b4515SJerome Forissier _make CFG_CORE_SANITIZE_KADDRESS=y 96b10b4515SJerome Forissier _make CFG_LOCKDEP=y 97b10b4515SJerome Forissier _make CFG_CRYPTO=n 98b10b4515SJerome Forissier _make CFG_CRYPTO_{AES,DES}=n 99b10b4515SJerome Forissier _make CFG_CRYPTO_{DSA,RSA,DH}=n 100b10b4515SJerome Forissier _make CFG_CRYPTO_{DSA,RSA,DH,ECC}=n 101b10b4515SJerome Forissier _make CFG_CRYPTO_{H,C,CBC_}MAC=n 102b10b4515SJerome Forissier _make CFG_CRYPTO_{G,C}CM=n 103b10b4515SJerome Forissier _make CFG_CRYPTO_{MD5,SHA{1,224,256,384,512,512_256}}=n 104b10b4515SJerome Forissier _make CFG_WITH_PAGER=y out/core/tee{,-pager,-pageable}.bin 105b10b4515SJerome Forissier _make CFG_WITH_PAGER=y CFG_CRYPTOLIB_NAME=mbedtls CFG_CRYPTOLIB_DIR=lib/libmbedtls 106b10b4515SJerome Forissier _make CFG_WITH_PAGER=y CFG_WITH_LPAE=y 107b10b4515SJerome Forissier _make CFG_WITH_LPAE=y 1089cded664SJens Wiklander _make CFG_CORE_PREALLOC_EL0_TBLS=y 109b10b4515SJerome Forissier _make CFG_RPMB_FS=y 110b10b4515SJerome Forissier _make CFG_RPMB_FS=y CFG_RPMB_TESTKEY=y 111b10b4515SJerome Forissier _make CFG_REE_FS=n CFG_RPMB_FS=y 112b10b4515SJerome 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 113b10b4515SJerome 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 114b10b4515SJerome Forissier _make CFG_BUILT_IN_ARGS=y CFG_PAGEABLE_ADDR=0 CFG_NS_ENTRY_ADDR=0 CFG_DT_ADDR=0 CFG_DT=y 115b10b4515SJerome Forissier _make CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_ULIBS_SHARED=y 116b10b4515SJerome Forissier _make CFG_TA_GPROF_SUPPORT=y CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y CFG_ULIBS_MCOUNT=y 117b10b4515SJerome Forissier _make CFG_SECURE_DATA_PATH=y 118b10b4515SJerome Forissier _make CFG_REE_FS_TA_BUFFERED=y 119b10b4515SJerome Forissier _make CFG_WITH_USER_TA=n 120b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a 121b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a COMPILER=clang 122b10b4515SJerome 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 123b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_WITH_PAGER=y 124b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_ULIBS_SHARED=y 125b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_TA_GPROF_SUPPORT=y CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y CFG_ULIBS_MCOUNT=y 126b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_VIRTUALIZATION=y 1279cded664SJens Wiklander _make PLATFORM=vexpress-qemu_armv8a CFG_CORE_PREALLOC_EL0_TBLS=y 128b10b4515SJerome Forissier _make PLATFORM=vexpress-qemu_armv8a CFG_CORE_SEL1_SPMC=y 129b10b4515SJerome 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 1305948737dSEtienne Carriere if [ -d $HOME/scp-firmware ]; then _make PLATFORM=vexpress-qemu_armv8a CFG_SCMI_SCPFW=y CFG_SCP_FIRMWARE=$HOME/scp-firmware; fi 131b10b4515SJerome Forissier _make PLATFORM=stm-b2260 132b10b4515SJerome Forissier _make PLATFORM=stm-cannes 133b10b4515SJerome Forissier _make PLATFORM=stm32mp1 134b10b4515SJerome Forissier _make PLATFORM=stm32mp1-135F_DK 1355948737dSEtienne Carriere if [ -d $HOME/scp-firmware ]; then _make PLATFORM=stm32mp1-157C_DK2 CFG_SCMI_SCPFW=y CFG_SCP_FIRMWARE=$HOME/scp-firmware; fi 136b10b4515SJerome Forissier _make PLATFORM=vexpress-fvp 137b10b4515SJerome Forissier _make PLATFORM=vexpress-fvp CFG_ARM64_core=y 138b10b4515SJerome Forissier _make PLATFORM=vexpress-fvp CFG_ARM64_core=y CFG_CORE_SEL1_SPMC=y CFG_SECURE_PARTITION=y 1395948737dSEtienne Carriere if [ -d $HOME/scp-firmware ]; then _make PLATFORM=vexpress-fvp CFG_SCMI_SCPFW=y CFG_SCP_FIRMWARE=$HOME/scp-firmware; fi 140b10b4515SJerome Forissier _make PLATFORM=vexpress-juno 141b10b4515SJerome Forissier _make PLATFORM=vexpress-juno CFG_ARM64_core=y 142b10b4515SJerome Forissier _make PLATFORM=hikey 143b10b4515SJerome Forissier _make PLATFORM=hikey CFG_ARM64_core=y 144b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8173 145b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8175 146b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8183 147b10b4515SJerome Forissier _make PLATFORM=mediatek-mt8516 148b10b4515SJerome Forissier _make PLATFORM=imx-mx6ulevk 149b10b4515SJerome Forissier _make PLATFORM=imx-mx6ulevk CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 150b10b4515SJerome Forissier _make PLATFORM=imx-mx6ul9x9evk 151b10b4515SJerome Forissier _make PLATFORM=imx-mx6ullevk CFG_WITH_SOFTWARE_PRNG=n CFG_IMX_RNGB=y 152cf4c4622SJorge 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 153b10b4515SJerome Forissier _make PLATFORM=imx-mx6ulzevk 154b10b4515SJerome Forissier _make PLATFORM=imx-mx6slevk 155b10b4515SJerome Forissier _make PLATFORM=imx-mx6sllevk 156b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabreauto 157b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabresd 158b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabresd CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 159b10b4515SJerome Forissier _make PLATFORM=imx-mx6solosabresd 160b10b4515SJerome Forissier _make PLATFORM=imx-mx6solosabreauto 161b10b4515SJerome Forissier _make PLATFORM=imx-mx6sxsabreauto 162b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabrelite 163b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabresd 164b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabresd CFG_RPMB_FS=y 165b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabreauto 166b10b4515SJerome Forissier _make PLATFORM=imx-mx6qsabreauto CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 167b10b4515SJerome Forissier _make PLATFORM=imx-mx6qpsabreauto 168b10b4515SJerome Forissier _make PLATFORM=imx-mx6qpsabresd 169b10b4515SJerome Forissier _make PLATFORM=imx-mx6dlsabresd 170b10b4515SJerome Forissier _make PLATFORM=imx-mx6dlsabreauto 171b10b4515SJerome Forissier _make PLATFORM=imx-mx6dapalis 172b10b4515SJerome Forissier _make PLATFORM=imx-mx6qapalis 173b10b4515SJerome Forissier _make PLATFORM=imx-mx7dsabresd 174b10b4515SJerome Forissier _make PLATFORM=imx-mx7dsabresd CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 175b10b4515SJerome Forissier _make PLATFORM=imx-mx7ulpevk 176b10b4515SJerome Forissier _make PLATFORM=imx-mx8mmevk 177b10b4515SJerome Forissier _make PLATFORM=imx-mx8mmevk CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 178cf4c4622SJorge 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 179b10b4515SJerome Forissier _make PLATFORM=imx-mx8mnevk 180b10b4515SJerome Forissier _make PLATFORM=imx-mx8mqevk 181b10b4515SJerome Forissier _make PLATFORM=imx-mx8mpevk 182b10b4515SJerome Forissier _make PLATFORM=imx-mx8qxpmek 183b10b4515SJerome Forissier _make PLATFORM=imx-mx8qmmek 184b10b4515SJerome Forissier _make PLATFORM=imx-mx8dxlevk 185b10b4515SJerome Forissier _make PLATFORM=imx-mx8ulpevk 186b10b4515SJerome Forissier _make PLATFORM=imx-mx8ulpevk CFG_NXP_CAAM=y CFG_CRYPTO_DRIVER=y 187cb34c33eSClement Faure _make PLATFORM=imx-mx93evk 188b10b4515SJerome Forissier _make PLATFORM=k3-j721e 189b10b4515SJerome Forissier _make PLATFORM=k3-j721e CFG_ARM64_core=y 1900b28c65fSJayesh Choudhary _make PLATFORM=k3-j784s4 1910b28c65fSJayesh Choudhary _make PLATFORM=k3-j784s4 CFG_ARM64_core=y 192b10b4515SJerome Forissier _make PLATFORM=k3-am65x 193b10b4515SJerome Forissier _make PLATFORM=k3-am65x CFG_ARM64_core=y 194b10b4515SJerome Forissier _make PLATFORM=k3-am64x 195b10b4515SJerome Forissier _make PLATFORM=k3-am64x CFG_ARM64_core=y 196b10b4515SJerome Forissier _make PLATFORM=k3-am62x 197b10b4515SJerome Forissier _make PLATFORM=k3-am62x CFG_ARM64_core=y 198b10b4515SJerome Forissier _make PLATFORM=ti-dra7xx out/core/tee{,-pager,-pageable}.bin 199b10b4515SJerome Forissier _make PLATFORM=ti-am57xx 200b10b4515SJerome Forissier _make PLATFORM=ti-am43xx 201b10b4515SJerome Forissier _make PLATFORM=sprd-sc9860 202b10b4515SJerome Forissier _make PLATFORM=sprd-sc9860 CFG_ARM64_core=y 203b10b4515SJerome Forissier _make PLATFORM=ls-ls1043ardb 204b10b4515SJerome Forissier _make PLATFORM=ls-ls1046ardb 205b10b4515SJerome Forissier _make PLATFORM=ls-ls1012ardb 206b10b4515SJerome Forissier _make PLATFORM=ls-ls1028ardb 207b10b4515SJerome Forissier _make PLATFORM=ls-ls1088ardb 208b10b4515SJerome Forissier _make PLATFORM=ls-ls2088ardb 209b10b4515SJerome Forissier _make PLATFORM=ls-lx2160ardb 210b10b4515SJerome Forissier _make PLATFORM=ls-lx2160aqds 211b10b4515SJerome Forissier _make PLATFORM=zynq7k-zc702 212b10b4515SJerome Forissier _make PLATFORM=zynqmp-zcu102 213b10b4515SJerome Forissier _make PLATFORM=zynqmp-zcu102 CFG_ARM64_core=y 2145ba2acecSVesa Jääskeläinen _make PLATFORM=zynqmp-zcu102 CFG_ARM64_core=y CFG_WITH_SOFTWARE_PRNG=n CFG_XIPHERA_TRNG=y CFG_ZYNQMP_HUK=y 215b10b4515SJerome Forissier _make PLATFORM=d02 216b10b4515SJerome Forissier _make PLATFORM=d02 CFG_ARM64_core=y 217b10b4515SJerome Forissier _make PLATFORM=rcar 218b10b4515SJerome Forissier _make PLATFORM=rzg 219b10b4515SJerome Forissier _make PLATFORM=rzg CFG_ARM64_core=y 220b10b4515SJerome Forissier _make PLATFORM=rpi3 221b10b4515SJerome Forissier _make PLATFORM=rpi3 CFG_ARM64_core=y 222b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 223b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 COMPILER=clang 224b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 CFG_ARM64_core=y 225b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 CFG_ARM64_core=y COMPILER=clang 226b10b4515SJerome Forissier _make PLATFORM=hikey-hikey960 CFG_SECURE_DATA_PATH=n 227b10b4515SJerome Forissier _make PLATFORM=poplar 228b10b4515SJerome Forissier _make PLATFORM=poplar CFG_ARM64_core=y 229b10b4515SJerome Forissier _make PLATFORM=rockchip-rk322x 230b10b4515SJerome Forissier _make PLATFORM=rockchip-rk3399 231b10b4515SJerome Forissier _make PLATFORM=sam 232b10b4515SJerome Forissier _make PLATFORM=marvell-armada7k8k 233b10b4515SJerome Forissier _make PLATFORM=marvell-armada3700 234b10b4515SJerome Forissier _make PLATFORM=marvell-otx2t96 235b10b4515SJerome Forissier _make PLATFORM=marvell-otx2f95 236b10b4515SJerome Forissier _make PLATFORM=marvell-otx2t98 237b10b4515SJerome Forissier _make PLATFORM=synquacer 238b10b4515SJerome Forissier _make PLATFORM=sunxi-bpi_zero 239b10b4515SJerome Forissier _make PLATFORM=sunxi-sun50i_a64 240b10b4515SJerome Forissier _make PLATFORM=bcm-ns3 CFG_ARM64_core=y 241b10b4515SJerome Forissier _make PLATFORM=hisilicon-hi3519av100_demo 242b10b4515SJerome Forissier _make PLATFORM=amlogic 243b10b4515SJerome Forissier _make PLATFORM=rzn1 244d8d2e5e6SJorge Ramirez-Ortiz _make PLATFORM=versal CFG_VERSAL_FPGA_DDR_ADDR=0x40000000 24542f66171SVishnu Banavath _make PLATFORM=corstone1000 246b10b4515SJerome Forissier 247b10b4515SJerome Forissier QEMUv8_check: 248b10b4515SJerome Forissier name: make check (QEMUv8) 249b10b4515SJerome Forissier runs-on: ubuntu-latest 250b10b4515SJerome Forissier container: jforissier/optee_os_ci:qemuv8_check 251b10b4515SJerome Forissier steps: 252b10b4515SJerome Forissier - name: Restore build cache 253b10b4515SJerome Forissier uses: actions/cache@v3 254b10b4515SJerome Forissier with: 255b10b4515SJerome Forissier path: /github/home/.cache/ccache 256b10b4515SJerome Forissier key: qemuv8_check-cache-${{ github.sha }} 257b10b4515SJerome Forissier restore-keys: | 258b10b4515SJerome Forissier qemuv8_check-cache- 259b10b4515SJerome Forissier - name: Checkout 260b10b4515SJerome Forissier uses: actions/checkout@v3 261b10b4515SJerome Forissier - shell: bash 262b10b4515SJerome Forissier run: | 263b10b4515SJerome Forissier # make check task 264*baa05d63SJerome Forissier set -e -v 265b10b4515SJerome Forissier export LC_ALL=C 266f8ea228aSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 26770a5b401SJerome Forissier export CFG_TEE_CORE_LOG_LEVEL=0 268b10b4515SJerome Forissier WD=$(pwd) 269b10b4515SJerome Forissier sudo -E bash -c "cd /root/optee_repo_qemu_v8/.repo/repo && git pull" 270b10b4515SJerome Forissier sudo -E bash -c "cd /root/optee_repo_qemu_v8 && repo sync -j 10" 271b10b4515SJerome Forissier sudo mv /root/optee_repo_qemu_v8/optee_os /root/optee_repo_qemu_v8/optee_os_old 272b10b4515SJerome Forissier sudo ln -s ${WD} /root/optee_repo_qemu_v8/optee_os 273b10b4515SJerome Forissier 27470a5b401SJerome Forissier sudo -E make -C /root/optee_repo_qemu_v8/build -j$(nproc) check 27570a5b401SJerome Forissier 276fb3171a7SJens Wiklander sudo -E make -C /root/optee_repo_qemu_v8/build -j$(nproc) check CFG_CRYPTO_WITH_CE82=y 277b10b4515SJerome Forissier 27811af44c2SJerome Forissier QEMUv8_Xen_check: 27911af44c2SJerome Forissier name: make check (QEMUv8, Xen) 28011af44c2SJerome Forissier runs-on: ubuntu-latest 28111af44c2SJerome Forissier container: jforissier/optee_os_ci:qemuv8_check 28211af44c2SJerome Forissier steps: 28311af44c2SJerome Forissier - name: Restore build cache 28411af44c2SJerome Forissier uses: actions/cache@v3 28511af44c2SJerome Forissier with: 28611af44c2SJerome Forissier path: /github/home/.cache/ccache 28711af44c2SJerome Forissier key: qemuv8_xen_check-cache-${{ github.sha }} 28811af44c2SJerome Forissier restore-keys: | 28911af44c2SJerome Forissier qemuv8_xen_check-cache- 29011af44c2SJerome Forissier - name: Checkout 29111af44c2SJerome Forissier uses: actions/checkout@v3 29211af44c2SJerome Forissier - shell: bash 29311af44c2SJerome Forissier run: | 29411af44c2SJerome Forissier # make check task 295*baa05d63SJerome Forissier set -e -v 29611af44c2SJerome Forissier export LC_ALL=C 29711af44c2SJerome Forissier export CFG_TEE_CORE_LOG_LEVEL=0 298f8ea228aSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 29911af44c2SJerome Forissier WD=$(pwd) 30011af44c2SJerome Forissier sudo -E bash -c "cd /root/optee_repo_qemu_v8/.repo/repo && git pull" 30111af44c2SJerome Forissier sudo -E bash -c "cd /root/optee_repo_qemu_v8 && repo sync -j 10" 30211af44c2SJerome Forissier sudo mv /root/optee_repo_qemu_v8/optee_os /root/optee_repo_qemu_v8/optee_os_old 30311af44c2SJerome Forissier sudo ln -s ${WD} /root/optee_repo_qemu_v8/optee_os 30411af44c2SJerome Forissier 30570a5b401SJerome Forissier sudo -E make -C /root/optee_repo_qemu_v8/build -j$(nproc) check XEN_BOOT=y 306b10b4515SJerome Forissier 307b10b4515SJerome Forissier QEMUv8_check_rust: 308b10b4515SJerome Forissier name: make check-rust (QEMUv8) 309b10b4515SJerome Forissier runs-on: ubuntu-latest 310b10b4515SJerome Forissier container: jforissier/optee_os_ci:qemuv8_check 311b10b4515SJerome Forissier steps: 312f8ea228aSJerome Forissier - name: Restore build cache 313f8ea228aSJerome Forissier uses: actions/cache@v3 314f8ea228aSJerome Forissier with: 315f8ea228aSJerome Forissier path: /github/home/.cache/ccache 316f8ea228aSJerome Forissier key: qemuv8_check_rust-cache-${{ github.sha }} 317f8ea228aSJerome Forissier restore-keys: | 318f8ea228aSJerome Forissier qemuv8_check_rust-cache- 319b10b4515SJerome Forissier - name: Checkout 320b10b4515SJerome Forissier uses: actions/checkout@v3 321b10b4515SJerome Forissier - shell: bash 322b10b4515SJerome Forissier run: | 323b10b4515SJerome Forissier # make check-rust task 324b10b4515SJerome Forissier set -e -v 325b10b4515SJerome Forissier export LC_ALL=C 326f8ea228aSJerome Forissier export BR2_CCACHE_DIR=/github/home/.cache/ccache 327b10b4515SJerome Forissier WD=$(pwd) 328b10b4515SJerome Forissier sudo -E bash -c "cd /root/optee_repo_qemu_v8/.repo/repo && git pull" 329b10b4515SJerome Forissier sudo -E bash -c "cd /root/optee_repo_qemu_v8 && repo sync -j 10" 330b10b4515SJerome Forissier sudo mv /root/optee_repo_qemu_v8/optee_os /root/optee_repo_qemu_v8/optee_os_old 331b10b4515SJerome Forissier sudo ln -s ${WD} /root/optee_repo_qemu_v8/optee_os 332b10b4515SJerome Forissier 333b10b4515SJerome Forissier sudo -E bash -c "make -C /root/optee_repo_qemu_v8/build -j$(nproc) CFG_TEE_CORE_LOG_LEVEL=0 OPTEE_RUST_ENABLE=y check-rust" 334