summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Makefile.tmk
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile.tmk')
-rw-r--r--drivers/gpu/nvgpu/Makefile.tmk29
1 files changed, 27 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/Makefile.tmk b/drivers/gpu/nvgpu/Makefile.tmk
index db8a1d72..5a0d1126 100644
--- a/drivers/gpu/nvgpu/Makefile.tmk
+++ b/drivers/gpu/nvgpu/Makefile.tmk
@@ -17,10 +17,35 @@ include $(NV_BUILD_START_COMPONENT)
17 17
18include $(NV_COMPONENT_DIR)/Makefile.sources 18include $(NV_COMPONENT_DIR)/Makefile.sources
19 19
20#
21# Include the nvgpu-next repo, if it's present. It's expected to be
22# located in the same directory as nvgpu, like so:
23#
24# kernel/nvgpu
25# kernel/nvgpu-next
26#
27# If it exists, this defines two variables: srcs_next which contains the
28# necessary sources to build and HEADERS_NEXT which has any headers in
29# nvgpu-next.
30#
31# NVGPU_NEXT_SOURCE needs to be set for the Makefile.sources file to
32# properly handle include paths.
33NVGPU_NEXT_SOURCE := \
34 $(NV_COMPONENT_DIR)/../../../../nvgpu-next/drivers/gpu/nvgpu
35-include $(NVGPU_NEXT_SOURCE)/Makefile.sources
36
20NV_COMPONENT_NAME := nvgpu-drv 37NV_COMPONENT_NAME := nvgpu-drv
21NV_COMPONENT_OWN_INTERFACE_DIR := . 38NV_COMPONENT_OWN_INTERFACE_DIR := .
22NV_COMPONENT_SOURCES := $(srcs) 39NV_COMPONENT_SOURCES := \
23NV_COMPONENT_INCLUDES := . include ../../../include 40 $(srcs) \
41 $(addprefix $(NVGPU_NEXT_SOURCE)/,$(srcs_next))
42NV_COMPONENT_INCLUDES := \
43 . \
44 include \
45 ../../../include \
46 $(NVGPU_NEXT_SOURCE) \
47 $(NVGPU_NEXT_SOURCE)/include \
48 $(NVGPU_NEXT_SOURCE)/../../../include
24ifneq ($(NV_BUILD_CONFIGURATION_OS_IS_QNX),1) 49ifneq ($(NV_BUILD_CONFIGURATION_OS_IS_QNX),1)
25NV_COMPONENT_SYSTEM_SHARED_LIBRARIES += pthread 50NV_COMPONENT_SYSTEM_SHARED_LIBRARIES += pthread
26endif 51endif