############################################################ # Copyright (c) 2003-2011, Broadcom Corporation # All Rights Reserved # Confidential Property of Broadcom Corporation # # THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE # AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR # EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. # # $brcm_Workfile: bpcrlib.inc $ # $brcm_Revision: Hydra_Software_Devel/5 $ # $brcm_Date: 12/8/11 1:53p $ # # Module Description: # # Revision History: # # Created: 01/09/2007 by Jon Garrett # # $brcm_Log: /magnum/syslib/pcrlib/bpcrlib.inc $ # # Hydra_Software_Devel/5 12/8/11 1:53p mward # SW7125-1165: Replace findstring with filter to do exact word match. # # Hydra_Software_Devel/4 5/17/11 1:20p jgarrett # SW7425-604: Adding APE support to pcrlib # # Hydra_Software_Devel/3 2/20/08 10:20a erickson # PR34925: allow pcrlib to compile without MVD support # # Hydra_Software_Devel/2 9/17/07 3:36p erickson # PR34925: allow pcrlib to compile with no XVD or RAP support # # Hydra_Software_Devel/1 1/11/07 2:41p jgarrett # PR27004: Adding new .inc files # ############################################################ # # Conditional Options for this Makefile # # BCHP_7411_VER - If defined (in lower-case), specifies the revision of the 7411 chip to be supported. # # Define this module MAGNUM_MODULES += BPCRLIB # Module Includes BPCRLIB_INCLUDES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP) # Module Sources BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib.c # Chip Specifics ifeq ($(filter $(BCHP_CHIP), 7038 3560 3563),$(BCHP_CHIP)) # 7038, 3560, 3563 have MVD ifeq ($(BPCRLIB_HAS_MVD),) BPCRLIB_HAS_MVD := y endif else # Others have XVD ifeq ($(BPCRLIB_HAS_XVD),) BPCRLIB_HAS_XVD := y endif endif ifeq ($(filter $(BCHP_CHIP),7038 3560),$(BCHP_CHIP)) # 7038 and 3560 have AUD BPCRLIB_HAS_AUD := y else # Others have RAP or APE ifeq ($(BPCRLIB_HAS_RAP),) ifneq ($(wildcard $(MAGNUM)/portinginterface/rap/$(BCHP_CHIP)),) BPCRLIB_HAS_RAP := y endif endif ifeq ($(BPCRLIB_HAS_APE),) ifneq ($(wildcard $(MAGNUM)/portinginterface/ape/$(BCHP_CHIP)),) BPCRLIB_HAS_APE := y endif endif endif ifneq ($(BCHP_7411_VER),) # 7411 has XVD and RAP - and a separate directory for them. BPCRLIB_HAS_XVD := y BPCRLIB_HAS_RAP := y endif ifeq ($(BPCRLIB_HAS_MVD),y) BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_mvd.c endif ifeq ($(BPCRLIB_HAS_AUD),y) BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_aud.c endif ifeq ($(BPCRLIB_HAS_XVD),y) BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_xvd.c endif ifeq ($(BPCRLIB_HAS_RAP),y) BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_rap.c endif ifeq ($(BPCRLIB_HAS_APE),y) BPCRLIB_SOURCES += $(MAGNUM)/syslib/pcrlib/$(BCHP_CHIP)/bpcrlib_ape.c endif