diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2021-08-26 13:04:27 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2021-08-26 13:04:27 -0400 |
commit | 5f661d8a5db3f7875f6bf36b4843a71fd08ecbea (patch) | |
tree | b18ce3ceb27fd885cd6aec19a3c342bb9e7963ef /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-- | Makefile | 13 |
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 @@ | |||
1 | obj-m += nvdebug.o | ||
2 | |||
3 | # TODO: Avoid needing to distribute NVIDIA's headers (at least they're MIT...) | ||
4 | #ccflags-y += -I$(PWD)/include | ||
5 | ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu/include | ||
6 | ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu | ||
7 | ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include | ||
8 | ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include/uapi | ||
9 | |||
10 | all: | ||
11 | make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | ||
12 | clean: | ||
13 | make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean | ||