summaryrefslogtreecommitdiff
path: root/drivers/edgetpu/gcip-kernel-driver/drivers/gcip/Makefile
blob: 7af6c7ef16f2aa1b560c3c7ff5b15a5f63928128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for GCIP framework.
#

CONFIG_GCIP		?= m
obj-$(CONFIG_GCIP)	+= gcip.o

gcip-objs		:= gcip-alloc-helper.o \
			   gcip-dma-fence.o \
			   gcip-domain-pool.o \
			   gcip-firmware.o \
			   gcip-image-config.o \
			   gcip-iommu.o \
			   gcip-kci.o \
			   gcip-mailbox.o \
			   gcip-mem-pool.o \
			   gcip-pm.o \
			   gcip-telemetry.o \
			   gcip-thermal.o

CURRENT_DIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))

ccflags-y += -I$(CURRENT_DIR)/../../include

ifdef CONFIG_GCIP_TEST
obj-y	+= unittests/
include $(srctree)/drivers/gcip/unittests/Makefile.include
$(call include_test_path, $(gcip-objs))
endif

modules modules_install clean:
	$(MAKE) -C $(KERNEL_SRC) M=$(M) W=1 $(KBUILD_OPTIONS) $(@)