xref: /openbmc/linux/drivers/gpu/drm/amd/display/Makefile (revision e2874a3c8c0c3b251d288a6149a80b9fd1c2f019)
14562236bSHarry Wentland#
2*e2874a3cSAlex Deucher# Copyright 2017 Advanced Micro Devices, Inc.
3*e2874a3cSAlex Deucher#
4*e2874a3cSAlex Deucher# Permission is hereby granted, free of charge, to any person obtaining a
5*e2874a3cSAlex Deucher# copy of this software and associated documentation files (the "Software"),
6*e2874a3cSAlex Deucher# to deal in the Software without restriction, including without limitation
7*e2874a3cSAlex Deucher# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*e2874a3cSAlex Deucher# and/or sell copies of the Software, and to permit persons to whom the
9*e2874a3cSAlex Deucher# Software is furnished to do so, subject to the following conditions:
10*e2874a3cSAlex Deucher#
11*e2874a3cSAlex Deucher# The above copyright notice and this permission notice shall be included in
12*e2874a3cSAlex Deucher# all copies or substantial portions of the Software.
13*e2874a3cSAlex Deucher#
14*e2874a3cSAlex Deucher# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*e2874a3cSAlex Deucher# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*e2874a3cSAlex Deucher# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*e2874a3cSAlex Deucher# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*e2874a3cSAlex Deucher# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*e2874a3cSAlex Deucher# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*e2874a3cSAlex Deucher# OTHER DEALINGS IN THE SOFTWARE.
21*e2874a3cSAlex Deucher#
22*e2874a3cSAlex Deucher#
234562236bSHarry Wentland# Makefile for the DAL (Display Abstract Layer), which is a  sub-component
244562236bSHarry Wentland# of the AMDGPU drm driver.
254562236bSHarry Wentland# It provides the HW control for display related functionalities.
264562236bSHarry Wentland
274562236bSHarry WentlandAMDDALPATH = $(RELATIVE_AMD_DISPLAY_PATH)
284562236bSHarry Wentland
294562236bSHarry Wentlandsubdir-ccflags-y += -I$(AMDDALPATH)/ -I$(AMDDALPATH)/include
304562236bSHarry Wentland
314562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/
324562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw
334562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/inc
344562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/freesync
354562236bSHarry Wentland
364562236bSHarry Wentland#TODO: remove when Timing Sync feature is complete
374562236bSHarry Wentlandsubdir-ccflags-y += -DBUILD_FEATURE_TIMING_SYNC=0
384562236bSHarry Wentland
394562236bSHarry WentlandDAL_LIBS = amdgpu_dm dc	modules/freesync
404562236bSHarry Wentland
414562236bSHarry WentlandAMD_DAL = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/,$(DAL_LIBS)))
424562236bSHarry Wentland
434562236bSHarry Wentlandinclude $(AMD_DAL)
44