From 5f661d8a5db3f7875f6bf36b4843a71fd08ecbea Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Thu, 26 Aug 2021 13:04:27 -0400 Subject: 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. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cc14996 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +obj-m += nvdebug.o + +# TODO: Avoid needing to distribute NVIDIA's headers (at least they're MIT...) +#ccflags-y += -I$(PWD)/include +ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu/include +ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu +ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include +ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include/uapi + +all: + make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules +clean: + make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean -- cgit v1.2.2