| 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: api.mak $ |
|---|
| 11 | # $brcm_Revision: 78 $ |
|---|
| 12 | # $brcm_Date: 1/21/10 5:36p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # $brcm_Log: /BSEAV/api/include/api.mak $ |
|---|
| 19 | # |
|---|
| 20 | # 78 1/21/10 5:36p mphillip |
|---|
| 21 | # SW7420-553: Add platform for 93380vms |
|---|
| 22 | # |
|---|
| 23 | # 77 1/19/10 6:50p mphillip |
|---|
| 24 | # SW7420-541: Rename 97420dvr2 to 97420 |
|---|
| 25 | # |
|---|
| 26 | # 76 12/11/09 4:57p mphillip |
|---|
| 27 | # SW7550-112: Merge 7550 changes to main branch |
|---|
| 28 | # |
|---|
| 29 | # Refsw_7550/4 12/11/09 2:24p rjain |
|---|
| 30 | # SW7550-112: Merging LATEST FROM main branch. |
|---|
| 31 | # |
|---|
| 32 | # Refsw_7550/3 11/5/09 11:25a nitinb |
|---|
| 33 | # sw7550-64: Initial brutus build for 7550 |
|---|
| 34 | # |
|---|
| 35 | # 75 12/10/09 10:53a jgarrett |
|---|
| 36 | # SW7468-6: Adding 97468 |
|---|
| 37 | # |
|---|
| 38 | # 74 11/5/09 11:32a vsilyaev |
|---|
| 39 | # SW7408-1 : Add 7408 support |
|---|
| 40 | # |
|---|
| 41 | # SW7408-1/1 11/5/09 10:50a gmohile |
|---|
| 42 | # SW7408-1 : Add 7408 support |
|---|
| 43 | # |
|---|
| 44 | # 73 11/3/09 6:58p vsilyaev |
|---|
| 45 | # SW7420-331: Rename 97410c to 97410 |
|---|
| 46 | # |
|---|
| 47 | # 72 9/24/09 12:18p jgarrett |
|---|
| 48 | # SW7125-28: Merge to main branch |
|---|
| 49 | # |
|---|
| 50 | # 71 9/16/09 9:02a vsilyaev |
|---|
| 51 | # SW7420-331: Added support for 97410c platform |
|---|
| 52 | # |
|---|
| 53 | # PR55545/1 8/20/09 7:20p mward |
|---|
| 54 | # PR55545: Adding 7125 platforms. |
|---|
| 55 | # |
|---|
| 56 | # 70 8/6/09 11:59a jgarrett |
|---|
| 57 | # PR 55232: Adding 7340/7342 support |
|---|
| 58 | # |
|---|
| 59 | # 69 8/5/09 6:10p vsilyaev |
|---|
| 60 | # PR53773: Remove bcrypt dependency for DTCP/IP |
|---|
| 61 | # |
|---|
| 62 | # PR53773/2 8/5/09 6:02p lwhite |
|---|
| 63 | # PR53773: Remove bcrypt dependency for DTCP/IP |
|---|
| 64 | # |
|---|
| 65 | # 68 6/24/09 2:58p vsilyaev |
|---|
| 66 | # PR53773: Adding DTCP/IP + SSL Compilation support |
|---|
| 67 | # |
|---|
| 68 | # PR53773/1 6/24/09 2:25p ssood |
|---|
| 69 | # PR53773: Adding DTCP/IP + SSL Compilation support |
|---|
| 70 | # |
|---|
| 71 | # 67 3/26/09 10:56a vsilyaev |
|---|
| 72 | # PR 53611: Use simply expanded variables everywhere where $(shell ...) |
|---|
| 73 | # is used. It prevents evaluation of $(shell ) every where variable is |
|---|
| 74 | # used |
|---|
| 75 | # |
|---|
| 76 | # 66 3/13/09 2:53p vsilyaev |
|---|
| 77 | # PR 53225: Adeed NEXUS_BIN_DIR_SUFFIX and NEXUS_BIN_DIR |
|---|
| 78 | # |
|---|
| 79 | # 65 3/2/09 11:03a jgarrett |
|---|
| 80 | # PR 52599: Adding 97205 |
|---|
| 81 | # |
|---|
| 82 | # 64 2/4/09 10:38a jrubio |
|---|
| 83 | # PR51629: add 7336 support |
|---|
| 84 | # |
|---|
| 85 | # 63 12/24/08 12:39p jgarrett |
|---|
| 86 | # PR 50703: Changes for 7420 bringup |
|---|
| 87 | # |
|---|
| 88 | # 62 12/19/08 7:48p vsilyaev |
|---|
| 89 | # PR 50567: Added 97466 platform |
|---|
| 90 | # |
|---|
| 91 | # 61 11/6/08 10:29a jgarrett |
|---|
| 92 | # PR 48700: Bumping version number |
|---|
| 93 | # |
|---|
| 94 | # 60 9/29/08 11:56a vsilyaev |
|---|
| 95 | # PR47283: LIVEMEDIA libraries conditionaly included |
|---|
| 96 | # |
|---|
| 97 | # PR47283/1 9/24/08 10:08a lwhite |
|---|
| 98 | # PR47283: LIVEMEDIA libraries conditionaly included |
|---|
| 99 | # |
|---|
| 100 | # 59 7/21/08 3:55p jgarrett |
|---|
| 101 | # PR 42739: Adding IP support libraries for nexus builds |
|---|
| 102 | # |
|---|
| 103 | # 58 6/23/08 5:24p vsilyaev |
|---|
| 104 | # PR 43453: Added 97459 platform |
|---|
| 105 | # |
|---|
| 106 | # 57 6/12/08 10:09a jgarrett |
|---|
| 107 | # PR 42739: Adding nexus IP |
|---|
| 108 | # |
|---|
| 109 | # 56 6/11/08 11:53a jgarrett |
|---|
| 110 | # PR 43489: Adding brutus support for 93549/93556 |
|---|
| 111 | # |
|---|
| 112 | # 55 6/10/08 10:50a jgarrett |
|---|
| 113 | # PR 40352: Setting nexus library options for vxworks |
|---|
| 114 | # |
|---|
| 115 | # 54 5/21/08 2:02p vsilyaev |
|---|
| 116 | # PR 40352: VxWorks uses different extension for libraries |
|---|
| 117 | # |
|---|
| 118 | # 53 5/16/08 2:25p jgarrett |
|---|
| 119 | # PR 42774: Defaulting BUILD_SYSTEM based on nexus |
|---|
| 120 | # |
|---|
| 121 | # 52 3/31/08 6:04p jgarrett |
|---|
| 122 | # PR 40606: Adding oslib |
|---|
| 123 | # |
|---|
| 124 | # 97459_Phase_2.1/1 6/9/08 4:04p anilmm |
|---|
| 125 | # PR43453: Add support for 97459 |
|---|
| 126 | # |
|---|
| 127 | # 51 1/21/08 11:41a jgarrett |
|---|
| 128 | # PR 38808: Fixing typo in nexus top |
|---|
| 129 | # |
|---|
| 130 | # 50 1/18/08 4:54p jgarrett |
|---|
| 131 | # PR 38808: Updating nexus location |
|---|
| 132 | # |
|---|
| 133 | # 49 1/7/08 11:07a jgarrett |
|---|
| 134 | # PR 36068: Adding NEXUS_TOP |
|---|
| 135 | # |
|---|
| 136 | # 48 12/14/07 5:49p vsilyaev |
|---|
| 137 | # PR38078: PR38078: Separate BCM_BOARD_NO and BCM_BOARD for 97108 - |
|---|
| 138 | # handle same as 97118 except for BCM_BOARD_STR. |
|---|
| 139 | # PR38078: Create PLATFORM for 97018, 97018RNG |
|---|
| 140 | # |
|---|
| 141 | # PR38078/2 12/11/07 4:26p mward |
|---|
| 142 | # PR38078: Separate BCM_BOARD_NO and BCM_BOARD for 97108 - handle same |
|---|
| 143 | # as 97118 except for BCM_BOARD_STR. |
|---|
| 144 | # |
|---|
| 145 | # PR38078/1 12/10/07 7:13p mward |
|---|
| 146 | # PR38078: Create PLATFORM for 97018, 97018RNG |
|---|
| 147 | # |
|---|
| 148 | # 47 11/28/07 9:39a jgarrett |
|---|
| 149 | # PR 36068: Adding 3563 |
|---|
| 150 | # |
|---|
| 151 | # 46 11/26/07 1:42p jgarrett |
|---|
| 152 | # PR 37217: Adding 7335 |
|---|
| 153 | # |
|---|
| 154 | # 45 10/19/07 3:38p vsilyaev |
|---|
| 155 | # PR 35015: Added 7325 platform |
|---|
| 156 | # |
|---|
| 157 | # 44 10/16/07 2:33p vsilyaev |
|---|
| 158 | # PR 36068: Added NEXUS platform |
|---|
| 159 | # |
|---|
| 160 | # 43 1/18/07 10:13a vsilyaev |
|---|
| 161 | # PR27129: add 97458A0 platform support |
|---|
| 162 | # |
|---|
| 163 | # 42 11/17/06 10:43a erickson |
|---|
| 164 | # PR25230: move bcmplayer from SetTop/bcmplayer to BSEAV/lib/bcmplayer. |
|---|
| 165 | # Remove SetTop from Brutus/Settop API build. |
|---|
| 166 | # |
|---|
| 167 | # 41 10/31/06 9:15a erickson |
|---|
| 168 | # PR25109: add 7403 and 7405 |
|---|
| 169 | # |
|---|
| 170 | # 40 10/3/06 10:26a gmohile |
|---|
| 171 | # PR 24129: Added support for 7313 |
|---|
| 172 | # |
|---|
| 173 | # 39 9/29/06 4:29p mward |
|---|
| 174 | # PR24604: create PLATFORM for 97118RNG. |
|---|
| 175 | # |
|---|
| 176 | # 38 9/15/06 5:22p mphillip |
|---|
| 177 | # PR24027: set up BSETTOP_LIBS for static builds, too. This causes |
|---|
| 178 | # apps/utilities to be re-linked if libsettop.a has been rebuilt. |
|---|
| 179 | # |
|---|
| 180 | # 37 8/17/06 4:07p katrep |
|---|
| 181 | # PR23114: Get the build going for 97440 |
|---|
| 182 | # |
|---|
| 183 | # 36 6/6/06 3:21p erickson |
|---|
| 184 | # PR21875: removed deprecated BCHP_REV support |
|---|
| 185 | # |
|---|
| 186 | # 35 5/26/06 9:02a mward |
|---|
| 187 | # PR21671: Add support for 7118 chip 97118 board. |
|---|
| 188 | # |
|---|
| 189 | # 34 4/28/06 3:52p dlwin |
|---|
| 190 | # PR 20984: add 97456 platform support |
|---|
| 191 | # |
|---|
| 192 | # 34 4/28/06 3:51p dlwin |
|---|
| 193 | # PR 20984: add 97456 platform support |
|---|
| 194 | # |
|---|
| 195 | # 33 4/20/06 3:15p erickson |
|---|
| 196 | # PR19738: 97435 merge |
|---|
| 197 | # |
|---|
| 198 | # 32 4/7/06 3:50p vsilyaev |
|---|
| 199 | # PR 20680: Added bfile library |
|---|
| 200 | # |
|---|
| 201 | # 31 2/7/06 5:00p erickson |
|---|
| 202 | # PR17108: still need BCHP_REV |
|---|
| 203 | # |
|---|
| 204 | # 30 1/18/06 11:52a rjlewis |
|---|
| 205 | # PR19044: linux vxworks builds case sensitive. |
|---|
| 206 | # |
|---|
| 207 | # 29 1/16/06 11:23a gmullen |
|---|
| 208 | # PR18998: Added 97400 support. |
|---|
| 209 | # |
|---|
| 210 | # 28 12/12/05 7:31p rjlewis |
|---|
| 211 | # PR17651: DOS filenames are case insensitive. |
|---|
| 212 | # |
|---|
| 213 | # 27 11/23/05 5:10p erickson |
|---|
| 214 | # PR18256: added 97455 support |
|---|
| 215 | # |
|---|
| 216 | # 26 10/17/05 2:49p dlwin |
|---|
| 217 | # PR 17651: changes for 7411 D0 |
|---|
| 218 | # |
|---|
| 219 | # 25 10/13/05 4:41p dlwin |
|---|
| 220 | # PR 17328: Merged the change from IP STB to main-branch. |
|---|
| 221 | # |
|---|
| 222 | # 24 9/28/05 5:01p erickson |
|---|
| 223 | # PR17069: distiguish between 97318 and 97318AVC correctly |
|---|
| 224 | # |
|---|
| 225 | # 23 9/26/05 3:43p erickson |
|---|
| 226 | # PR17229: changed default BCHP_VER and added check for 7038 to avoid |
|---|
| 227 | # problems |
|---|
| 228 | # |
|---|
| 229 | # 22 9/15/05 10:55a erickson |
|---|
| 230 | # PR17148: removed unnecessary BCHP_REV_XX define |
|---|
| 231 | # |
|---|
| 232 | # 21 9/14/05 5:06p erickson |
|---|
| 233 | # PR17148: still support BCHP_REV in environment for now |
|---|
| 234 | # |
|---|
| 235 | # 20 9/14/05 2:16p erickson |
|---|
| 236 | # PR17148: replaced BCHP_REV with BCHP_VER, added BCHP_7411_VER where |
|---|
| 237 | # needed, removed unused FAMILY And FLAVOR defines |
|---|
| 238 | # |
|---|
| 239 | # 19 9/7/05 5:06p vsilyaev |
|---|
| 240 | # PR 15377: Merged 7401 changes |
|---|
| 241 | # |
|---|
| 242 | # Refsw_97401_Bringup/2 8/24/05 2:40p vsilyaev |
|---|
| 243 | # Backmerge from /main/ |
|---|
| 244 | # |
|---|
| 245 | # 18 8/5/05 2:46p erickson |
|---|
| 246 | # PR16583: use BUILD_SYSTEM=proxy for proxy builds so that PLATFORM |
|---|
| 247 | # information is available in the proxy layer |
|---|
| 248 | # |
|---|
| 249 | # 17 8/4/05 4:41p erickson |
|---|
| 250 | # PR15139: collected generic build configuration into |
|---|
| 251 | # BSEAV/build/refsw_inc.mak |
|---|
| 252 | # |
|---|
| 253 | # 16 7/18/05 6:14p vsilyaev |
|---|
| 254 | # PR 15377: Refactoring of the board support package |
|---|
| 255 | # |
|---|
| 256 | # Refsw_97401_Bringup/1 7/12/05 1:47a vsilyaev |
|---|
| 257 | # Added support for 97401 |
|---|
| 258 | # |
|---|
| 259 | # 15 4/27/05 7:18p wesleyl |
|---|
| 260 | # PR15072: fix 97318 vxworks build |
|---|
| 261 | # |
|---|
| 262 | # 14 4/27/05 2:33p wesleyl |
|---|
| 263 | # PR15072: Change to use BSETTOP_LDFLAGS insteads of BSETTOP_LIB |
|---|
| 264 | # |
|---|
| 265 | # 13 4/27/05 2:25p wesleyl |
|---|
| 266 | # PR15072:Fixed conditional build for non-97318 platform |
|---|
| 267 | # |
|---|
| 268 | # 12 4/26/05 4:57p erickson |
|---|
| 269 | # PR14830: back out bad vxworks merge |
|---|
| 270 | # |
|---|
| 271 | # 11 4/22/05 2:33p erickson |
|---|
| 272 | # PR14708: allow BCHP_REV env overrides for DOS |
|---|
| 273 | # |
|---|
| 274 | # 10 4/15/05 5:26p haisongw |
|---|
| 275 | # PR14830: VxWorks 7111 DSG/Brutus integration |
|---|
| 276 | # |
|---|
| 277 | # 9 4/9/05 4:37p wesleyl |
|---|
| 278 | # PR3093: Fixed BSETTOP_MAGNUM_CFLAGS for legacy build |
|---|
| 279 | # |
|---|
| 280 | # 8 4/9/05 4:18p wesleyl |
|---|
| 281 | # PR3093: Add VxWorks support for 97318 |
|---|
| 282 | # |
|---|
| 283 | # 7 4/8/05 6:03p vsilyaev |
|---|
| 284 | # PR 14735: Export DEBUG flags as BSETTOP_MAGNUM_CFLAGS. |
|---|
| 285 | # |
|---|
| 286 | # 6 3/24/05 12:54p vsilyaev |
|---|
| 287 | # PR 14593: 93560 support |
|---|
| 288 | # |
|---|
| 289 | # Refsw_93560_Bringup/1 3/10/05 6:53p vsilyaev |
|---|
| 290 | # Added 93560 support |
|---|
| 291 | # |
|---|
| 292 | # 4 2/22/05 2:04p erickson |
|---|
| 293 | # PR14180: no _ between PLATFORM and BCHP_REV in case platform has no |
|---|
| 294 | # BCHP_REV |
|---|
| 295 | # |
|---|
| 296 | # 3 2/22/05 1:52p erickson |
|---|
| 297 | # PR14180: added BCHP_REV to BSETTOP_BIN |
|---|
| 298 | # |
|---|
| 299 | # 2 2/17/05 1:49p erickson |
|---|
| 300 | # PR9497: make defs vxworks-friendly |
|---|
| 301 | # |
|---|
| 302 | # 1 2/7/05 7:04p dlwin |
|---|
| 303 | # Merge down for release 2005_REFSW_MERGETOMAIN: |
|---|
| 304 | # |
|---|
| 305 | ############################################################### |
|---|
| 306 | |
|---|
| 307 | # |
|---|
| 308 | # This file should be included by Makefile's in order |
|---|
| 309 | # to build the Settop API. Before including, you must |
|---|
| 310 | # define PLATFORM and BSEAV. |
|---|
| 311 | # |
|---|
| 312 | # Then use the following: |
|---|
| 313 | # BSETTOP_BIN - location of shared libraries |
|---|
| 314 | # BSETTOP_CFLAGS - compiler flags needed to include Settop API headers |
|---|
| 315 | # BSETTOP_LDFLAGS - linker flags for using the Settop API library |
|---|
| 316 | # BSETTOP_LIBS - shared libraries which must be copied to the target |
|---|
| 317 | # |
|---|
| 318 | |
|---|
| 319 | BSETTOP := ${BSEAV}/api |
|---|
| 320 | MAGNUM := $(BSEAV)/../magnum |
|---|
| 321 | NEXUS_TOP := $(BSEAV)/../nexus |
|---|
| 322 | |
|---|
| 323 | # Get system-specific CFLAGS and LDFLAGS based on SYSTEM, PLATFORM, DEBUG |
|---|
| 324 | include $(BSEAV)/build/refsw_inc.mak |
|---|
| 325 | |
|---|
| 326 | # Guess BUILD_SYSTEM based on existence of nexus directory. |
|---|
| 327 | ifndef BUILD_SYSTEM |
|---|
| 328 | ifeq ($(wildcard $(NEXUS_TOP)),) |
|---|
| 329 | # This is magnum. Leave the variable unset. |
|---|
| 330 | else |
|---|
| 331 | # Nexus code exists. Assume nexus. |
|---|
| 332 | BUILD_SYSTEM := nexus |
|---|
| 333 | endif |
|---|
| 334 | endif |
|---|
| 335 | |
|---|
| 336 | ############################################### |
|---|
| 337 | # |
|---|
| 338 | # Verify PLATFORM and SYSTEM |
|---|
| 339 | # |
|---|
| 340 | |
|---|
| 341 | include $(BSEAV)/build/platforms.mak |
|---|
| 342 | |
|---|
| 343 | .PHONY: check_environment |
|---|
| 344 | check_environment: |
|---|
| 345 | ifndef PLATFORM |
|---|
| 346 | $(error PLATFORM is undefined. Valid platforms are $(PLATFORMS).) |
|---|
| 347 | endif |
|---|
| 348 | ifeq ($(findstring $(PLATFORM),$(PLATFORMS)),) |
|---|
| 349 | $(error PLATFORM is defined to an unknown value. Valid platforms are $(PLATFORMS).) |
|---|
| 350 | endif |
|---|
| 351 | ifndef BSEAV |
|---|
| 352 | $(error BSEAV is undefined. You must define this.) |
|---|
| 353 | endif |
|---|
| 354 | ifeq ($(findstring $(SYSTEM),linux linuxkernel vxworks),) |
|---|
| 355 | $(error SYSTEM is defined to an unknown value $(SYSTEM).) |
|---|
| 356 | endif |
|---|
| 357 | |
|---|
| 358 | ARCH ?= mipsel-uclibc |
|---|
| 359 | BCM_BOARD_NO = $(PLATFORM) |
|---|
| 360 | |
|---|
| 361 | # convert PLATFORM to CHIP |
|---|
| 362 | ifeq ($(PLATFORM),937xx) |
|---|
| 363 | CHIP=venom2 |
|---|
| 364 | # NOTE: This isn't really right, but this is an old platform anyway |
|---|
| 365 | BCM_BOARD_NO=93740 |
|---|
| 366 | endif |
|---|
| 367 | ifeq ($(PLATFORM),97038) |
|---|
| 368 | CHIP=7038 |
|---|
| 369 | endif |
|---|
| 370 | ifeq ($(PLATFORM),93560) |
|---|
| 371 | CHIP=3560 |
|---|
| 372 | endif |
|---|
| 373 | ifeq ($(PLATFORM),93563) |
|---|
| 374 | CHIP=3563 |
|---|
| 375 | endif |
|---|
| 376 | ifeq ($(PLATFORM),93549) |
|---|
| 377 | CHIP=3548 |
|---|
| 378 | endif |
|---|
| 379 | ifeq ($(PLATFORM),93556) |
|---|
| 380 | CHIP=3556 |
|---|
| 381 | endif |
|---|
| 382 | |
|---|
| 383 | ifeq ($(PLATFORM),97018) |
|---|
| 384 | BSETTOP_CFLAGS += -DB_XVD_NO_HD_SUPPORT=1 |
|---|
| 385 | BCM_BOARD_NO=97018 |
|---|
| 386 | CHIP=7118 |
|---|
| 387 | endif |
|---|
| 388 | ifeq ($(PLATFORM),97118) |
|---|
| 389 | CHIP=7118 |
|---|
| 390 | endif |
|---|
| 391 | ifeq ($(PLATFORM),97018RNG) |
|---|
| 392 | CHIP=7118 |
|---|
| 393 | BCM_BOARD_NO=97018 |
|---|
| 394 | BSETTOP_CFLAGS += -DB_XVD_NO_HD_SUPPORT=1 -DRNG_BOARD=1 |
|---|
| 395 | endif |
|---|
| 396 | ifeq ($(PLATFORM),97118RNG) |
|---|
| 397 | CHIP=7118 |
|---|
| 398 | BCM_BOARD_NO=97118 |
|---|
| 399 | BSETTOP_CFLAGS += -DRNG_BOARD=1 |
|---|
| 400 | endif |
|---|
| 401 | ifeq ($(PLATFORM),97125) |
|---|
| 402 | CHIP=7125 |
|---|
| 403 | endif |
|---|
| 404 | ifeq ($(PLATFORM),97025) |
|---|
| 405 | CHIP=7125 |
|---|
| 406 | endif |
|---|
| 407 | ifeq ($(PLATFORM),97468) |
|---|
| 408 | CHIP=7468 |
|---|
| 409 | endif |
|---|
| 410 | ifeq ($(PLATFORM),97208) |
|---|
| 411 | CHIP=7468 |
|---|
| 412 | endif |
|---|
| 413 | ifeq ($(PLATFORM),97119) |
|---|
| 414 | CHIP=7125 |
|---|
| 415 | endif |
|---|
| 416 | ifeq ($(PLATFORM),97019) |
|---|
| 417 | CHIP=7125 |
|---|
| 418 | endif |
|---|
| 419 | ifeq ($(PLATFORM),97116) |
|---|
| 420 | CHIP=7125 |
|---|
| 421 | endif |
|---|
| 422 | ifeq ($(PLATFORM),97420) |
|---|
| 423 | CHIP=7420 |
|---|
| 424 | BCM_BOARD_NO=97420 |
|---|
| 425 | endif |
|---|
| 426 | ifeq ($(PLATFORM),93380vms) |
|---|
| 427 | CHIP=7420 |
|---|
| 428 | BCM_BOARD_NO=97420 |
|---|
| 429 | endif |
|---|
| 430 | ifeq ($(PLATFORM),97410) |
|---|
| 431 | CHIP=7420 |
|---|
| 432 | BCM_BOARD_NO=97410 |
|---|
| 433 | endif |
|---|
| 434 | |
|---|
| 435 | ifeq ($(PLATFORM),97395) |
|---|
| 436 | CHIP=7038 |
|---|
| 437 | endif |
|---|
| 438 | ifeq ($(PLATFORM),97398) |
|---|
| 439 | CHIP=7038 |
|---|
| 440 | endif |
|---|
| 441 | ifeq ($(PLATFORM),97400) |
|---|
| 442 | CHIP=7400 |
|---|
| 443 | endif |
|---|
| 444 | ifeq ($(PLATFORM),97456) |
|---|
| 445 | CHIP=7400 |
|---|
| 446 | endif |
|---|
| 447 | ifeq ($(PLATFORM),97401) |
|---|
| 448 | CHIP=7401 |
|---|
| 449 | endif |
|---|
| 450 | ifeq ($(PLATFORM),97403) |
|---|
| 451 | CHIP=7403 |
|---|
| 452 | endif |
|---|
| 453 | ifeq ($(PLATFORM),97405) |
|---|
| 454 | CHIP=7405 |
|---|
| 455 | endif |
|---|
| 456 | ifeq ($(PLATFORM),97408) |
|---|
| 457 | CHIP=7408 |
|---|
| 458 | endif |
|---|
| 459 | ifeq ($(PLATFORM),97550) |
|---|
| 460 | CHIP=7550 |
|---|
| 461 | endif |
|---|
| 462 | |
|---|
| 463 | |
|---|
| 464 | ifeq ($(PLATFORM),97466) |
|---|
| 465 | CHIP=7405 |
|---|
| 466 | endif |
|---|
| 467 | ifeq ($(PLATFORM),97205) |
|---|
| 468 | CHIP=7405 |
|---|
| 469 | endif |
|---|
| 470 | ifeq ($(PLATFORM),97459) |
|---|
| 471 | CHIP=7405 |
|---|
| 472 | endif |
|---|
| 473 | |
|---|
| 474 | ifeq ($(PLATFORM),97325) |
|---|
| 475 | CHIP=7325 |
|---|
| 476 | endif |
|---|
| 477 | ifeq ($(PLATFORM),97335) |
|---|
| 478 | CHIP=7335 |
|---|
| 479 | endif |
|---|
| 480 | ifeq ($(PLATFORM),97336) |
|---|
| 481 | CHIP=7336 |
|---|
| 482 | endif |
|---|
| 483 | |
|---|
| 484 | ifeq ($(PLATFORM),97342) |
|---|
| 485 | CHIP=7342 |
|---|
| 486 | endif |
|---|
| 487 | ifeq ($(PLATFORM),97340) |
|---|
| 488 | CHIP=7340 |
|---|
| 489 | endif |
|---|
| 490 | |
|---|
| 491 | ifeq ($(PLATFORM),97440) |
|---|
| 492 | CHIP=7440 |
|---|
| 493 | endif |
|---|
| 494 | |
|---|
| 495 | ifeq ($(PLATFORM),97455) |
|---|
| 496 | CHIP=7401 |
|---|
| 497 | endif |
|---|
| 498 | |
|---|
| 499 | ifeq ($(PLATFORM),97458) |
|---|
| 500 | CHIP=7403 |
|---|
| 501 | endif |
|---|
| 502 | |
|---|
| 503 | ifeq ($(PLATFORM),97435) |
|---|
| 504 | CHIP=7401 |
|---|
| 505 | endif |
|---|
| 506 | |
|---|
| 507 | ifeq ($(PLATFORM),97110) |
|---|
| 508 | CHIP=7110 |
|---|
| 509 | endif |
|---|
| 510 | ifeq ($(PLATFORM),97111) |
|---|
| 511 | CHIP=7110 |
|---|
| 512 | BCM_BOARD_NO=97110 |
|---|
| 513 | endif |
|---|
| 514 | ifeq ($(PLATFORM),97112) |
|---|
| 515 | # For the 7112, everything is the same as the 7115, except hardwareinterface |
|---|
| 516 | CHIP=7115 |
|---|
| 517 | endif |
|---|
| 518 | ifeq ($(PLATFORM),97115) |
|---|
| 519 | CHIP=7115 |
|---|
| 520 | endif |
|---|
| 521 | ifeq ($(PLATFORM),97312) |
|---|
| 522 | CHIP=7312 |
|---|
| 523 | endif |
|---|
| 524 | ifeq ($(PLATFORM),97313) |
|---|
| 525 | CHIP=7313 |
|---|
| 526 | endif |
|---|
| 527 | ifeq ($(PLATFORM),97314) |
|---|
| 528 | # For the 7314, many things are like a 7315, but some are 7317 and some are 7314 |
|---|
| 529 | CHIP=7315 |
|---|
| 530 | BCM_CHIP_FLAVOR = 7314 |
|---|
| 531 | endif |
|---|
| 532 | ifeq ($(PLATFORM),97315) |
|---|
| 533 | CHIP=7315 |
|---|
| 534 | endif |
|---|
| 535 | ifeq ($(PLATFORM),BBX) |
|---|
| 536 | CHIP=7315 |
|---|
| 537 | endif |
|---|
| 538 | ifeq ($(PLATFORM),97317) |
|---|
| 539 | # For the 7317, everything is the same as the 7315, except hardwareinterface |
|---|
| 540 | # and portinginterface/tm |
|---|
| 541 | CHIP=7315 |
|---|
| 542 | BCM_CHIP_FLAVOR = 7317 |
|---|
| 543 | endif |
|---|
| 544 | ifeq ($(PLATFORM),97318) |
|---|
| 545 | CHIP=7318 |
|---|
| 546 | endif |
|---|
| 547 | ifeq ($(PLATFORM),97318AVC) |
|---|
| 548 | CHIP=7318 |
|---|
| 549 | BCM_BOARD_NO=97318 |
|---|
| 550 | CONFIG_XVD_SUPPORT=y |
|---|
| 551 | endif |
|---|
| 552 | ifeq ($(PLATFORM),97319) |
|---|
| 553 | # For the 7319, everything is the same as the 7320, except hardwareinterface |
|---|
| 554 | CHIP=7320 |
|---|
| 555 | endif |
|---|
| 556 | ifeq ($(PLATFORM),97320) |
|---|
| 557 | CHIP=7320 |
|---|
| 558 | endif |
|---|
| 559 | ifeq ($(PLATFORM),97327) |
|---|
| 560 | CHIP=7327 |
|---|
| 561 | endif |
|---|
| 562 | ifeq ($(PLATFORM),97328) |
|---|
| 563 | CHIP=7328 |
|---|
| 564 | endif |
|---|
| 565 | ifeq ($(PLATFORM),97329) |
|---|
| 566 | CHIP=7329 |
|---|
| 567 | endif |
|---|
| 568 | |
|---|
| 569 | # Default the chip revision to something vanilla. |
|---|
| 570 | ifeq ($(BCHP_VER),) |
|---|
| 571 | BCHP_VER = A0 |
|---|
| 572 | endif |
|---|
| 573 | |
|---|
| 574 | ifeq (${SYSTEM},vxworks) |
|---|
| 575 | ifneq ($(OSTYPE),linux) |
|---|
| 576 | # DOS is case insensitive |
|---|
| 577 | PLATFORM_PATH = $(BCHP_VER) |
|---|
| 578 | else |
|---|
| 579 | # VxWorks on linux is case sensitive |
|---|
| 580 | PLATFORM_PATH := $(shell awk 'BEGIN{print tolower("$(BCHP_VER)")}') |
|---|
| 581 | endif |
|---|
| 582 | else |
|---|
| 583 | PLATFORM_PATH := $(shell awk 'BEGIN{print tolower("$(BCHP_VER)")}') |
|---|
| 584 | endif |
|---|
| 585 | |
|---|
| 586 | # The location of the generated binaries |
|---|
| 587 | ifneq ($(findstring $(BUILD_SYSTEM),proxy nexus),) |
|---|
| 588 | BSETTOP_BIN =${BSETTOP}/lib/$(BUILD_SYSTEM)${PLATFORM}$(BCHP_VER)_${ARCH}.$(DEBUG_SUFFIX) |
|---|
| 589 | else |
|---|
| 590 | BSETTOP_BIN =${BSETTOP}/lib/${SYSTEM}${PLATFORM}$(BCHP_VER)_${ARCH}.$(DEBUG_SUFFIX) |
|---|
| 591 | endif |
|---|
| 592 | |
|---|
| 593 | # SYSTEM-specific include must precede general include dir |
|---|
| 594 | BSETTOP_CFLAGS += -I$(BSETTOP)/include/$(SYSTEM) |
|---|
| 595 | BSETTOP_CFLAGS += -I${BSETTOP}/include -I${BSEAV}/lib/bfile |
|---|
| 596 | |
|---|
| 597 | # Required Magnum chip definitions based on PLATFORM |
|---|
| 598 | BSETTOP_CFLAGS += -DBCHP_CHIP=${CHIP} -DBCHP_VER=BCHP_VER_$(BCHP_VER) |
|---|
| 599 | # Settop API board definitions based on PLATFORM |
|---|
| 600 | ifeq ($(BCM_BOARD_NO),97018) |
|---|
| 601 | BSETTOP_CFLAGS += -DBCM_BOARD=97118 |
|---|
| 602 | else |
|---|
| 603 | BSETTOP_CFLAGS += -DBCM_BOARD=$(BCM_BOARD_NO) |
|---|
| 604 | endif |
|---|
| 605 | # Magnum secondary chip definition (the trailing x is needed to distinguish 97318 and 97318AVC) |
|---|
| 606 | ifeq ($(findstring $(PLATFORM)x,97398x 97318AVCx 93560x),$(PLATFORM)x) |
|---|
| 607 | ifeq ($(BCHP_7411_VER),) |
|---|
| 608 | BCHP_7411_VER=C0 |
|---|
| 609 | endif |
|---|
| 610 | ifeq (${SYSTEM},vxworks) |
|---|
| 611 | ifneq ($(OSTYPE),linux) |
|---|
| 612 | # DOS is case insensitive |
|---|
| 613 | BCHP_7411_VER_LOWER = $(BCHP_7411_VER) |
|---|
| 614 | else |
|---|
| 615 | # VxWorks on linux is case sensitive |
|---|
| 616 | BCHP_7411_VER_LOWER := $(shell awk 'BEGIN{print tolower("$(BCHP_7411_VER)")}') |
|---|
| 617 | endif |
|---|
| 618 | else |
|---|
| 619 | BCHP_7411_VER_LOWER := $(shell awk 'BEGIN{print tolower("$(BCHP_7411_VER)")}') |
|---|
| 620 | endif |
|---|
| 621 | BSETTOP_CFLAGS += -DBCHP_7411_VER=BCHP_VER_$(BCHP_7411_VER) |
|---|
| 622 | endif |
|---|
| 623 | |
|---|
| 624 | # add definitions from refsw_inc.mak |
|---|
| 625 | BSETTOP_CFLAGS += $(B_REFSW_CFLAGS) |
|---|
| 626 | BSETTOP_LDFLAGS += $(B_REFSW_LDFLAGS) |
|---|
| 627 | CFLAGS_SHARED = $(B_REFSW_CFLAGS_SHARED) |
|---|
| 628 | |
|---|
| 629 | # |
|---|
| 630 | # BSETTOP_LIBS are binaries which must be installed to the target. |
|---|
| 631 | # If you are doing a static build, BSETTOP_LIBS is not needed. |
|---|
| 632 | # |
|---|
| 633 | ifeq (${SYSTEM},vxworks) |
|---|
| 634 | |
|---|
| 635 | BLIB_EXT=out |
|---|
| 636 | BSETTOP_LDFLAGS += -nostdlib -r -Wl,-EB -Wl,-X |
|---|
| 637 | ifeq ($(SHAREDLIB),no) |
|---|
| 638 | BSETTOP_LDFLAGS += -L${BSEAV}/vxworks/driver/build/${PLATFORM}/${ARCH}.$(DEBUG_SUFFIX) |
|---|
| 639 | BSETTOP_LDFLAGS += -L${BSETTOP_BIN} -lsettop |
|---|
| 640 | ifeq ($(PLATFORM),97318) |
|---|
| 641 | BSETTOP_LDFLAGS += -lbcm97318 |
|---|
| 642 | endif |
|---|
| 643 | ifeq ($(PLATFORM),97318AVC) |
|---|
| 644 | BSETTOP_LDFLAGS += -lbcm97318AVC |
|---|
| 645 | endif |
|---|
| 646 | endif |
|---|
| 647 | |
|---|
| 648 | else |
|---|
| 649 | |
|---|
| 650 | ifeq ($(SHAREDLIB),no) |
|---|
| 651 | BLIB_EXT=a |
|---|
| 652 | BSETTOP_LDFLAGS += ${BSETTOP_BIN}/libsettop.${BLIB_EXT} -lm -lpthread |
|---|
| 653 | else |
|---|
| 654 | BLIB_EXT=so |
|---|
| 655 | BSETTOP_LDFLAGS = -L${BSETTOP_BIN} -lsettop -lm -lpthread |
|---|
| 656 | endif |
|---|
| 657 | |
|---|
| 658 | endif |
|---|
| 659 | |
|---|
| 660 | BSETTOP_LIBS = ${BSETTOP_BIN}/libsettop.${BLIB_EXT} |
|---|
| 661 | |
|---|
| 662 | # NEXUS_BIN_DIR can't be used in the api.mak since it doesn't include platform_app.inc |
|---|
| 663 | ifeq ($(BUILD_SYSTEM),nexus) |
|---|
| 664 | ifeq ($(SHAREDLIB),no) |
|---|
| 665 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 666 | BSETTOP_LDFLAGS += $(NEXUS_TOP)/bin${NEXUS_BIN_DIR_SUFFIX}/libb_playback_ip.${BLIB_EXT} |
|---|
| 667 | endif |
|---|
| 668 | ifeq ($(DTCP_IP_SUPPORT),y) |
|---|
| 669 | BSETTOP_LDFLAGS += $(NEXUS_TOP)/bin${NEXUS_BIN_DIR_SUFFIX}/libb_dtcp_ip.${BLIB_EXT} |
|---|
| 670 | endif |
|---|
| 671 | BSETTOP_LDFLAGS += $(NEXUS_TOP)/bin${NEXUS_BIN_DIR_SUFFIX}/libnexus.${BLIB_EXT} $(NEXUS_TOP)/bin/libb_os.${BLIB_EXT} |
|---|
| 672 | else |
|---|
| 673 | ifneq (${SYSTEM},vxworks) |
|---|
| 674 | BSETTOP_LDFLAGS += -L$(NEXUS_TOP)/bin${NEXUS_BIN_DIR_SUFFIX} -lnexus -lb_os |
|---|
| 675 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 676 | BSETTOP_LDFLAGS += -lb_playback_ip |
|---|
| 677 | endif |
|---|
| 678 | ifeq ($(DTCP_IP_SUPPORT),y) |
|---|
| 679 | BSETTOP_LDFLAGS += -lb_dtcp_ip |
|---|
| 680 | endif |
|---|
| 681 | ifeq ($(SOFT_GFX_SUPPORT),y) |
|---|
| 682 | BSETTOP_LDFLAGS += -lb_softgfx |
|---|
| 683 | endif #SOFT_GFX_SUPPORT |
|---|
| 684 | endif |
|---|
| 685 | endif |
|---|
| 686 | BSETTOP_LIBS += ${NEXUS_TOP}/bin${NEXUS_BIN_DIR_SUFFIX}/libnexus.${BLIB_EXT} ${NEXUS_TOP}/bin${NEXUS_BIN_DIR_SUFFIX}/libb_os.${BLIB_EXT} |
|---|
| 687 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 688 | BSETTOP_LIBS += ${NEXUS_TOP}/bin${NEXUS_BIN_DIR_SUFFIX}/libb_playback_ip.${BLIB_EXT} |
|---|
| 689 | endif |
|---|
| 690 | ifeq ($(DTCP_IP_SUPPORT),y) |
|---|
| 691 | BSETTOP_LIBS += ${NEXUS_TOP}/bin${NEXUS_BIN_DIR_SUFFIX}/libb_dtcp_ip.${BLIB_EXT} |
|---|
| 692 | endif |
|---|
| 693 | ifeq ($(SOFT_GFX_SUPPORT),y) |
|---|
| 694 | BSETTOP_LIBS += ${NEXUS_TOP}/bin${NEXUS_BIN_DIR_SUFFIX}/libb_softgfx.${BLIB_EXT} |
|---|
| 695 | endif #SOFT_GFX_SUPPORT |
|---|
| 696 | endif |
|---|
| 697 | |
|---|
| 698 | ifeq ($(BUILD_SYSTEM),nexus) |
|---|
| 699 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 700 | ifeq ($(LIVEMEDIA_SUPPORT),y) |
|---|
| 701 | LIVEMEDIA_DIR = $(BSEAV)/lib/livemedia/live |
|---|
| 702 | BSETTOP_LDFLAGS += ${LIVEMEDIA_DIR}/liveMedia/libliveMedia.a |
|---|
| 703 | BSETTOP_LDFLAGS += ${LIVEMEDIA_DIR}/groupsock/libgroupsock.a |
|---|
| 704 | BSETTOP_LDFLAGS += ${LIVEMEDIA_DIR}/UsageEnvironment/libUsageEnvironment.a |
|---|
| 705 | BSETTOP_LDFLAGS += ${LIVEMEDIA_DIR}/BasicUsageEnvironment/libBasicUsageEnvironment.a |
|---|
| 706 | BSETTOP_LDFLAGS += ${LIVEMEDIA_DIR}/../blive_ext/lib/${ARCH}.$(DEBUG_SUFFIX)/libblive_ext.a |
|---|
| 707 | endif #LIVEMEDIA |
|---|
| 708 | ifeq ($(SSL_SUPPORT),y) |
|---|
| 709 | BSETTOP_LDFLAGS += -L$(OPENSSL_DIR) -lssl -lcrypto -ldl |
|---|
| 710 | endif #SSL_SUPPORT |
|---|
| 711 | endif #PB_IP |
|---|
| 712 | endif #nexu |
|---|