1 2################################################################################ 3# 4# Copyright (c) 2008-2009 MStar Semiconductor, Inc. 5# All rights reserved. 6# 7# Unless otherwise stipulated in writing, any and all information contained 8# herein regardless in any format shall remain the sole proprietary of 9# MStar Semiconductor Inc. and be kept in strict confidence 10# ("MStar Confidential Information") by the recipient. 11# Any unauthorized act including without limitation unauthorized disclosure, 12# copying, use, reproduction, sale, distribution, modification, disassembling, 13# reverse engineering and compiling of the contents of MStar Confidential 14# Information is unlawful and strictly prohibited. MStar hereby reserves the 15# rights to any and all damages, losses, costs and expenses resulting therefrom. 16# 17# 18# Makefile used for building DDI 19# 20# 21################################################################################ 22 23# ********************************************** 24# DRV Name 25# ********************************************** 26DRV_NAME = MHL 27 28 29# ********************************************** 30# HAL Source Files 31# ********************************************** 32ifeq ($(EXTERNAL_MHL_CHIP),y) 33 ifeq ($(MSTAR_MHL_CHIP),y) 34 HAL_DIR = \ 35 mhl/external/mstar 36 else 37 HAL_DIR = \ 38 mhl/external/silicon 39 endif 40else 41 HAL_DIR = \ 42 mhl/internal 43endif 44 45# ********************************************** 46# Rules 47# ********************************************** 48include $(ROOTLIB)/drv_rule.mk 49 50# MHL chip configuration 51ifeq ($(EXTERNAL_MHL_CHIP),y) 52 CC_OPTS += -DEXTERNAL_MHL 53 ifeq ($(MSTAR_MHL_CHIP),y) 54 CC_OPTS += -DMSTAR_MHL 55 DRV_INCDIR += $(DDIHAL)/$(CHIP)/mhl/external/mstar 56 else 57 DRV_INCDIR += $(DDIHAL)/$(CHIP)/mhl/external/silicon 58 endif 59else 60 DRV_INCDIR += $(DDIHAL)/$(CHIP)/mhl/internal 61endif 62 63DRV_INCDIR += $(ROOTLIB)/api/mhl $(DDIHAL)/$(CHIP)/xc/include $(DDIDRV)/xc/include 64DRV_INCDIR += $(DDIDRV)/gpio $(DDIDRV)/cpu