xref: /openbmc/linux/drivers/hv/Makefile (revision a4d7e8ae)
1# SPDX-License-Identifier: GPL-2.0
2obj-$(CONFIG_HYPERV)		+= hv_vmbus.o
3obj-$(CONFIG_HYPERV_UTILS)	+= hv_utils.o
4obj-$(CONFIG_HYPERV_BALLOON)	+= hv_balloon.o
5
6CFLAGS_hv_trace.o = -I$(src)
7CFLAGS_hv_balloon.o = -I$(src)
8
9hv_vmbus-y := vmbus_drv.o \
10		 hv.o connection.o channel.o \
11		 channel_mgmt.o ring_buffer.o hv_trace.o
12hv_vmbus-$(CONFIG_HYPERV_TESTING)	+= hv_debugfs.o
13hv_utils-y := hv_util.o hv_kvp.o hv_snapshot.o hv_fcopy.o hv_utils_transport.o
14
15# Code that must be built-in
16obj-$(subst m,y,$(CONFIG_HYPERV)) += hv_common.o
17