source: svn/trunk/newcon3bcm2_21bu/BSEAV/api/build/magnum/Makefile.inc @ 3

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

first commit

  • Property svn:executable set to *
File size: 22.6 KB
Line 
1############################################################
2#     Copyright (c) 2003-2010, 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: Makefile.inc $
11# $brcm_Revision: 133 $
12# $brcm_Date: 3/16/10 4:37p $
13#
14# Module Description:
15#
16# Revision History:
17#
18# Created: 02/09/2001 by Marcus Kellerman
19#
20# $brcm_Log: /BSEAV/api/build/magnum/Makefile.inc $
21#
22# 133   3/16/10 4:37p mward
23# SW7400-2517:  Add calls to BPWR_Open/BPWR_Close required to avoid
24# potential GISB timeout issues.  See SW7400-2418.
25#
26# 132   3/3/10 2:40p mward
27# SW7400-2517: SW7405-2993:  Build xdm.
28#
29# 131   12/31/08 10:30a dbayani
30# PR 50782: Move SVP functions in application and PI layer to xpt PI
31# layer.
32#
33# 130   6/20/08 6:07p anilmm
34# PR43453: Add support for 97459
35#
36# 129   4/25/08 2:30p bandrews
37# PR36149: Moved syslib framework impl out of board and into base
38#
39# 128   4/25/08 12:16p qcheng
40# PR42163: Move BICM_LINUX_USER_MODE_DRV out of bicm.inc
41#
42# 127   3/28/08 12:39p bandrews
43# PR36149: Moved inclusion of bsyslib_framework.inc to file that builds
44# syslib framework impl
45#
46# 126   3/28/08 10:32a gmohile
47# PR 41022 : Enable bcrypt support for 7405
48#
49# 125   3/24/08 4:56p bandrews
50# PR40865: Removed build dir and renamed inc file
51#
52# 124   2/29/08 2:17p dbayani
53# PR 38074: Update to support new SVP structure.
54#
55# 123   2/15/08 9:19p bandrews
56# PR36149: SETAPI syslib impl
57#
58# 122   2/12/08 3:57p mphillip
59# PR36787: Add Multi2 support to bstream_set_encryption
60#
61# 121   1/3/08 2:09p mphillip
62# PR35854: Merge p3d changes
63#
64# PR36550/PR35854/1   12/3/07 5:32p mphillip
65# PR35854: Update build for kernelmode 3D
66#
67# 120   12/21/07 12:24p agin
68# PR38430: Support BCM97315FP keypad for BCM97325 and BCM97335.
69#
70# 119   12/10/07 6:39p mward
71# PR38078: Create PLATFORM for 97018, 97018RNG
72#
73# 118   12/7/07 4:28p dbayani
74# PR 37935: Updated to support latest svplib.
75#
76# 117   12/3/07 5:00p katrep
77# PR37217: added 7335
78#
79# 116   11/29/07 4:17p gmohile
80# PR 34640 : Enable Keyladder for divx Drm
81#
82# 115   10/30/07 11:12a mward
83# PR36550:  Set HSM defaults to work without restricted code.
84#
85# 114   10/29/07 5:55p mphillip
86# PR36550: Add B_HAS_KEYLADDER for conditional compilation of non-bcrypto
87# keyladder code, and default BCRYPTO_HAS_KEYLADDER to off.
88#
89# 113   10/25/07 4:03p rjlewis
90# PR34869: add support for 97405 of bcm93520-3431-3418.
91#
92# 112   10/3/07 4:36p jrubio
93# PR35015: adding 7325 support
94#
95# 111   9/19/07 6:52p qcheng
96# PR35130: ICAM22 : Change icm.inc from rockford\modules to magnum PI
97# directory
98#
99# 110   7/26/07 12:38p erickson
100# PR32868: added bmsglib
101#
102# 109   7/17/07 3:10p gmohile
103# PR 33056: Add B_CONFIG_IMAGE support for 7403
104#
105# 108   7/16/07 4:51p mphillip
106# PR32275: CPS support for recording
107#
108# 107   7/11/07 12:36a katrep
109# PR27643: pickup brap.inc & bxvd.inc from their PI dirs for 7405.
110#
111# 106   6/27/07 5:16p mward
112# PR32537: Add B_CONFIG_IMAGE support for  97118[RNG].
113#
114# 105   6/14/07 4:00p ahulse
115# PR23100: B_CONFIG_IMAGE support for 7400
116#
117# 104   6/13/07 6:20p mward
118# PR31483: Add 97118RNG bcrypto support
119#
120# 103   6/13/07 4:39p mphillip
121# PR31483: Add 7118 bcrypto support
122#
123# 102   6/12/07 3:00p ahulse
124# PR23100: B_CONFIG_IMAGE support for 7401
125#
126# 101   5/31/07 3:28p katrep
127# PR27643:Updated for 7405 bringup
128#
129# 101   5/31/07 3:07p katrep
130# PR27643:Added support for 7405
131#
132# 100   5/18/07 1:01p gmohile
133# PR 30229 : Add B_DECODE_USER_DATA_CAPTURE
134#
135# 99   5/11/07 5:16p lyang
136# PR 27711: Add 7400B0, 7405A0  support to HSM. Purge and shared *.h
137# source udpated
138#
139#
140# 97   5/11/07 5:02p jgarrett
141# PR30221: PR 25900: Enabling RFM for 7400B0.
142# PR 30221: Enabling 3D for 7400
143#
144# 96   5/2/07 5:42p haisongw
145# PR27129, PR28294, PR25763: Enabling bcrypto for 97456, 97455 and 97458
146# platform
147#
148# 95   4/26/07 3:03p jgarrett
149# PR 30221: Adding 3D support for 7400
150#
151# 94   4/16/07 1:05p erickson
152# PR29890: move 7401 code to api/src/CHIP
153#
154# 93   4/13/07 6:57p jgarrett
155# PR 25900: Enabling bcrypto for 7400B0
156#
157# 92   4/12/07 11:34a ahulse
158# PR29145: Add DCS_SUPPORT flag
159#
160# 91   4/12/07 10:58a ahulse
161# PR29145: Add support for DCS
162#
163# 90   4/12/07 10:29a gmohile
164# PR 29188 : add bcrypt support for 7403
165#
166# 89   3/28/07 5:38p dbayani
167# PR 29157: Added SVP support.
168#
169# 88   3/21/07 11:10a mphillip
170# PR26200: bcrypt.inc should be included after the algorithm support is
171# configured
172#
173# 87   3/20/07 2:18p mphillip
174# PR26200: Enable key ladder support
175#
176# 86   3/8/07 2:44p jgarrett
177# PR 25900: Enabling HDMI
178#
179# 85   3/7/07 11:28a mphillip
180# PR28440: Temporary workaround -- disable SW support for now
181#
182# 84   3/6/07 3:10p jgarrett
183# PR 25900: Re-enabing VBI for the 7400 b0
184#
185# 83   2/22/07 4:23p jgarrett
186# PR 25900: Disabling some features on 97400 B0
187#
188# 82   2/15/07 12:51p rjlewis
189# PR27791: different library for different os.
190#
191# 81   2/9/07 2:13p mphillip
192# PR27750: Disable software bcrypto in kernel mode
193#
194# 80   2/8/07 6:00p haisongw
195# PR27767: enable SMARTCARD support for 97456 platform
196#
197# 79   1/11/07 2:32p jgarrett
198# PR 27004: Adding transition.inc
199#
200# 79   1/11/07 1:48p jgarrett
201# PR 27004: Adding transition.inc
202#
203# 78   1/9/07 1:51p jgarrett
204# PR 26914: Adding tnr files for 97400
205#
206# 77   1/4/07 11:24a rjlewis
207# PR22341: Vxworks v5 doesn't do ?=
208#
209# 76   12/21/06 2:19p erickson
210# PR25109: add 7403 support
211#
212# 75   12/7/06 5:04p lyang
213# PR 24863: HSM: hide out some HSM information in the makefiles
214#
215# 74   12/1/06 11:15a erickson
216# PR25109: add 7403 support
217#
218# 73   11/28/06 11:23a mphillip
219# PR26154: Build support for 7401 RSA
220#
221# 72   11/27/06 3:27p mward
222# PR23262: Add PCM, Smartcard for 97118.
223#
224# 71   11/22/06 4:05p qcheng
225# PR24859: Add ICAM2.2 support for 7118A0
226#
227# 70   11/16/06 10:26p qcheng
228# PR25950: Add ICAM2.2 support for 7401 C0 and 7118 A0
229#
230# 69   11/15/06 12:07p gmohile
231# PR 24823: add support for 3520_3431_3418 DC on 97401
232#
233# 68   10/31/06 9:13a erickson
234# PR25109: add 7403 support
235#
236# 67   10/24/06 3:10p gmohile
237# PR 24910: Modified to use new LNA PI
238#
239# 66   9/29/06 5:03p mward
240# PR24604: clean up debug.
241#
242# 65   9/29/06 4:34p mward
243# PR24604: create PLATFORM for 97118RNG.
244#
245# 64   9/15/06 3:01p mphillip
246# PR23943: Required define for HSM-dependent BCRYPT
247#
248# 63   9/14/06 1:30p mphillip
249# PR23943: Support BCHP_CHIP for bcrypto_
250#
251# 61   8/22/06 11:57a mward
252# PR21671: Re-enable HSM for 7118.
253#
254# 60   8/16/06 6:07p mward
255# PR21671: Re-enable dma for 7118.
256#
257# 59   8/11/06 5:57p mphillip
258# PR23573: Rename bcrypt_ to bcrypto_
259#
260# 58   8/11/06 3:49p rgreen
261# PR22187: Fix HDCP Key Loader to use standalone HSM PI
262#
263# 57   8/11/06 3:06p erickson
264# PR21941: B_HAS_HSM should always be defined for 740x
265#
266# 56   8/4/06 4:16p mward
267# PR21671: Disable dma for 7118 due to RDB headers issue.  Disable HSM
268# for 7118 - not implemented.
269#
270# 55   8/4/06 2:14a btan
271# PR22187: Only support Generic mode by default.
272#
273# 54   8/2/06 4:48p jgarrett
274# PR 20139: Fixing bdma build error for non-7038 platforms
275#
276# 53   8/2/06 1:21p mphillip
277# PR19544: Compilation support
278#
279# 52   7/27/06 4:04p qcheng
280# PR22674: fix smartcard Settop API test example on 7401 A0.
281#
282# 51   7/6/06 10:44a rjlewis
283# PR22341: vxworks ignores the ?= assignments.
284#
285# 50   6/6/06 5:20p mward
286# PR21671: Add support for 7118 chip 97118 board (need kbd, led)
287#
288# 49   6/6/06 4:06p mward
289# PR21671: Add support for 7118 chip 97118 board
290#
291# 48   5/10/06 9:56a rgreen
292# PR21039: Use magnum naming conventions for macros BHDM_CEC_SUPPORT vs
293# HDMI_CEC_SUPPORT
294#
295# 47   5/2/06 3:11p rgreen
296# PR20139: Re-Enable compilation for HSM for HDCP
297#
298# 46   4/28/06 1:55p haisongw
299# PR 20984: add 97456 platform support
300#
301# 45   4/20/06 3:20p erickson
302# PR19738: 97435 merge
303#
304# 44   4/18/06 4:01p bandrews
305# PR20120: Defaulted sync to on for all platforms
306#
307# 43   4/17/06 5:09p jgarrett
308# PR 20951: Merging skinned UI into mainline.
309#
310# SanDiego_Brutus_Skin/2   4/13/06 3:15p tokushig
311# merge from main to SanDiego_Brutus_Skin branch
312#
313# SanDiego_Brutus_Skin/1   3/21/06 10:27a tokushig
314# removed -O2 and add -g compilation flags for debugger support
315#
316# 42   4/11/06 3:55p bandrews
317# PR19434: Added conditional compile BSYNC_SUPPORT and runtime flag
318# sync_enabled
319#
320# 41   3/28/06 10:54a jgarrett
321# PR 20139: Disabling HSM for 7400 (Doesn't exist yet)
322#
323# 40   3/24/06 11:23a erickson
324# PR20407: HSM_SUPPORT defaults off, but only applies to usage in settop
325# api
326#
327# 39   3/24/06 10:10a erickson
328# PR20407: added HSM_SUPPORT, default on, set B_HAS_HSM on cmdline
329#
330# 38   3/10/06 2:33p jgarrett
331# PR 19265: Re-enabling HDMI for the 97400
332#
333# 37   2/3/06 4:53p jgarrett
334# PR 19250: Update Set-Top API for 97400
335#
336# 36   2/1/06 5:37p rgreen
337# PR14359,PR19283: Add HDMI CEC support
338# make CEC an optional compile option
339#
340# 35   1/23/06 10:53p vle
341# PR 17423: P3D library is optional component
342#
343# 34   1/23/06 8:14p rgreen
344# PR17748: Modify HDMI HDCP to use HSM for chips that support AEGIS
345#
346# 33   1/20/06 11:53a erickson
347# PR17108: convert filter-out to findstring for 7401/7400 support
348#
349# 32   1/20/06 10:58a vsilyaev
350# PR 17423: OpenGLES library is optional component
351#
352# 31   1/19/06 9:53a jgarrett
353# PR 19105: Create 97400 BSP
354#
355# Refsw_Devel_7400_A0/2   1/19/06 9:42a jgarrett
356# PR 19105: Create BCM97400 Set-Top API BSP
357#
358# 30   1/14/06 11:41p vle
359# PR17812, PR18396: add rfm support for 97401
360#
361# 29   1/5/06 8:34p qcheng
362# PR18909: Add ICAM and keyladder support for 97401
363#
364# 28   1/5/06 5:48p qcheng
365# PR18909: Add ICAM and keyladder support for 97401
366#
367# 26   11/21/05 2:24p nissen
368# PR 17423: Added P3D and OpenGL ES.
369#
370# 24   10/20/05 5:25p erickson
371# PR17108: added 7401 hdmi
372#
373# 23   10/20/05 11:53a vsilyaev
374# PR 17108: Use 7411 specific xvd.inc file
375#
376# 22   10/20/05 11:42a erickson
377# PR17108: get 97401 xvd userdata ready
378#
379# 21   10/17/05 2:12p erickson
380# PR17650: added B_DECODE_CRC_CAPTURE
381#
382# 20   10/14/05 4:35p vsilyaev
383# PR 17607: Added pvrlib for 7401
384#
385# 19   10/13/05 12:18p erickson
386# PR17108: added kpd and led for 97401
387#
388# 18   9/21/05 9:36p dlwin
389# PR 15377: Added support for different types of Raptor cores.
390#
391# 17   9/16/05 1:15p erickson
392# PR17150: remove reference to 97395
393#
394# 16   9/8/05 6:15p mphillip
395# PR16870: Add Macrovision support to the cflags
396#
397# 15   9/7/05 5:01p vsilyaev
398# PR 15377: Merged 7401 changes
399#
400# Refsw_97401_Bringup/6   9/7/05 3:32p vsilyaev
401# Prepare code to merge into the main line
402#
403# Refsw_97401_Bringup/5   8/25/05 3:28p vsilyaev
404# VBI support now optional
405#
406# Refsw_97401_Bringup/4   8/24/05 7:19p vsilyaev
407# Added compile type support for 7401 SettopApi
408#
409# Refsw_97401_Bringup/3   8/24/05 7:17p vsilyaev
410# Added compile type support for 7401 SettopApi
411#
412# Refsw_97401_Bringup/2   8/24/05 6:34p vsilyaev
413# Added compile type support for 7401 SettopApi
414#
415# Refsw_97401_Bringup/1   8/1/05 5:25p vsilyaev
416# Fixed build for 97398 platform
417#
418# 11   6/3/05 2:53p rgreen
419# PR15055: Add HDMI Rx Support
420# Add initial interrupt handling, HDMI packet handling/reading, and HDCP
421# key loading
422#
423# 10   4/13/05 11:14a erickson
424# PR14784: added 97315 frontpanel keypad support from commondrivers
425#
426# 9   4/11/05 6:28p dlwin
427# PR 14756: Added support DTT760x tuner.
428#
429# 8   3/30/05 3:15p dlwin
430# PR 14653: Add support S/W AGC for BTSC<->IFD
431#
432# 7   3/25/05 8:11p dlwin
433# PR 14615: Added for tuner 1.
434#
435# 6   3/24/05 12:54p vsilyaev
436# PR 14593: 93560 support
437#
438# Refsw_93560_Bringup/12   3/21/05 4:37p vsilyaev
439# Compile smartcard only for platforms where it present.
440#
441# Refsw_93560_Bringup/11   3/18/05 9:37p vsilyaev
442# Moved board specific parts into the board specific files.
443#
444# Refsw_93560_Bringup/10   3/18/05 8:32p vsilyaev
445# Removed HDMI_OUTPUT from the 93560 build
446#
447# Refsw_93560_Bringup/7   3/17/05 4:01p vsilyaev
448# Mega commit for further support of 93560.
449#
450# Refsw_93560_Bringup/6   3/16/05 5:57p vsilyaev
451# Use 3560 specific version of pvrlib.
452#
453# Refsw_93560_Bringup/5   3/16/05 2:45p vsilyaev
454# Put MVD back.
455#
456# Refsw_93560_Bringup/4   3/16/05 12:52p vsilyaev
457# Isolated BSP code.
458#
459# Refsw_93560_Bringup/3   3/15/05 9:19p vsilyaev
460# Removed MPEG decoder (MVD)
461#
462# Refsw_93560_Bringup/2   3/10/05 7:33p vsilyaev
463# Removed modules not created for 3560
464#
465# Refsw_93560_Bringup/1   3/10/05 6:52p vsilyaev
466# Refactored board specific and BSP files
467#
468# 4   3/9/05 7:44p vsilyaev
469# PR 14402: Moved compose into the toplevel makefile.
470#
471# 3   3/2/05 6:36p vsilyaev
472# PR 14305: Added raptor code
473#
474# 2   2/25/05 5:14p vsilyaev
475# PR 14226: Added image related modules.
476#
477# 1   2/7/05 6:53p dlwin
478# Merge down for release 2005_REFSW_MERGETOMAIN:
479#
480# Irvine_BSEAVSW_Devel/1   2/7/05 1:29p erickson
481# PR13908: split magnum's Makefile.core into two pieces, one for CFLAGS,
482# the other for internal source
483#
484# Irvine_BSEAVSW_Devel/16   2/2/05 4:44p erickson
485# PR13908: moved board code into subdir
486#
487# Irvine_BSEAVSW_Devel/15   2/2/05 4:21p erickson
488# PR13908: b_board refactoring
489#
490# Irvine_BSEAVSW_Devel/14   1/28/05 11:13a erickson
491# PR13908: refactor to make external include of Makefile.core correct
492#
493# Irvine_BSEAVSW_Devel/13   1/26/05 11:25a erickson
494# PR13908: made BCM_BOARD_NO public
495#
496# Irvine_BSEAVSW_Devel/12   1/25/05 5:39p erickson
497# PR13908: Settop API makefile rework
498#
499# Irvine_BSEAVSW_Devel/11   1/25/05 5:12p erickson
500# PR13908: Settop API makefile rework
501#
502# Irvine_BSEAVSW_Devel/10   1/13/05 4:35p vsilyaev
503# PR 13823: Added support for 97398 board.
504#
505# Irvine_BSEAVSW_Devel/9   5/26/04 4:06p erickson
506# PR11135: no longer using bkni_task
507#
508# Irvine_BSEAVSW_Devel/8   5/26/04 11:08a erickson
509# PR11135: added bkni_task and bsettop_core_event
510#
511# Irvine_BSEAVSW_Devel/7   5/12/04 10:23a erickson
512# PR10967: added standard header
513############################################################
514
515#
516# This file defines CFLAGS and other Makefile variables used to build
517# Reference Software. It does not defines SRCS or modify vpath.
518# This can be included by external applications.
519#
520
521include  ${BSEAV}/api/build/magnum/bsp.inc
522include $(BSETTOP)/build/magnum/bcm${PLATFORM}.inc
523
524BSETTOP = $(BSEAV)/api
525
526ifdef B_HAS_LEGACY_AV
527include  $(ROCKFORD)/modules/aud.inc
528include  $(ROCKFORD)/modules/mvd.inc
529include  ${ROCKFORD}/modules/pcrlib.inc
530else
531include  ${ROCKFORD}/modules/${CHIP}/pcrlib.inc
532endif
533
534# Don't build these for 740x chips
535ifneq ($(findstring $(CHIP),7118 7400 7401 7403 7405 7325 7335), $(CHIP))
536include  $(ROCKFORD)/modules/urt.inc
537include  $(ROCKFORD)/modules/btslib.inc
538endif
539
540include  $(ROCKFORD)/modules/vbilib.inc
541include  $(ROCKFORD)/modules/vbi.inc
542include  $(ROCKFORD)/modules/grc.inc
543include  $(ROCKFORD)/modules/icp.inc
544include  $(ROCKFORD)/modules/irb.inc
545include  $(ROCKFORD)/modules/kir.inc
546include  $(ROCKFORD)/modules/pxl.inc
547include  $(ROCKFORD)/modules/rdc.inc
548include  $(ROCKFORD)/modules/rsp.inc
549include  $(ROCKFORD)/modules/spi.inc
550include  $(ROCKFORD)/modules/sur.inc
551include  $(ROCKFORD)/modules/vdc.inc
552include  $(ROCKFORD)/modules/dma.inc
553ifeq ($(MACROVISION_SUPPORT),y)
554include  $(ROCKFORD)/modules/vdc_macrovision.inc
555else
556ifeq ($(DCS_SUPPORT),y)
557BVDC_DCS := y
558include $(MAGNUM)/portinginterface/vdc/bvdc.inc
559else
560include  $(ROCKFORD)/modules/vdc_nomacrovision.inc
561endif
562endif
563ifneq ($(CHIP), 7118)
564include  $(ROCKFORD)/modules/hdm.inc
565endif
566BHDM_CEC_SUPPORT ?= n
567ifeq ($(BHDM_CEC_SUPPORT),y)
568include  $(ROCKFORD)/modules/hdm_cec.inc
569endif
570ifeq ($(findstring $(CHIP),3560 7118),)
571include  ${ROCKFORD}/modules/hdmlib.inc
572endif
573
574# 3D specific modules
575ifeq ($(findstring $(CHIP),7038 7400), $(CHIP))
576ifeq ($(B_GLES_SUPPORT), y)
577ifneq ($(SYSTEM),linuxkernel)
578include  $(ROCKFORD)/modules/p3d.inc
579include  $(ROCKFORD)/modules/opengles.inc
580CFLAGS += -DB_GLES_SUPPORT=1
581endif
582endif
583endif
584
585ifeq ($(CHIP), 7038)
586# 7038 specific modules
587include  $(ROCKFORD)/modules/clock_debug.inc
588include  $(ROCKFORD)/modules/ifd.inc
589
590include  ${ROCKFORD}/modules/pvrlib.inc
591include  $(ROCKFORD)/modules/rfm.inc
592include  $(ROCKFORD)/modules/scd.inc
593include  $(ROCKFORD)/modules/xpt.inc
594endif
595
596ifeq ($(findstring $(CHIP),7118 7400 7401 7403 7405 7325 7335), $(CHIP))
597include  $(ROCKFORD)/modules/xpt.inc
598include  $(ROCKFORD)/modules/rfm.inc
599include  ${ROCKFORD}/modules/${CHIP}/pvrlib.inc
600endif
601
602ifeq ($(findstring $(CHIP),7118 7400 7401 7403 7405 7325 7335), $(CHIP))
603include  $(ROCKFORD)/modules/scd.inc
604endif
605
606BICM_SUPPORT ?= n
607ifeq ($(BICM_SUPPORT), y)
608
609BICM_LINUX_USER_MODE_DRV ?= y
610ifeq ($(BICM_LINUX_USER_MODE_DRV), y)
611CFLAGS += -DBICM_LINUX_USER_MODE_DRV
612endif
613
614#include  $(ROCKFORD)/modules/icm.inc
615include $(ROCKFORD)/../magnum/portinginterface/xpt/$(CHIP)/icm/bicm.inc
616endif
617
618BSVP_SUPPORT ?= n
619ifeq ($(BSVP_SUPPORT), y)
620CFLAGS += -D__LINUX__ -DSVP_TEST
621include $(ROCKFORD)/../magnum/portinginterface/xpt/$(CHIP)/svp/bsvp.inc
622endif
623
624# HSM Module
625ifeq ($(findstring $(CHIP),7118 7400 7401 7403 7405 7325 7335), $(CHIP))
626# set the defaults to work with the minimal code distribution
627CUST ?=G
628BHSM_BSECK ?=OFF
629BHSM_KEYLADDER ?=OFF
630BHSM_MISC ?=OFF
631BHSM_OTPMSP ?=OFF
632
633ifeq ($(DIVX_DRM_SUPPORT), y)
634BHSM_KEYLADDER = ON
635endif
636
637include $(ROCKFORD)/../magnum/portinginterface/hsm/bhsm.inc
638
639CFLAGS += -DBHSM_AEGIS_SUPPORT
640CFLAGS += -DB_HAS_HSM=1
641
642endif
643
644ifeq ($(CHIP), 3560)
645# 3560 specific modules
646include  $(ROCKFORD)/modules/hdr.inc
647include  $(ROCKFORD)/modules/hdrlib.inc
648include  $(ROCKFORD)/modules/3560/xpt.inc
649include  ${ROCKFORD}/modules/3560/pvrlib.inc
650endif
651
652ifdef BCHP_XVD_CHIP
653ifeq ($(BCHP_XVD_CHIP), 7411)
654include  $(ROCKFORD)/modules/${BCHP_XVD_CHIP}/xvd.inc
655include  $(ROCKFORD)/modules/${BCHP_XVD_CHIP}/rap.inc
656else
657
658ifeq ($(findstring $(PLATFORM),97400 97456),$(PLATFORM))
659include  ${MAGNUM}/portinginterface/pwr/bpwr.inc
660# XVD defaults off for settops, force it on, so that we can
661# power on properly after running a Nexus build
662BXVD_POWER_MANAGEMENT := y
663endif
664
665ifeq ($(findstring $(CHIP),7400 7401 7403 7405 7118 7325 7335), $(CHIP))
666
667ifeq ($(SYSTEM),linuxkernel)
668BRAP_IMG_EXTERNAL := y
669BXVD_IMG_EXTERNAL := y
670endif
671include $(MAGNUM)/portinginterface/xvd/bxvd.inc
672include $(MAGNUM)/commonutils/xdm/bxdm.inc
673include $(MAGNUM)/portinginterface/rap/brap.inc
674else
675include  $(ROCKFORD)/modules/xvd.inc
676include  $(ROCKFORD)/modules/rap.inc
677
678endif
679
680endif
681endif
682
683include $(MAGNUM)/syslib/msglib/bmsglib.inc
684
685# Support for syslib framework
686include ${MAGNUM}/syslib/framework/bsyslib_framework.inc
687
688ifdef BCHP_QAM_CHIP
689include  $(ROCKFORD)/modules/3250/kpd.inc
690include  $(ROCKFORD)/modules/3250/led.inc
691include  $(ROCKFORD)/modules/qds.inc
692include  $(ROCKFORD)/modules/qob.inc
693include  $(ROCKFORD)/modules/qus.inc
694include  ${ROCKFORD}/modules/tnr3250ob.inc
695endif
696
697ifneq ($(findstring $(PLATFORM), 97325 97335 97398 93560),)
698CFLAGS += -I$(ROCKFORD)/commondrivers/kpd/97315fp
699vpath %.c $(ROCKFORD)/commondrivers/kpd/97315fp
700SRCS += bkpd.c
701endif
702
703ifeq ($(findstring $(CHIP),7118 7400 7401 7403 7405), $(CHIP))
704include  $(ROCKFORD)/modules/kpd.inc
705include  $(ROCKFORD)/modules/led.inc
706endif
707
708ifneq ($(findstring $(PLATFORM), 97038 93560 ),)
709include  ${ROCKFORD}/modules/tnr.inc
710include  ${ROCKFORD}/modules/tnr3418.inc
711include  ${ROCKFORD}/modules/lna.inc
712include  ${ROCKFORD}/modules/lna3405.inc
713endif
714ifneq ($(findstring $(PLATFORM), 93560 ),)
715include  ${ROCKFORD}/modules/tnrdtt760x.inc
716endif
717
718# Support for 3520-3431-3418 tuner card.
719ifeq ($(findstring $(PLATFORM),97401 97403 97400 97405),$(PLATFORM))
720include  ${ROCKFORD}/modules/tnr.inc
721include  ${ROCKFORD}/modules/tnr3418.inc
722include  ${ROCKFORD}/modules/lna.inc
723include  ${ROCKFORD}/modules/lna3431.inc
724endif
725
726# Support for on board 3510/3420 QAM/VSB tuner.
727ifeq ($(findstring $(PLATFORM),97405),$(PLATFORM))
728include  ${ROCKFORD}/modules/tnr.inc
729include  ${ROCKFORD}/modules/tnr3420.inc
730include  ${ROCKFORD}/modules/lna.inc
731include  ${ROCKFORD}/modules/lna3431.inc
732endif
733
734# Default keyladder to off
735KEYLADDER_SUPPORT ?= n
736ifeq ($(KEYLADDER_SUPPORT),y)
737CFLAGS += -DB_HAS_KEYLADDER=1
738endif
739
740ifeq ($(findstring $(PLATFORM),97401 97400 97403 97455 97456 97458 97459 97018 97018RNG 97118 97118RNG 97405),$(PLATFORM))
741# Enable bcrypto support by default for platforms on which it has been tested and is required
742BCRYPTO_SUPPORT ?= y
743endif
744
745ifeq ($(BCRYPTO_SUPPORT),y)
746# Software support should not be enabled for kernel mode, as that would require linking openssl into the kernel module
747ifeq ($(SYSTEM),linuxkernel)
748BCRYPTO_SW_SUPPORT ?= n
749else
750BCRYPTO_SW_SUPPORT ?= n
751#currently disabled while software support issues are worked through.
752#use this instead for software algorithm support (DRM requires this):
753#BCRYPTO_SW_SUPPORT ?= y
754endif
755BCRYPTO_HW_SUPPORT ?= y
756BCRYPTO_DES_SUPPORT ?= y
757BCRYPTO_AES_SUPPORT ?= y
758BCRYPTO_RSA_SUPPORT ?= y
759ifeq ($(BCRYPTO_HW_SUPPORT),y)
760CFLAGS += -DB_HAS_BCRYPTO_HW
761CFLAGS += -DBCRYPT_HW_M2M
762BCRYPTO_RC4_SUPPORT ?= n
763BCRYPTO_MD5_SUPPORT ?= n
764BCRYPTO_SHA1_SUPPORT ?= y
765BCRYPTO_CMAC_SUPPORT ?= n
766BCRYPTO_KEYLADDER_SUPPORT ?= n
767endif
768ifeq ($(BCRYPTO_SW_SUPPORT),y)
769CFLAGS += -DB_HAS_BCRYPTO_SW
770CRYPTO_LDFLAGS += ${ROCKFORD}/bcrypt/${BCHP_CHIP}/cryptolib/openssl/lib/${SYSTEM}/libcrypto.a
771BCRYPTO_RC4_SUPPORT ?= y
772BCRYPTO_MD5_SUPPORT ?= y
773BCRYPTO_SHA1_SUPPORT ?= y
774BCRYPTO_CMAC_SUPPORT ?= y
775BCRYPTO_KEYLADDER_SUPPORT ?= n
776endif
777include  ${ROCKFORD}/modules/bcrypt.inc
778ifeq ($(BCRYPTO_DES_SUPPORT),y)
779CFLAGS += -DB_HAS_BCRYPTO_DES
780endif
781ifeq ($(BCRYPTO_AES_SUPPORT),y)
782CFLAGS += -DB_HAS_BCRYPTO_AES
783endif
784ifeq ($(BCRYPTO_RC4_SUPPORT),y)
785CFLAGS += -DB_HAS_BCRYPTO_RC4
786endif
787ifeq ($(BCRYPTO_MD5_SUPPORT),y)
788CFLAGS += -DB_HAS_BCRYPTO_MD5
789endif
790ifeq ($(BCRYPTO_SHA1_SUPPORT),y)
791CFLAGS += -DB_HAS_BCRYPTO_SHA1
792endif
793ifeq ($(BCRYPTO_CMAC_SUPPORT),y)
794CFLAGS += -DB_HAS_BCRYPTO_CMAC
795endif
796ifeq ($(BCRYPTO_RSA_SUPPORT),y)
797CFLAGS += -DB_HAS_BCRYPTO_RSA
798endif
799ifeq ($(BCRYPTO_KEYLADDER_SUPPORT),y)
800CFLAGS += -DB_HAS_BCRYPTO_KEYLADDER
801endif
802endif
803ifeq ($(MULTI2_SUPPORT),y)
804CFLAGS += -DB_HAS_MULTI2
805endif
806
807ifeq ($(INTERNAL_DOCSIS_SUPPORT),y)
808CFLAGS += -DINTERNAL_DOCSIS_SUPPORT
809endif
810
811CFLAGS += -I$(B_API_IMPL)
812CFLAGS += -I$(B_API_IMPL)/board
813CFLAGS += -D_POSIX_C_SOURCE=199506 -D_ISOC9X_SOURCE
814
815ifeq ($(MACROVISION_SUPPORT),y)
816CFLAGS += -DMACROVISION_SUPPORT
817endif
818
819ifeq ($(DCS_SUPPORT),y)
820CFLAGS += -DDCS_SUPPORT
821endif
822
823ifeq ($(CPS_SUPPORT),y)
824CFLAGS += -DCPS_SUPPORT
825endif
826
827SRCS += $(addsuffix .c, ${notdir ${R_OBJ}})
828vpath %.c $(sort $(dir ${R_OBJ}))
829CFLAGS += $(addprefix -I, $(sort ${R_INC}))
830
831ifeq ($(B_DECODE_CRC_CAPTURE),y)
832CFLAGS += -DB_DECODE_CRC_CAPTURE
833endif
834
835ifeq ($(B_DECODE_USERDATA_CAPTURE),y)
836CFLAGS += -DB_DECODE_USERDATA_CAPTURE
837endif
838
839# vxworks can't handle the ?= tests (need this to default to y)
840ifeq ($(SYSTEM),vxworks)
841ifeq ($(BSYNC_SUPPORT),)
842BSYNC_SUPPORT = y
843endif
844endif
845
846BSYNC_SUPPORT ?= y
847ifeq ($(BSYNC_SUPPORT),y)
848CFLAGS += -DBSYNC_SUPPORT
849endif
850
851# Include transition.inc file at the end of the build
852# Do not fail on this, it should be harmless on older builds
853ifeq ($(wildcard $(ROCKFORD)/modules/transition.inc),)
854$(warning $(ROCKFORD)/modules/transition.inc is missing.  This may cause problems in your build.)
855else
856include $(ROCKFORD)/modules/transition.inc
857endif
858
Note: See TracBrowser for help on using the repository browser.