diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile.tmk | 29 |
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 | ||
18 | include $(NV_COMPONENT_DIR)/Makefile.sources | 18 | include $(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. | ||
33 | NVGPU_NEXT_SOURCE := \ | ||
34 | $(NV_COMPONENT_DIR)/../../../../nvgpu-next/drivers/gpu/nvgpu | ||
35 | -include $(NVGPU_NEXT_SOURCE)/Makefile.sources | ||
36 | |||
20 | NV_COMPONENT_NAME := nvgpu-drv | 37 | NV_COMPONENT_NAME := nvgpu-drv |
21 | NV_COMPONENT_OWN_INTERFACE_DIR := . | 38 | NV_COMPONENT_OWN_INTERFACE_DIR := . |
22 | NV_COMPONENT_SOURCES := $(srcs) | 39 | NV_COMPONENT_SOURCES := \ |
23 | NV_COMPONENT_INCLUDES := . include ../../../include | 40 | $(srcs) \ |
41 | $(addprefix $(NVGPU_NEXT_SOURCE)/,$(srcs_next)) | ||
42 | NV_COMPONENT_INCLUDES := \ | ||
43 | . \ | ||
44 | include \ | ||
45 | ../../../include \ | ||
46 | $(NVGPU_NEXT_SOURCE) \ | ||
47 | $(NVGPU_NEXT_SOURCE)/include \ | ||
48 | $(NVGPU_NEXT_SOURCE)/../../../include | ||
24 | ifneq ($(NV_BUILD_CONFIGURATION_OS_IS_QNX),1) | 49 | ifneq ($(NV_BUILD_CONFIGURATION_OS_IS_QNX),1) |
25 | NV_COMPONENT_SYSTEM_SHARED_LIBRARIES += pthread | 50 | NV_COMPONENT_SYSTEM_SHARED_LIBRARIES += pthread |
26 | endif | 51 | endif |