xref: /utopia/UTPA2-700.0.x/modules/dscmb/drv/dscmb2/Makefile (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
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
23BOX_CHIPS = u4 j2 k1 k2 keltic
24TSP3_CHIPS = agate
25TSP4_CHIPS = kaiser keltic keres kirin
26# **********************************************
27# DRV Name
28# **********************************************
29DRV_NAME = DSCMB2
30
31
32# **********************************************
33# HAL Source Files
34# **********************************************
35HAL_DIR = \
36            dscmb                                                   \
37
38
39# **********************************************
40# Rules
41# **********************************************
42include $(ROOTLIB)/drv_rule.mk
43
44# TODO : not good for driver alling driver, plan to obsolete
45ifeq ($(CHIP), $(filter $(CHIP),$(BOX_CHIPS)))
46DRV_INCDIR += $(DDIDRV)/tsp2
47
48else ifeq ($(CHIP), $(filter $(CHIP),$(TSP3_CHIPS)))
49DRV_INCDIR += $(DDIDRV)/tsp3
50
51else ifeq ($(CHIP), $(filter $(CHIP),$(TSP4_CHIPS)))
52DRV_INCDIR += $(DDIDRV)/tsp4
53
54else
55DRV_INCDIR += $(DDIDRV)/tsp
56endif
57