Re: [meta-arm][PATCH 1/1] optee-client: disable build on qemux86-64

"Yan, Haixiao (CN)" <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
My local branch is mickledore. tee-supplicant.service start failed on 
qemux86-64.

https://git.yoctoproject.org/meta-arm/commit/meta-arm/recipes-security/optee/optee-client.inc?id=1bff41eee67d6dafc7c58b0c88923a3c6f7a2a7c 


this commit can resolve my issue.

My question is could we add the COMPATIBLE_MACHINE for optee-client?  So 
for qemux86-64, if there is no OP-TEE supplicant device, optee-client build

can skip.


root@qemux86-64:~#  systemctl status tee-supplicant.service

x tee-supplicant.service - TEE Supplicant

      Loaded: loaded (/lib/systemd/system/tee-supplicant.service; 
enabled; preset: enabled)

      Active: failed (Result: exit-code) since Sun 2025-02-23 22:41:08 
UTC; 32s ago

    Duration: 191ms

     Process: 468 ExecStart=/usr/sbin/tee-supplicant $OPTARGS 
(code=exited, status=1/FAILURE)

    Main PID: 468 (code=exited, status=1/FAILURE)

Feb 23 22:41:08 qemux86-64 systemd[1]: Started TEE Supplicant.

Feb 23 22:41:08 qemux86-64 tee-supplicant[468]: ERR [468] TSUP:main:884: 
failed to find an OP-TEE suppli>

Feb 23 22:41:08 qemux86-64 systemd[1]: tee-supplicant.service: Main 
process exited, code=exited, status=>

Feb 23 22:41:08 qemux86-64 systemd[1]: tee-supplicant.service: Failed 
with result 'exit-code'.

Thanks,
Haixiao


On 2/21/2025 11:06 PM, Jon Mason wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Thu, Feb 20, 2025 at 8:34 PM Yan, Haixiao (CN) via
> lists.yoctoproject.org
> <[email protected]> wrote:
>> From: Haixiao Yan <[email protected]>
>>
>> optee-client will be built on qemux86-64, there is no OP-TEE supplicant
>> device on this platform.
> I don't think I understand what you mean.  More verbosity in the
> commit message might help in the future.
> I was able to add optee-client to qemux86-64 and it compiled without issue.
>
> Either way, this patch breaks corstone1000 and fvp-base (with
> fvp-base-ts).  You can see it in
> https://gitlab.com/jonmason00/meta-arm/-/jobs/9203534679
> https://gitlab.com/jonmason00/meta-arm/-/jobs/9203534694
>
> Thanks,
> Jon
>
>> Signed-off-by: Haixiao Yan <[email protected]>
>> ---
>>   meta-arm/recipes-security/optee/optee-client.inc | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-arm/recipes-security/optee/optee-client.inc b/meta-arm/recipes-security/optee/optee-client.inc
>> index f387c80574b0..aafb1efcf726 100644
>> --- a/meta-arm/recipes-security/optee/optee-client.inc
>> +++ b/meta-arm/recipes-security/optee/optee-client.inc
>> @@ -6,6 +6,7 @@ LICENSE = "BSD-2-Clause"
>>   LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b"
>>
>>   inherit systemd update-rc.d cmake useradd
>> +require optee.inc
>>
>>   SRC_URI = " \
>>       git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https \
>> --
>> 2.34.1
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#6376): https://lists.yoctoproject.org/g/meta-arm/message/6376
>> Mute This Topic: https://lists.yoctoproject.org/mt/111301214/3616920
>> Group Owner: [email protected]
>> Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.