1

The full error message from make:

In file included from /home/username/linux-5.0.0/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h:496,
             from /home/username/linux-5.0.0/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c:29:
./include/trace/define_trace.h:89:42: fatal error: ../../drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h: No such file or directory
 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
                                          ^
compilation terminated.

(replace username with my home folder name above)

I've been trying to follow this to modify, build, and insert the amdgpu module into the already built kernel without having to build the whole kernel as I do always because of this bug.

It happens when I run make -C /lib/modules/$(uname -r)/build M=$(pwd) modules from the directory ~/linux-4.18.0/drivers/gpu/drm/amd/amdgpu/.

Tooniis
  • 1,572

1 Answers1

1

Edit amdgpu_trace.h file, and change the line:

#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/amd/amdgpu

to

#define TRACE_INCLUDE_PATH ../../../../../drivers/gpu/drm/amd/amdgpu
efthialex
  • 3,831
Flip
  • 156
  • 3