From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7261955842613706752 X-Received: by 2002:a05:600c:1e11:b0:3f8:efad:31ee with SMTP id ay17-20020a05600c1e1100b003f8efad31eemr5739051wmb.2.1690805853041; Mon, 31 Jul 2023 05:17:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1f0a:b0:3fe:1764:31a4 with SMTP id bd10-20020a05600c1f0a00b003fe176431a4ls814266wmb.0.-pod-prod-06-eu; Mon, 31 Jul 2023 05:17:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJxj3xPs5Zo/lmcq0X88Bqrkx8zKMsDdPVuXwEEYZ9/LcfXmHUY9WzVcpzcHLjolDpsR+P X-Received: by 2002:a7b:c399:0:b0:3fd:2d42:9392 with SMTP id s25-20020a7bc399000000b003fd2d429392mr6616063wmj.4.1690805850914; Mon, 31 Jul 2023 05:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690805850; cv=none; d=google.com; s=arc-20160816; b=U1pAje5auHIUV1U51xZdBYc/QDEWZeDAvxc4qbfTbVAPv9WbKg883tueB2QUxkvfYX iI05vlBBrdabKhvyIgJgi8c6pKHWGHp7OJ/sy9g67SieJGbufJZOMf0KIFg0KkOdeA9o glc7mC+TPgL9qqD0zzbow34z3trBmzxJFciJCV+GAbUPIe5Gdm23Wh7l4pgw6mzDbdmd +/vg94tzyr8ukxHxLmv1DevaEeNaXH8fVkBr/ar7WL6XfxH4bX3tiTziF9xjoZZJxLzL bvAVtKuh7gJNzSw/XYXLGl4qjv/aCYUQidMjnFp1sH30jVjN6w/lFM3b7B9OdsJmGXZt LWLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=TONlY6uXqHaRPd/uIJ6YZdhNJ5IL+3OOuvyZJqgj7Ig=; fh=swRs1+OhWjovx1IrvOlKBWsdq9manB5qdcuGoHoh5Ak=; b=qMX5jdkaVe5zl/8r7UI7quyW+hPPoLErzTuGRePBr+gbylHhxF38rf0rWDVYN8mDCH vKw0Vni4k6HuBD44mh46DGo+xKx+NvUtGzzBEIB5OoiE8brOU1c6b5EiM49FkH/u8Jri Zcr44BFG5PckSxVXkyevz3pU1ZpydhZQ1HG6Vf7AeanXc5cAcSeEXtcVHP6X/Y3/mQ3/ 2WGS4Lpg0luGNn+AXl7x17PeBZsb7uvcQiRgALoMg0JUVijDnIn1y2Ilm7KTZ1L/WWJJ otaLI9dwLdoRl4D5FImr3/2yolalZw9qwXkafVKSm5JaUzLH3sVWeOPlUgNVuvPabonn 3AaQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id p30-20020a05600c1d9e00b003fe1c5703bdsi250238wms.0.2023.07.31.05.17.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Jul 2023 05:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 36VCHTOV015705 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 31 Jul 2023 14:17:30 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 00/11] Fixes, cleanups and updates for OP-TEE and TAs Date: Mon, 31 Jul 2023 14:17:18 +0200 Message-Id: <20230731121729.16972-1-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: frIiquJ/3Iqh This summarizes and partially updates previously sent patches to fix and improve the recently merged OP-TEE changes. Labeling starts with v3 as some patches were already sent out in v2. Improvements over the individual patches: - update for WolfSSL in fTPM recipe - better unbinding of fTPM on tee-supplicant shutdown Patch 11 might still have no effect and needs confirmation via larger CI builds. Jan Changes since v3: - Rework patch 4 in order to prevent conflicting parallel build of linux-mainline for stm32mp15x and non-stm32mp15x machines for the same distro and architecture. - Replaced patch 11 with new one that guarantees `tpm` and `wolf` symlinks creating before compilation source files. By default TA devkit runs them in parallel and it sometimes results in race condition and build error. Jan Kiszka (11): optee-client: Add missing runtime dependency optee-client: Unbind ftpm, rather than remove its driver optee-examples-stm32mp15x: Fix parsing error for non-stm32mp15x machines linux-mainline: Add fTPM support initramfs-tee-{ftpm,supplicant}-hook: Move sync loop to ftpm-hook initramfs-tee-supplicant-hook: Account for modular optee initramfs-tee-ftpm-hook: Lift timeout to 30 s Drop stm32mp15x-initramfs in favor of image enabling optee-ftpm-stm32mp15x: Recipe cleanups optee-ftpm-stm32mp15x: Update WolfSSL to 5.6.3 optee-ftpm-stm32mp15x: Add patch to fix parallel build issues meta-isar/conf/machine/stm32mp15x.conf | 2 + .../optee-examples-stm32mp15x_3.21.0.bb | 2 +- .../0001-Fix-parallel-build-of-optee_ta.patch | 59 +++++++++++++++++++ .../optee-ftpm-stm32mp15x_0~230316+git.bb | 11 ++-- .../images/stm32mp15x-initramfs.bb | 15 ----- .../linux/files/ftpm-module.cfg | 3 + .../linux/linux-mainline_5.4.203.bb | 1 + .../optee-client/files/debian/control.tmpl | 2 +- .../files/debian/tee-supplicant.service | 2 +- .../files/tee-ftpm.script | 9 +++ .../files/tee-supplicant.script | 9 +-- testsuite/citest.py | 1 - 12 files changed, 82 insertions(+), 34 deletions(-) create mode 100644 meta-isar/recipes-bsp/optee-ftpm/files/0001-Fix-parallel-build-of-optee_ta.patch delete mode 100644 meta-isar/recipes-initramfs/images/stm32mp15x-initramfs.bb create mode 100644 meta-isar/recipes-kernel/linux/files/ftpm-module.cfg -- 2.20.1