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 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel