[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 09/12] target/arm: Make m_helper.c optional via CONFIG_ARM
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v4 09/12] target/arm: Make m_helper.c optional via CONFIG_ARM_V7M |
Date: |
Fri, 29 Jan 2021 19:53:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 10/3/20 11:48 AM, Richard Henderson wrote:
> On 9/29/20 5:43 PM, Philippe Mathieu-Daudé wrote:
>> +arm_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('m_helper.c'), if_false:
>> files('m_helper-stub.c'))
>> +
>> arm_ss.add(zlib)
>>
>> arm_ss.add(when: 'CONFIG_TCG', if_true: files('arm-semi.c'))
>> +arm_ss.add(when: 'CONFIG_TCG', if_false: files('m_helper-stub.c'))
>
> I'm a bit surprised about adding the file twice.
> Since ARM_V7M depends on TCG, isn't the second line redundant?
This does:
if TCG
if CONFIG_ARM_V7M
files('m_helper.c')
else #!V7M
files('m_helper-stub.c'))
endif
else #!TCG
files('m_helper-stub.c'))
endif
So:
if !TCG or !V7M
files('m_helper-stub.c'))
else
files('m_helper.c')
endif
There might be a better way to express that in Meson...
I only understood how to do AND with arrays, but not OR.
Paolo/Marc-André, is it possible?
Thanks,
Phil.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v4 09/12] target/arm: Make m_helper.c optional via CONFIG_ARM_V7M,
Philippe Mathieu-Daudé <=