summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77db0fb..5a4b17e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ gxp-objs += \
gxp-mapping.o \
gxp-platform.o \
gxp-range-alloc.o \
+ gxp-pm.o \
+ gxp-telemetry.o \
gxp-vd.o
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
@@ -55,5 +57,15 @@ ccflags-y += -DCONFIG_GXP_$(GXP_PLATFORM)
KBUILD_OPTIONS += CONFIG_GXP=m
+ifdef CONFIG_GXP_TEST
+subdir-ccflags-y += -Wall -Werror
+obj-y += unittests/
+include $(srctree)/drivers/gxp/unittests/Makefile.include
+$(call include_test_path, $(gxp-objs))
+endif
+
+# Access TPU driver's exported symbols.
+KBUILD_EXTRA_SYMBOLS += ../google-modules/edgetpu/janeiro/drivers/edgetpu/Module.symvers
+
modules modules_install clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) W=1 $(KBUILD_OPTIONS) $(@)