aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2021-08-26 13:04:27 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2021-08-26 13:04:27 -0400
commit5f661d8a5db3f7875f6bf36b4843a71fd08ecbea (patch)
treeb18ce3ceb27fd885cd6aec19a3c342bb9e7963ef /Makefile
Add initial implementation
Supports accessing and printing the runlist on the Jetson Xavier to dmesg. May work on other Jetson boards. Currently requires the nvgpu headers from NVIDIA's Linux4Tegra (L4T) source tree.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cc14996
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
1obj-m += nvdebug.o
2
3# TODO: Avoid needing to distribute NVIDIA's headers (at least they're MIT...)
4#ccflags-y += -I$(PWD)/include
5ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu/include
6ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu
7ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include
8ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include/uapi
9
10all:
11 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
12clean:
13 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean