| 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 |
|---|
| 46 | MAGNUM_MODULES += BPCRLIB |
|---|
| 47 | |
|---|
| 48 | # Module Includes |
|---|
| 49 | BPCRLIB_INCLUDES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP) |
|---|
| 50 | |
|---|
| 51 | # Module Sources |
|---|
| 52 | BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib.c |
|---|
| 53 | |
|---|
| 54 | # Chip Specifics |
|---|
| 55 | ifeq ($(filter $(BCHP_CHIP), 7038 3560 3563),$(BCHP_CHIP)) |
|---|
| 56 | # 7038, 3560, 3563 have MVD |
|---|
| 57 | ifeq ($(BPCRLIB_HAS_MVD),) |
|---|
| 58 | BPCRLIB_HAS_MVD := y |
|---|
| 59 | endif |
|---|
| 60 | else |
|---|
| 61 | # Others have XVD |
|---|
| 62 | ifeq ($(BPCRLIB_HAS_XVD),) |
|---|
| 63 | BPCRLIB_HAS_XVD := y |
|---|
| 64 | endif |
|---|
| 65 | endif |
|---|
| 66 | |
|---|
| 67 | ifeq ($(filter $(BCHP_CHIP),7038 3560),$(BCHP_CHIP)) |
|---|
| 68 | # 7038 and 3560 have AUD |
|---|
| 69 | BPCRLIB_HAS_AUD := y |
|---|
| 70 | else |
|---|
| 71 | # Others have RAP or APE |
|---|
| 72 | ifeq ($(BPCRLIB_HAS_RAP),) |
|---|
| 73 | ifneq ($(wildcard $(MAGNUM)/portinginterface/rap/$(BCHP_CHIP)),) |
|---|
| 74 | BPCRLIB_HAS_RAP := y |
|---|
| 75 | endif |
|---|
| 76 | endif |
|---|
| 77 | |
|---|
| 78 | ifeq ($(BPCRLIB_HAS_APE),) |
|---|
| 79 | ifneq ($(wildcard $(MAGNUM)/portinginterface/ape/$(BCHP_CHIP)),) |
|---|
| 80 | BPCRLIB_HAS_APE := y |
|---|
| 81 | endif |
|---|
| 82 | endif |
|---|
| 83 | endif |
|---|
| 84 | |
|---|
| 85 | ifneq ($(BCHP_7411_VER),) |
|---|
| 86 | # 7411 has XVD and RAP - and a separate directory for them. |
|---|
| 87 | BPCRLIB_HAS_XVD := y |
|---|
| 88 | BPCRLIB_HAS_RAP := y |
|---|
| 89 | endif |
|---|
| 90 | |
|---|
| 91 | ifeq ($(BPCRLIB_HAS_MVD),y) |
|---|
| 92 | BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_mvd.c |
|---|
| 93 | endif |
|---|
| 94 | |
|---|
| 95 | ifeq ($(BPCRLIB_HAS_AUD),y) |
|---|
| 96 | BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_aud.c |
|---|
| 97 | endif |
|---|
| 98 | |
|---|
| 99 | ifeq ($(BPCRLIB_HAS_XVD),y) |
|---|
| 100 | BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_xvd.c |
|---|
| 101 | endif |
|---|
| 102 | |
|---|
| 103 | ifeq ($(BPCRLIB_HAS_RAP),y) |
|---|
| 104 | BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_rap.c |
|---|
| 105 | endif |
|---|
| 106 | |
|---|
| 107 | ifeq ($(BPCRLIB_HAS_APE),y) |
|---|
| 108 | BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_ape.c |
|---|
| 109 | endif |
|---|
| 110 | |
|---|