Re: [PATCH v5 01/10] x86/hyper-v: include hyperv/ only when CONFIG_HYPERV is set
From: Andy Shevchenko
Date: Wed May 31 2017 - 10:51:11 EST
On Wed, May 31, 2017 at 5:37 PM, Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> wrote:
>>> # Hyper-V paravirtualization support
>>> -obj-$(CONFIG_HYPERVISOR_GUEST) += hyperv/
>>> +ifdef CONFIG_HYPERV
>>> +obj-y += hyperv/
>>> +endif
>>
>> Can
>> obj-$(CONFIG_HYPERV) += hyperv/
>> work for you instead?
>>
>
> CONFIG_HYPERV can be set to "m" but we want to include the contents of
> hyperv/ in vmlinux, not in vmbus module.
obj-$(subst m,y,$(CONFIG_HYPERV)) += hyperv/
should do the trick.
--
With Best Regards,
Andy Shevchenko