source: svn/newcon3bcm2_21bu/magnum/portinginterface/hsm/7552/bhsm.inc @ 66

Last change on this file since 66 was 66, checked in by megakiss, 11 years ago

키패드 기능 연결

전원키 누르고 리모콘 누르면 학습
CH+ 간격 1초 증가 MAX:15
CH- 간격 1초 감소 MIN :1

  • Property svn:executable set to *
File size: 20.7 KB
Line 
1#/***************************************************************************
2# *     (c)2007-2011 Broadcom Corporation
3# *
4# *  This program is the proprietary software of Broadcom Corporation and/or its licensors,
5# *  and may only be used, duplicated, modified or distributed pursuant to the terms and
6# *  conditions of a separate, written license agreement executed between you and Broadcom
7# *  (an "Authorized License").  Except as set forth in an Authorized License, Broadcom grants
8# *  no license (express or implied), right to use, or waiver of any kind with respect to the
9# *  Software, and Broadcom expressly reserves all rights in and to the Software and all
10# *  intellectual property rights therein.  IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU
11# *  HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY
12# *  NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE.
13# *
14# *  Except as expressly set forth in the Authorized License,
15# *
16# *  1.     This program, including its structure, sequence and organization, constitutes the valuable trade
17# *  secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof,
18# *  and to use this information only in connection with your use of Broadcom integrated circuit products.
19# *
20# *  2.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
21# *  AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR
22# *  WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
23# *  THE SOFTWARE.  BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES
24# *  OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE,
25# *  LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION
26# *  OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF
27# *  USE OR PERFORMANCE OF THE SOFTWARE.
28# *
29# *  3.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS
30# *  LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR
31# *  EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR
32# *  USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF
33# *  THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT
34# *  ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE
35# *  LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF
36# *  ANY LIMITED REMEDY.
37# *
38# * $brcm_Workfile: bhsm.inc $
39# * $brcm_Revision: Hydra_Software_Devel/8 $
40# * $brcm_Date: 10/17/11 5:26p $
41# *
42# * Module Description:
43# *
44# * Revision History:
45# *
46# * $brcm_Log: /magnum/portinginterface/hsm/7422/bhsm.inc $
47# *
48# * Hydra_Software_Devel/8   10/17/11 5:26p atruong
49# * SWSECURITY-69: Support for 40-nm B0 Zeus 2.0 platforms
50# *
51# * Hydra_Software_Devel/7   10/12/11 10:48p atruong
52# * SW7425-1251: HSM PI Support For BCM7425B0
53# *
54# * Hydra_Software_Devel/6   9/23/11 7:09p atruong
55# * SW7346-495: HSM_SOURCE_AVAILABLE option fix
56# *
57# * Hydra_Software_Devel/5   9/21/11 11:55a atruong
58# * SW7346-495: Add NSK2AVK support
59# *
60# * Hydra_Software_Devel/4   6/2/11 6:08p atruong
61# * SW7422-451: New Folder structure/BSP shared header file separation
62# *
63# * Hydra_Software_Devel/3   5/31/11 11:34p atruong
64# * SW7422-451: New Folder structure/BSP shared header file separation
65# *
66# * Hydra_Software_Devel/2   1/24/11 10:44a atruong
67# * SW7422-26: Add HSM PI Support For 7422A0  - CC header format
68# *
69# ******************************************************************************/
70
71#-----------------------------------------------------------------------------------#
72# HSM build-command-line-options:
73#  CUST=GENERIC3A  or
74#  CUST=GENERIC3B  or
75#  CUST=DIRECTV    or
76#  CUST=ECHOSTAR   or
77#  CUST=CONAX      or
78#  CUST=CISCO      or
79#  CUST=IRDETO     or
80#  CUST=MICROSOFT  or
81#  CUST=MOTOROLA   or
82#  CUST=NAGRA      or
83#  CUST=NDS        or
84#  CUST=NDSDSS     or
85#  CUST=ALL        to select customer mode
86#  CUST=Not Set or Invalid -  Customer Mode defaults to GENERIC3A
87#  SCVALUE=ON                to turn on scrambling ctrl bits setting with specified value
88#  BHSM_REGIONVERIFY=ON      to turn on region verification with Generic mode  (invalid option for non-Generic mode build)
89#  BHSM_BSECK=ON             to turn on/off BSECK feature
90#  BHSM_IPTV=ON              to turn on/off IPTV feature
91#  BHSM_KEYLADDER=ON         to select spitted, protected secure PIs
92#  BHSM_MISC=ON              to select spitted, protected secure PIs
93#  BHSM_OTPMSP=ON            to select spitted, protected secure PIs
94#  BHSM_SECURE_RSA=ON        to turn on Secure RSA feature
95#  BHSM_SECURE_ACCESS=ON     to turn on Secure Access (DRM Data Op) feature
96#  BHSM_IP_LICENSING=ON      to turn on IP Licensing feature
97#  BHSM_MISC=ON              to turn on support for DEBUG_DUMP_EXEC command
98#  BHSM_PWR_MGMT=ON          to turn on support for power management
99#
100#-----------------------------------------------------------------------------------#
101
102
103#
104# Conditional Options for this Makefile
105#
106# BHSM_CUST - HSM Specific Option.  This value will be provided for you if appropriate.
107#
108
109# Define this module
110MAGNUM_MODULES += BHSM
111
112BCHP_VER_LOWER := $(shell awk 'BEGIN{print tolower("$(BCHP_VER)")}')
113
114# Definitions
115BHSM_DEFINES += BHSM_AEGIS_SUPPORT
116
117# Support uScValue definition for newer chip (7400C0 and later)
118BHSM_DEFINES += BHSM_SC_VALUE
119BSP_SC_VALUE_SUPPORT=ON
120
121         
122CUST_SETTING := OFF
123
124#-----------------------------------------------------------------------------------#
125# old support "make CUST=ECHOSTAR"
126# space can NOT be put after 'ECHOSTAR' in ifeq ($(CUST),  ECHOSTAR),  yet can be put before 'ECHOSTAR'
127
128ifeq ($(CUST),ECHOSTAR)
129BHSM_CUST := ECHOSTAR
130CUST_SETTING := ON
131endif
132
133
134#-----------------------------------------------------------------------------------#
135# 4/11/07 to add EchoStar build support
136# this is complicated, discard:  ifeq ($(findstring E, $(BHSM_CUST)), $(BHSM_CUST))
137
138ifeq ($(BHSM_CUST),ECHOSTAR)
139# change itself from the upper case to lower for directory mapping
140
141BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
142         
143include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_echostar.inc
144endif
145
146
147
148#-----------------------------------------------------------------------------------#
149# old support "make CUST=DIRECTV"
150ifeq ($(CUST),DIRECTV)
151BHSM_CUST := DIRECTV
152CUST_SETTING := ON
153endif
154
155ifeq ($(BHSM_CUST),DIRECTV)
156
157BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
158         
159include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_directv.inc
160endif
161
162
163#-----------------------------------------------------------------------------------#
164# old support "make CUST=NDS"
165ifeq ($(CUST),NDS)
166BHSM_CUST := NDS
167CUST_SETTING := ON
168endif
169
170ifeq ($(BHSM_CUST),NDS)
171
172BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
173         
174include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_nds.inc
175endif
176
177
178#-----------------------------------------------------------------------------------#
179# old support "make CUST=MICROSOFT"
180ifeq ($(CUST),MICROSOFT)
181BHSM_CUST := MICROSOFT
182CUST_SETTING := ON
183endif
184
185ifeq ($(BHSM_CUST),MICROSOFT)
186
187BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
188         
189include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_microsoft.inc
190endif
191
192
193
194#-----------------------------------------------------------------------------------#
195# old support "make CUST=CISCO"
196ifeq ($(CUST),CISCO)
197BHSM_CUST := CISCO
198CUST_SETTING := ON
199endif
200
201ifeq ($(BHSM_CUST),CISCO)
202
203BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
204         
205include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_cisco.inc
206endif
207
208#-----------------------------------------------------------------------------------#
209# old support "make CUST=CONAX"
210ifeq ($(CUST),CONAX)
211BHSM_CUST := CONAX
212CUST_SETTING := ON
213endif
214
215ifeq ($(BHSM_CUST),CONAX)
216
217BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
218         
219include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_conax.inc
220endif
221
222
223#-----------------------------------------------------------------------------------#
224# old support "make CUST=IRDETO"
225ifeq ($(CUST),IRDETO)
226BHSM_CUST := IRDETO
227CUST_SETTING := ON
228endif
229
230ifeq ($(BHSM_CUST),IRDETO)
231
232BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
233         
234include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_irdeto.inc
235endif
236
237#-----------------------------------------------------------------------------------#
238# old support "make CUST=MOTOROLA"
239ifeq ($(CUST),MOTOROLA)
240BHSM_CUST := MOTOROLA
241CUST_SETTING := ON
242endif
243
244ifeq ($(BHSM_CUST),MOTOROLA)
245
246BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
247         
248include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_motorola.inc
249endif
250
251#-----------------------------------------------------------------------------------#
252# old support "make CUST=NAGRA"
253ifeq ($(CUST),NAGRA)
254BHSM_CUST := NAGRA
255CUST_SETTING := ON
256endif
257
258ifeq ($(BHSM_CUST),NAGRA)
259
260BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
261         
262include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_nagra.inc
263endif
264
265#-----------------------------------------------------------------------------------#
266# old support "make CUST=NDSDSS"
267ifeq ($(CUST),NDSDSS)
268BHSM_CUST := NDSDSS
269CUST_SETTING := ON
270endif
271
272ifeq ($(BHSM_CUST),NDSDSS)
273
274BHSM_CUST_DIR := $(shell awk 'BEGIN{print tolower("$(BHSM_CUST)")}')
275         
276include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_ndsdss.inc
277endif
278
279
280#-----------------------------------------------------------------------------------#
281# old support "make CUST=ALL"
282ifeq ($(CUST),ALL)
283BHSM_CUST := ALL
284CUST_SETTING := ON
285endif
286
287ifeq ($(BHSM_CUST),ALL)
288
289BHSM_CUST_DIR = all
290         
291include $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/bhsm_all.inc
292endif
293
294
295#-----------------------------------------------------------------------------------#
296ifeq ($(CUST),GENERIC3A)
297BHSM_CUST := GENERIC3A
298CUST_SETTING := ON
299endif
300ifeq ($(BHSM_CUST),GENERIC3A)
301GREAT_GENERIC=true
302# always
303BHSM_CUST_DIR = generic3A
304endif
305
306##
307## CUST=GENERIC3B
308##
309
310ifeq ($(CUST),GENERIC3B)
311BHSM_CUST := GENERIC3B
312CUST_SETTING := ON
313endif
314ifeq ($(BHSM_CUST),GENERIC3B)
315GREAT_GENERIC=true
316# always
317BHSM_CUST_DIR = generic3B
318endif
319
320
321#-----------------------------------------------------------------------------------#         
322# Default BHSM_CUST to GENERIC3A,   
323#               make without touch of BHSM_CUST
324#               make CUST=X,  make BHSM_CUST=X,   X is anything but defined
325
326ifeq ($(CUST_SETTING),OFF)
327CUST := GENERIC3A
328BHSM_CUST := GENERIC3A
329GREAT_GENERIC=true
330#$(warning  ..........HSM PI built with BHSM_CUST= $(BHSM_CUST) )
331# always
332BHSM_CUST_DIR = generic3A
333endif
334
335ifeq ($(GREAT_GENERIC),true)
336# this line has no effect if make BHSM_CUST=G :            BHSM_CUST := generic
337
338# not used here, for testApp build
339BHSM_CUST_GENERIC=1
340
341BHSM_DEFINES += BSP_GENERIC
342
343# 3/8/07, looks the platform or magnum does not add this definition
344#CFLAGS += -DBSP_GENERIC
345
346
347
348###Region_Verification support in Generic Mode, there is an option to add the Region_Verification or not
349ifeq ($(BHSM_REGIONVERIFY),ON)
350BHSM_REGIONVERIFY_MK=1
351endif
352
353ifeq ($(BHSM_REGIONVERIFY),OFF)
354BHSM_REGIONVERIFY_MK=0
355endif
356         
357ifeq ($(BHSM_REGIONVERIFY_MK),1)
358BHSM_REG_VERIFY_FEATURE=1
359
360#$(warning  ..........Region Verification Feature is built in with BHSM_REGIONVERIFY_MK= $(BHSM_REGIONVERIFY_MK) )
361         
362BHSM_INCLUDES +=        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/region_verify \
363                        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/region_verify/aegis
364       
365BHSM_SOURCES +=         $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/region_verify/bhsm_verify_reg.c
366
367endif
368         
369endif
370
371
372
373
374## you can turn it ON for any chip, with 'make BHSM_IPTV=ON', even for any chip
375ifeq ($(BHSM_IPTV),ON)
376BHSM_IPTV_MK=1
377endif
378
379## you can turn it OFF for any chip, with 'make BHSM_IPTV=OFF', even any chip
380ifeq ($(BHSM_IPTV),OFF)
381BHSM_IPTV_MK=0
382endif
383         
384ifeq ($(BHSM_IPTV_MK),1)
385#CFLAGS += -DBHSM_IPTV_CODE=1
386BHSM_DEFINES += BHSM_IPTV_CODE=1
387# $(warning  ..........IPTV Feature is built in with BHSM_IPTV_MK= $(BHSM_IPTV_MK) )
388endif
389
390
391
392#-----------------------------------------------------------------------------------#
393###  BSECK  support
394
395
396## you can turn it ON for any chip, with 'make BHSM_BSECK=ON', even for any chip
397ifeq ($(BHSM_BSECK),ON)
398BHSM_BSECK_MK=1
399endif
400
401## you can turn it OFF for any chip, with 'make BHSM_BSECK=OFF', even any chip
402ifeq ($(BHSM_BSECK),OFF)
403BHSM_BSECK_MK=0
404endif
405         
406ifeq ($(BHSM_BSECK_MK),1)
407#CFLAGS += -DBHSM_BSECK_CODE=1
408BHSM_DEFINES += BHSM_BSECK_CODE=1
409#$(warning  ..........BSECK Feature is built in with BHSM_BSECK_MK= $(BHSM_BSECK_MK) )
410endif
411
412#-----------------------------------------------------------------------------------#
413###  PI split, to hide certain security related PIs in a separate files
414
415
416ifeq ($(BHSM_KEYLADDER),ON)
417BHSM_SECURE_KEYLADDER_MK=1
418endif
419
420ifeq ($(BHSM_KEYLADDER),OFF)
421BHSM_SECURE_KEYLADDER_MK=0
422endif
423         
424ifeq ($(BHSM_SECURE_KEYLADDER_MK),1)
425#CFLAGS += -DBHSM_SECURE_PI_SUPPORT_KEYLADDER=1
426BHSM_DEFINES += BHSM_SECURE_PI_SUPPORT_KEYLADDER=1
427#$(warning  ..........Secure Keyladder Feature is built in with BHSM_SECURE_KEYLADDER_MK= $(BHSM_SECURE_KEYLADDER_MK) )
428else
429#CFLAGS += -DBHSM_SECURE_PI_SUPPORT_KEYLADDER=0
430BHSM_DEFINES += BHSM_SECURE_PI_SUPPORT_KEYLADDER=0
431endif
432
433#-----------------------------------------------------------------------------------#
434
435##--MS DRM Support--##
436ifeq ($(MSDRM_PD_SUPPORT),y)
437BHSM_DEFINES += MS_DRM
438endif
439
440ifeq ($(BHSM_MISC),ON)
441BHSM_SECURE_MISC_MK=1
442endif
443
444ifeq ($(BHSM_MISC),OFF)
445BHSM_SECURE_MISC_MK=0
446endif
447         
448ifeq ($(BHSM_SECURE_MISC_MK),1)
449#CFLAGS +=  -DBHSM_SECURE_PI_SUPPORT_MISC=1
450BHSM_DEFINES += BHSM_SECURE_PI_SUPPORT_MISC=1
451#$(warning  ..........Secure Misc Feature is built in with BHSM_SECURE_MISC_MK= $(BHSM_SECURE_MISC_MK) )
452else
453#CFLAGS +=  -DBHSM_SECURE_PI_SUPPORT_MISC=0
454BHSM_DEFINES += BHSM_SECURE_PI_SUPPORT_MISC=0
455endif
456
457ifeq ($(BHSM_PWR_MGMT),ON)
458BHSM_PWRMGMT_MK=1
459endif
460
461ifeq ($(BHSM_PWR_MGMT),OFF)
462BHSM_PWRMGMT_MK=0
463endif
464         
465ifeq ($(BHSM_PWRMGMT_MK),1)
466#CFLAGS +=  -DBHSM_PWRMGMT_SUPPORT=1
467BHSM_DEFINES += BHSM_PWRMGMT_SUPPORT=1
468#$(warning  ..........Power Management Feature is built in with BHSM_PWRMGMT_MK= $(BHSM_PWRMGMT_MK) )
469else
470#CFLAGS +=  -DBHSM_PWRMGMT_SUPPORT=0
471BHSM_DEFINES += BHSM_PWRMGMT_SUPPORT=0
472endif
473
474
475#-----------------------------------------------------------------------------------#
476ifeq ($(BHSM_OTPMSP),ON)
477BHSM_SECURE_OTPMSP_MK=1
478endif
479
480ifeq ($(BHSM_OTPMSP),OFF)
481BHSM_SECURE_OTPMSP_MK=0
482endif
483         
484ifeq ($(BHSM_SECURE_OTPMSP_MK),1)
485#CFLAGS +=  -DBHSM_SECURE_PI_SUPPORT_OTPMSP=1
486BHSM_DEFINES += BHSM_SECURE_PI_SUPPORT_OTPMSP=1
487#$(warning  ..........Secure OTP_MSP Feature is built in with BHSM_SECURE_OTPMSP_MK= $(BHSM_SECURE_OTPMSP_MK) )
488else
489#CFLAGS +=  -DBHSM_SECURE_PI_SUPPORT_OTPMSP=0
490BHSM_DEFINES += BHSM_SECURE_PI_SUPPORT_OTPMSP=0
491endif
492
493# Secure RSA Functions
494ifeq ($(BHSM_SECURE_RSA),ON)
495BHSM_SECURE_RSA_MK=1
496endif
497
498ifeq ($(BHSM_SECURE_RSA),OFF)
499BHSM_SECURE_RSA_MK=0
500endif
501         
502ifeq ($(BHSM_SECURE_RSA_MK),1)
503BHSM_SECURE_RSA_FEATURE=1
504
505#$(warning  ..........BHSM SECURE_RSA Feature is built in with BHSM_SECURE_RSA_MK= $(BHSM_SECURE_RSA_MK) )
506         
507BHSM_INCLUDES +=        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/secure_rsa \
508                        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/secure_rsa/aegis
509       
510BHSM_SOURCES +=         $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/secure_rsa/bhsm_secure_rsa.c
511
512endif
513
514# Secure Access Functions
515ifeq ($(BHSM_SECURE_ACCESS),ON)
516BHSM_SECURE_ACCESS_MK=1
517endif
518
519ifeq ($(BHSM_SECURE_ACCESS),OFF)
520BHSM_SECURE_ACCESS_MK=0
521endif
522         
523ifeq ($(BHSM_SECURE_ACCESS_MK),1)
524BHSM_SECURE_ACCESS_FEATURE=1
525
526#$(warning  ..........BHSM SECURE_ACCESS Feature is built in with BHSM_SECURE_ACCESS_MK= $(BHSM_SECURE_ACCESS_MK) )
527         
528BHSM_INCLUDES +=        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/secure_access \
529                        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/secure_access/aegis
530       
531BHSM_SOURCES +=         $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/secure_access/bhsm_secure_access.c
532
533endif
534
535# IP Licensing Functions
536ifeq ($(BHSM_IP_LICENSING),ON)
537BHSM_IP_LICENSING_MK=1
538endif
539
540ifeq ($(BHSM_IP_LICENSING),OFF)
541BHSM_IP_LICENSING_MK=0
542endif
543         
544ifeq ($(BHSM_IP_LICENSING_MK),1)
545BHSM_IP_LICENSING_FEATURE=1
546
547#$(warning  ..........BHSM IP_LICENSING Feature is built in with BHSM_IP_LICENSING_MK= $(BHSM_IP_LICENSING_MK) )
548         
549BHSM_INCLUDES +=        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/ip_licensing \
550                        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/ip_licensing/aegis
551       
552BHSM_SOURCES +=         $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/ip_licensing/bhsm_ip_licensing.c
553
554endif
555# Debug_RdWr feature
556ifeq ($(BHSM_DEBUG_RD_WR),ON)
557BHSM_DEBUG_RD_WR_MK=1
558endif
559
560ifeq ($(BHSM_DEBUG_RD_WR),OFF)
561BHSM_DEBUG_RD_WR_MK=0
562endif
563
564ifeq ($(BHSM_DEBUG_RD_WR_MK),1)
565BHSM_DEBUG_RD_WR_FEATURE=1
566
567#$(warning  ..........BHSM DEBUG_RD_WR Feature is built in with BHSM_DEBUG_RD_WR_MK= $(BHSM_DEBUG_RD_WR_MK) )
568         
569BHSM_INCLUDES +=        $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/brcm_only
570       
571ifneq ($(HSM_SOURCE_AVAILABLE),n)
572BHSM_SOURCES +=         $(MAGNUM)/portinginterface/hsm/${BCHP_CHIP}/${BCHP_VER_LOWER}/brcm_only/bhsm_debug_rdwr.c
573endif
574
575endif
576
577#######################################################################
578
579BHSM_KEY_LADDER_FEATURE=1
580
581BHSM_OTPMSP_FEATURE=1
582
583
584#######################################################################
585
586# Module Includes
587BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/common
588
589
590BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/common/aegis
591
592ifdef BHSM_KEY_LADDER_FEATURE
593BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/keyladder
594ifneq ($(HSM_SOURCE_AVAILABLE),n)
595BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/keyladder/bhsm_keyladder.c
596endif
597endif
598
599# automatically pick up the customer specific shared header files, cust_x or cust_generic
600BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/cust_$(BHSM_CUST_DIR)
601BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/cust_$(BHSM_CUST_DIR)/aegis
602BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/user_misc_cmd
603
604# Module Sources
605ifneq ($(HSM_SOURCE_AVAILABLE),n)
606BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/common/bhsm.c
607BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/common/bhsm_priv.c
608BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/user_misc_cmd/bhsm_misc.c
609BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/user_misc_cmd/bhsm_user_cmds.c
610endif
611ifeq ($(BHSM_SECURE_OTPMSP_MK),1)
612ifdef BHSM_OTPMSP_FEATURE       
613BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/otpmsp
614BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/otpmsp/aegis
615ifneq ($(HSM_SOURCE_AVAILABLE),n)
616BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/otpmsp/bhsm_otpmsp.c
617endif
618endif
619endif
620
621# Extended options
622
623ifeq ($(BHSM_IPTV_MK),1)
624BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/iptv
625ifneq ($(HSM_SOURCE_AVAILABLE),n)
626BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/iptv/bhsm_iptv.c
627endif
628#CFLAGS += -DBHSM_IPTV=1 -DBSP_MSIPTV
629BHSM_DEFINES += BHSM_IPTV=1
630BHSM_DEFINES += BSP_MSIPTV
631endif
632
633# IMS144828: Add BHSM_IPTV to zero to fix compiler warnings
634ifeq ($(BHSM_IPTV_MK),0)
635#CFLAGS += -DBHSM_IPTV=0
636BHSM_DEFINES += BHSM_IPTV=0
637endif
638# IMS144828: end
639
640ifeq ($(BHSM_BSECK_MK),1)
641BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/region_verify
642BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/region_verify/aegis
643ifneq ($(HSM_SOURCE_AVAILABLE),n)
644BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/region_verify/bhsm_bseck.c
645endif
646#CFLAGS += -DBSP_DOWNLOAD_CODE=1
647BHSM_DEFINES += BSP_DOWNLOAD_CODE=1
648endif
649
650ifeq ($(BHSM_SECURE_KEYLADDER_MK),1)
651ifneq ($(HSM_SOURCE_AVAILABLE),n)
652BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/keyladder/bhsm_keyladder_enc.c
653endif
654endif
655
656
657ifeq ($(BHSM_PWRMGMT_MK),1)
658ifneq ($(HSM_SOURCE_AVAILABLE),n)
659BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/power_management/bhsm_pwr_mgmt.c
660endif
661BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/power_management
662endif
663
664ifeq ($(BHSM_SECURE_MISC_MK),1)
665ifneq ($(HSM_SOURCE_AVAILABLE),n)
666BHSM_SOURCES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/user_misc_cmd/bhsm_misc_enc.c
667endif
668BHSM_INCLUDES += $(MAGNUM)/portinginterface/hsm/$(BCHP_CHIP)/$(BCHP_VER_LOWER)/user_misc_cmd
669endif
Note: See TracBrowser for help on using the repository browser.