[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/14] Makefile: Only build virtiofsd if system-mode is enabl
From: |
Richard Henderson |
Subject: |
Re: [PATCH 01/14] Makefile: Only build virtiofsd if system-mode is enabled |
Date: |
Sun, 15 Mar 2020 15:33:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 3/15/20 3:16 PM, Philippe Mathieu-Daudé wrote:
> On 3/15/20 8:40 PM, Richard Henderson wrote:
>> On 3/13/20 3:28 PM, Laurent Vivier wrote:
>>>> ifeq ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG),yyy)
>>>> -HELPERS-y += virtiofsd$(EXESUF)
>>>> -vhost-user-json-y += tools/virtiofsd/50-qemu-virtiofsd.json
>>>> +HELPERS-$(CONFIG_SOFTMMU) += virtiofsd$(EXESUF)
>>>> +vhost-user-json-$(CONFIG_SOFTMMU) +=
>>>> tools/virtiofsd/50-qemu-virtiofsd.json
>> ...
>>>
>>> Why don't you do that instead?
>>>
>>> ifeq
>>> ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG)$(CONFIG_SOFTMMU),yyyy)
>
> This was my first option but checkpatch complained because it is 80 chars
> long...
>
> I also tried:
>
> ifeq \
> ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG)$(CONFIG_SOFTMMU),yyyy)
>
> which is uglier and still too long.
>
> Following qemu-bridge-helper syntax I also tried:
>
> ifeq ($(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG),yy)
> HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) += virtiofsd$(EXESUF)
>
> which is also too long ¯\_(ツ)_/¯
>
> If you accept checkpatch complain I can use the form you prefer :)
Hmph. Of the choices, I prefer the 80+ char line.
r~
[PATCH 02/14] configure: Avoid building TCG when not needed, Philippe Mathieu-Daudé, 2020/03/13
[PATCH 03/14] tests/Makefile: Only display TCG-related tests when TCG is available, Philippe Mathieu-Daudé, 2020/03/13
[PATCH 04/14] tests/Makefile: Restrict some softmmu-only tests, Philippe Mathieu-Daudé, 2020/03/13
[PATCH 05/14] stubs/Makefile: Reduce the user-mode object list, Philippe Mathieu-Daudé, 2020/03/13