11.1Sriastrad# 21.1Sriastrad# Copyright 2017 Advanced Micro Devices, Inc. 31.1Sriastrad# 41.1Sriastrad# Permission is hereby granted, free of charge, to any person obtaining a 51.1Sriastrad# copy of this software and associated documentation files (the "Software"), 61.1Sriastrad# to deal in the Software without restriction, including without limitation 71.1Sriastrad# the rights to use, copy, modify, merge, publish, distribute, sublicense, 81.1Sriastrad# and/or sell copies of the Software, and to permit persons to whom the 91.1Sriastrad# Software is furnished to do so, subject to the following conditions: 101.1Sriastrad# 111.1Sriastrad# The above copyright notice and this permission notice shall be included in 121.1Sriastrad# all copies or substantial portions of the Software. 131.1Sriastrad# 141.1Sriastrad# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 151.1Sriastrad# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 161.1Sriastrad# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 171.1Sriastrad# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 181.1Sriastrad# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 191.1Sriastrad# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 201.1Sriastrad# OTHER DEALINGS IN THE SOFTWARE. 211.1Sriastrad# 221.1Sriastrad# 231.1Sriastrad# Makefile for the DAL (Display Abstract Layer), which is a sub-component 241.1Sriastrad# of the AMDGPU drm driver. 251.1Sriastrad# It provides the HW control for display related functionalities. 261.1Sriastrad 271.1SriastradAMDDALPATH = $(RELATIVE_AMD_DISPLAY_PATH) 281.1Sriastrad 291.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/ 301.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw 311.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/clk_mgr 321.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/inc 331.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/freesync 341.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/color 351.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/info_packet 361.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/power 371.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dmub/inc 381.1Sriastrad 391.1Sriastradifdef CONFIG_DRM_AMD_DC_HDCP 401.1Sriastradsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/hdcp 411.1Sriastradendif 421.1Sriastrad 431.1Sriastrad#TODO: remove when Timing Sync feature is complete 441.1Sriastradsubdir-ccflags-y += -DBUILD_FEATURE_TIMING_SYNC=0 451.1Sriastrad 461.1SriastradDAL_LIBS = amdgpu_dm dc modules/freesync modules/color modules/info_packet modules/power dmub/src 471.1Sriastrad 481.1Sriastradifdef CONFIG_DRM_AMD_DC_HDCP 491.1SriastradDAL_LIBS += modules/hdcp 501.1Sriastradendif 511.1Sriastrad 521.1SriastradAMD_DAL = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/,$(DAL_LIBS))) 531.1Sriastrad 541.1Sriastradinclude $(AMD_DAL) 55