summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Makefile.tmk
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-09-06 18:44:25 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-12 20:48:54 -0400
commit4a54c2ae80e9c7c7ee53bc2bb39d2efb55d5a132 (patch)
tree735dd9051238a4d9fef917df948c1051f38456b6 /drivers/gpu/nvgpu/Makefile.tmk
parent7405f69ae2cb60a90885064533d8c9e95dd2de4d (diff)
gpu: nvgpu: Add sources for nvgpu-next in tmake
Update the tmake build to build nvcgpu-next as well. See https://git-master.nvidia.com/r/1814622 For the necessary changes to make this compile. JIRA NVGPU-1104 Change-Id: Id44e20de78c1ebdb0247a1c3da79273380aba9fb Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1814623 Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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