Skip to content

src vs srctree

I have a build issue that I have fixed with the following hook:

diff --git a/drivers/gpu/drm/grate/Makefile b/drivers/gpu/drm/grate/Makefile
index 190a57680a73..5cb3267f4a19 100644
--- a/drivers/gpu/drm/grate/Makefile
+++ b/drivers/gpu/drm/grate/Makefile
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
-ccflags-y := -I $(srctree)/$(src)
-ccflags-y += -I $(srctree)/$(src)/uapi
+ccflags-y := -I $(src)
+ccflags-y += -I $(src)/uapi
 ccflags-y += -I $(srctree)/drivers/gpu/host1x-grate/soc/hw
 ccflags-$(CONFIG_DRM_TEGRA_DEBUG) += -DDEBUG
 

Easily reproducible when using a build tree different that the source tree. I don't know why this issue didn't occurred previously, but it was first seen after the 6.10 rebase...

(side node: I've also tested the u-boot counterpart just fine on tegra20-paz00).

Edited by Nicolas Chauvet