source: svn/trunk/newcon3bcm2_21bu/magnum/syslib/pcrlib/bpcrlib.inc @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 2.8 KB
Line 
1############################################################
2#     Copyright (c) 2003-2011, Broadcom Corporation
3#     All Rights Reserved
4#     Confidential Property of Broadcom Corporation
5#
6#  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7#  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8#  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9#
10# $brcm_Workfile: bpcrlib.inc $
11# $brcm_Revision: Hydra_Software_Devel/5 $
12# $brcm_Date: 12/8/11 1:53p $
13#
14# Module Description:
15#
16# Revision History:
17#
18# Created: 01/09/2007 by Jon Garrett
19#
20# $brcm_Log: /magnum/syslib/pcrlib/bpcrlib.inc $
21#
22# Hydra_Software_Devel/5   12/8/11 1:53p mward
23# SW7125-1165: Replace findstring with filter to do exact word match.
24#
25# Hydra_Software_Devel/4   5/17/11 1:20p jgarrett
26# SW7425-604: Adding APE support to pcrlib
27#
28# Hydra_Software_Devel/3   2/20/08 10:20a erickson
29# PR34925: allow pcrlib to compile without MVD support
30#
31# Hydra_Software_Devel/2   9/17/07 3:36p erickson
32# PR34925: allow pcrlib to compile with no XVD or RAP support
33#
34# Hydra_Software_Devel/1   1/11/07 2:41p jgarrett
35# PR27004: Adding new .inc files
36#
37############################################################
38
39#
40# Conditional Options for this Makefile
41#
42# BCHP_7411_VER - If defined (in lower-case), specifies the revision of the 7411 chip to be supported.
43#
44
45# Define this module
46MAGNUM_MODULES += BPCRLIB
47
48# Module Includes
49BPCRLIB_INCLUDES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)
50
51# Module Sources
52BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib.c
53
54# Chip Specifics
55ifeq ($(filter $(BCHP_CHIP), 7038 3560 3563),$(BCHP_CHIP))
56# 7038, 3560, 3563 have MVD
57ifeq ($(BPCRLIB_HAS_MVD),)
58BPCRLIB_HAS_MVD := y
59endif
60else
61# Others have XVD
62ifeq ($(BPCRLIB_HAS_XVD),)
63BPCRLIB_HAS_XVD := y
64endif
65endif
66
67ifeq ($(filter $(BCHP_CHIP),7038 3560),$(BCHP_CHIP))
68# 7038 and 3560 have AUD
69BPCRLIB_HAS_AUD := y
70else
71# Others have RAP or APE
72ifeq ($(BPCRLIB_HAS_RAP),)
73ifneq ($(wildcard $(MAGNUM)/portinginterface/rap/$(BCHP_CHIP)),)
74BPCRLIB_HAS_RAP := y
75endif
76endif
77
78ifeq ($(BPCRLIB_HAS_APE),)
79ifneq ($(wildcard $(MAGNUM)/portinginterface/ape/$(BCHP_CHIP)),)
80BPCRLIB_HAS_APE := y
81endif
82endif
83endif
84
85ifneq ($(BCHP_7411_VER),)
86# 7411 has XVD and RAP - and a separate directory for them.
87BPCRLIB_HAS_XVD := y
88BPCRLIB_HAS_RAP := y
89endif
90
91ifeq ($(BPCRLIB_HAS_MVD),y)
92BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_mvd.c
93endif
94
95ifeq ($(BPCRLIB_HAS_AUD),y)
96BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_aud.c
97endif
98
99ifeq ($(BPCRLIB_HAS_XVD),y)
100BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_xvd.c
101endif
102
103ifeq ($(BPCRLIB_HAS_RAP),y)
104BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_rap.c
105endif
106
107ifeq ($(BPCRLIB_HAS_APE),y)
108BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_ape.c
109endif
110
Note: See TracBrowser for help on using the repository browser.