xref: /linux/drivers/gpu/drm/amd/display/Makefile (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
14562236bSHarry Wentland#
2e2874a3cSAlex Deucher# Copyright 2017 Advanced Micro Devices, Inc.
3e2874a3cSAlex Deucher#
4e2874a3cSAlex Deucher# Permission is hereby granted, free of charge, to any person obtaining a
5e2874a3cSAlex Deucher# copy of this software and associated documentation files (the "Software"),
6e2874a3cSAlex Deucher# to deal in the Software without restriction, including without limitation
7e2874a3cSAlex Deucher# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8e2874a3cSAlex Deucher# and/or sell copies of the Software, and to permit persons to whom the
9e2874a3cSAlex Deucher# Software is furnished to do so, subject to the following conditions:
10e2874a3cSAlex Deucher#
11e2874a3cSAlex Deucher# The above copyright notice and this permission notice shall be included in
12e2874a3cSAlex Deucher# all copies or substantial portions of the Software.
13e2874a3cSAlex Deucher#
14e2874a3cSAlex Deucher# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15e2874a3cSAlex Deucher# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16e2874a3cSAlex Deucher# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17e2874a3cSAlex Deucher# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18e2874a3cSAlex Deucher# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19e2874a3cSAlex Deucher# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20e2874a3cSAlex Deucher# OTHER DEALINGS IN THE SOFTWARE.
21e2874a3cSAlex Deucher#
22e2874a3cSAlex 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$(FULL_AMD_DISPLAY_PATH)/dc/inc/
304562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw
319b93eb47SEric Yangsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/clk_mgr
32e53524cdSMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/hwss
338b8eed05SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/resource
346c22fb07SBhuvana Chandra Pinnintisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/dsc
353d0fe494SParandhaman Ksubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/optc
3688867807SRevalla Hari Krishnasubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/dpp
37f9c7818cSRevalla Hari Krishnasubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/hubbub
380a8d2528SRevalla Hari Krishnasubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/dccg
390cfdfebeSBhuvana Chandra Pinnintisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/hubp
40*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/dio
41*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/dwb
42*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/hpo
43*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/mmhubbub
44*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/mpc
45*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/opp
46*2d62bb45SMounika Adhurisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/pg
474562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/inc
484562236bSHarry Wentlandsubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/freesync
49ec7e6bb8SLeo (Sunpeng) Lisubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/color
501336926fSAlvin leesubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/info_packet
51bbf854dcSDavid Francissubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/power
522200eb9eSNicholas Kazlauskassubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dmub/inc
532200eb9eSNicholas Kazlauskas
544c283fdaSBhawanpreet Lakhasubdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/hdcp
554562236bSHarry Wentland
564562236bSHarry Wentland#TODO: remove when Timing Sync feature is complete
574562236bSHarry Wentlandsubdir-ccflags-y += -DBUILD_FEATURE_TIMING_SYNC=0
584562236bSHarry Wentland
592200eb9eSNicholas KazlauskasDAL_LIBS = amdgpu_dm dc	modules/freesync modules/color modules/info_packet modules/power dmub/src
604562236bSHarry Wentland
614c283fdaSBhawanpreet LakhaDAL_LIBS += modules/hdcp
624c283fdaSBhawanpreet Lakha
634562236bSHarry WentlandAMD_DAL = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/,$(DAL_LIBS)))
644562236bSHarry Wentland
654562236bSHarry Wentlandinclude $(AMD_DAL)
66