summaryrefslogtreecommitdiffstats
path: root/kernel/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tests/Makefile')
-rw-r--r--kernel/tests/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/tests/Makefile b/kernel/tests/Makefile
index 7374f8b..56c819a 100644
--- a/kernel/tests/Makefile
+++ b/kernel/tests/Makefile
@@ -2,6 +2,11 @@ obj-m += gsp_emulation_test.o
ccflags-y := -I$(PWD)/../ -I$(PWD)/../include
+# Resolve open-iov-vfio.ko exports (gsp_emu_process_rpc,
+# gsp_client_init_emulation, gsp_rpc_emulation_set, ...).
+# Requires 'make kernel' (or 'make -C kernel') to have run first.
+KBUILD_EXTRA_SYMBOLS := $(abspath $(PWD)/../Module.symvers)
+
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
@@ -11,8 +16,9 @@ all:
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
+# Requires open-iov-vfio.ko loaded first (symbol dependency)
install:
sudo insmod gsp_emulation_test.ko
uninstall:
- sudo rmmod gsp_emulation_test \ No newline at end of file
+ sudo rmmod gsp_emulation_test