Home | History | Annotate | Line # | Download | only in display
      1  1.1  riastrad #
      2  1.1  riastrad # Copyright 2017 Advanced Micro Devices, Inc.
      3  1.1  riastrad #
      4  1.1  riastrad # Permission is hereby granted, free of charge, to any person obtaining a
      5  1.1  riastrad # copy of this software and associated documentation files (the "Software"),
      6  1.1  riastrad # to deal in the Software without restriction, including without limitation
      7  1.1  riastrad # the rights to use, copy, modify, merge, publish, distribute, sublicense,
      8  1.1  riastrad # and/or sell copies of the Software, and to permit persons to whom the
      9  1.1  riastrad # Software is furnished to do so, subject to the following conditions:
     10  1.1  riastrad #
     11  1.1  riastrad # The above copyright notice and this permission notice shall be included in
     12  1.1  riastrad # all copies or substantial portions of the Software.
     13  1.1  riastrad #
     14  1.1  riastrad # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     15  1.1  riastrad # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     16  1.1  riastrad # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     17  1.1  riastrad # THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     18  1.1  riastrad # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     19  1.1  riastrad # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     20  1.1  riastrad # OTHER DEALINGS IN THE SOFTWARE.
     21  1.1  riastrad #
     22  1.1  riastrad #
     23  1.1  riastrad # Makefile for the DAL (Display Abstract Layer), which is a  sub-component
     24  1.1  riastrad # of the AMDGPU drm driver.
     25  1.1  riastrad # It provides the HW control for display related functionalities.
     26  1.1  riastrad 
     27  1.1  riastrad AMDDALPATH = $(RELATIVE_AMD_DISPLAY_PATH)
     28  1.1  riastrad 
     29  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/
     30  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw
     31  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/clk_mgr
     32  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/inc
     33  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/freesync
     34  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/color
     35  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/info_packet
     36  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/power
     37  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dmub/inc
     38  1.1  riastrad 
     39  1.1  riastrad ifdef CONFIG_DRM_AMD_DC_HDCP
     40  1.1  riastrad subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/hdcp
     41  1.1  riastrad endif
     42  1.1  riastrad 
     43  1.1  riastrad #TODO: remove when Timing Sync feature is complete
     44  1.1  riastrad subdir-ccflags-y += -DBUILD_FEATURE_TIMING_SYNC=0
     45  1.1  riastrad 
     46  1.1  riastrad DAL_LIBS = amdgpu_dm dc	modules/freesync modules/color modules/info_packet modules/power dmub/src
     47  1.1  riastrad 
     48  1.1  riastrad ifdef CONFIG_DRM_AMD_DC_HDCP
     49  1.1  riastrad DAL_LIBS += modules/hdcp
     50  1.1  riastrad endif
     51  1.1  riastrad 
     52  1.1  riastrad AMD_DAL = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/,$(DAL_LIBS)))
     53  1.1  riastrad 
     54  1.1  riastrad include $(AMD_DAL)
     55