diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-01-29 08:32:22 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-05-22 03:11:14 +0200 |
commit | bbd540c072a8f7ad7aa4ba6a67ad5b30322e188b (patch) | |
tree | 173f8ff8e00d4d138d6921ca9d35c3eabd2bf3a5 | |
parent | drm: Generalized NV Block Linear DRM format mod (diff) | |
download | linux-bbd540c072a8f7ad7aa4ba6a67ad5b30322e188b.tar.xz linux-bbd540c072a8f7ad7aa4ba6a67ad5b30322e188b.zip |
drm/nouveau: fix out-of-tree module build
The $(srctree) addition a while back busted building the out-of-tree
version of the module, and I've been hacking it up ever since.
This allows us to work around the issue.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/Kbuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/Kbuild b/drivers/gpu/drm/nouveau/Kbuild index 7a62fa04272d..49e57fba4925 100644 --- a/drivers/gpu/drm/nouveau/Kbuild +++ b/drivers/gpu/drm/nouveau/Kbuild @@ -1,8 +1,10 @@ +NOUVEAU_PATH ?= $(srctree) + # SPDX-License-Identifier: MIT -ccflags-y += -I $(srctree)/$(src)/include -ccflags-y += -I $(srctree)/$(src)/include/nvkm -ccflags-y += -I $(srctree)/$(src)/nvkm -ccflags-y += -I $(srctree)/$(src) +ccflags-y += -I $(NOUVEAU_PATH)/$(src)/include +ccflags-y += -I $(NOUVEAU_PATH)/$(src)/include/nvkm +ccflags-y += -I $(NOUVEAU_PATH)/$(src)/nvkm +ccflags-y += -I $(NOUVEAU_PATH)/$(src) # NVKM - HW resource manager #- code also used by various userspace tools/tests |