| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2007-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: Makefile $ |
|---|
| 11 | # $brcm_Revision: 81 $ |
|---|
| 12 | # $brcm_Date: 9/23/11 3: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/nexus/Makefile $ |
|---|
| 21 | # |
|---|
| 22 | # 81 9/23/11 3:37p katrep |
|---|
| 23 | # SW7429-1:7429 support |
|---|
| 24 | # |
|---|
| 25 | # 80 5/18/11 1:07p erickson |
|---|
| 26 | # SW7420-1264: protect if NEXUS_BIN_DIR and INSTALL_DIR are the same |
|---|
| 27 | # |
|---|
| 28 | # 78 4/15/11 6:20a jgarrett |
|---|
| 29 | # SW7425-299: Refactoring audio build options for 40nm |
|---|
| 30 | # |
|---|
| 31 | # 77 3/18/11 11:43a ssood |
|---|
| 32 | # SW7408-255: build ip library using the makefile of its apps directory |
|---|
| 33 | # (this picks up all the default build variables for ip) |
|---|
| 34 | # |
|---|
| 35 | # 76 2/15/11 7:14p xhuang |
|---|
| 36 | # SW7358-34: Add 7358/7552 support |
|---|
| 37 | # |
|---|
| 38 | # 75 12/27/10 3:37p erickson |
|---|
| 39 | # SW7400-2511: fix STATIC_BRUTUS=y builds |
|---|
| 40 | # |
|---|
| 41 | # 74 12/16/10 11:18a katrep |
|---|
| 42 | # SW7231-4:add 7231 support |
|---|
| 43 | # |
|---|
| 44 | # 73 12/15/10 10:09a jrubio |
|---|
| 45 | # SW7344-9: add 7344/7346 support |
|---|
| 46 | # |
|---|
| 47 | # 72 10/20/10 3:33p nickh |
|---|
| 48 | # SW7422-80: Add tuner support and dolby and srs tru volume support for |
|---|
| 49 | # 7422 |
|---|
| 50 | # |
|---|
| 51 | # 71 8/6/10 3:27p calvinho |
|---|
| 52 | # SW7405-4431: Adding nexus to playback_ip_lib dependency list in order |
|---|
| 53 | # to resolve Brutus parallel compile error |
|---|
| 54 | # |
|---|
| 55 | # 70 7/30/10 9:06a erickson |
|---|
| 56 | # SW7420-918: B_REFSW_SHAREABLE=n should build only static settop api |
|---|
| 57 | # |
|---|
| 58 | # 69 5/7/10 5:16p jgarrett |
|---|
| 59 | # SW7405-4302: Removing warnings on 3rd-party libraries |
|---|
| 60 | # |
|---|
| 61 | # 68 4/28/10 3:50p mward |
|---|
| 62 | # SW7125-226: In RAP, RAP_DTSENC_SUPPORT defaults n. Therefore, we will |
|---|
| 63 | # use RAP_DTSENC_SUPPORT=y here to set CFLAGS += -DB_HAS_DTS_ENCODE=1, |
|---|
| 64 | # not a list of chips that may (or may not) have RAP_DTSENC_SUPPORT |
|---|
| 65 | # enabled. |
|---|
| 66 | # |
|---|
| 67 | # 67 4/19/10 4:04p nickh |
|---|
| 68 | # SW7420-709: Add tuner support for 7420DBS |
|---|
| 69 | # |
|---|
| 70 | # 66 4/16/10 5:42p nitinb |
|---|
| 71 | # SW7550-382: Enabling DTS encode for 7550 |
|---|
| 72 | # |
|---|
| 73 | # 65 4/9/10 1:07p jgarrett |
|---|
| 74 | # SW7405-4034: Moving MSDRM PD/ND binaries into nexus as required |
|---|
| 75 | # |
|---|
| 76 | # 64 4/8/10 4:32p mward |
|---|
| 77 | # SW7125-226: Corrected logic to separate volume processing options and |
|---|
| 78 | # DTS encode. |
|---|
| 79 | # |
|---|
| 80 | # DrmMakefileUpdates/1 4/8/10 4:49p jgarrett |
|---|
| 81 | # SW7405-4034: Including binaries for MSDRM (PD/ND) in the nexus builds |
|---|
| 82 | # to avoid link issues |
|---|
| 83 | # |
|---|
| 84 | # 63 3/22/10 10:27a mward |
|---|
| 85 | # SW7125-226: Enabling AC3 Encode for 7125, 7340, 7342 (Only AC3 not DTS |
|---|
| 86 | # encode). |
|---|
| 87 | # |
|---|
| 88 | # 62 3/19/10 10:39a ssood |
|---|
| 89 | # SW7420-561: copy psip library in BSEAV/bin upon install |
|---|
| 90 | # |
|---|
| 91 | # 61 3/16/10 12:45p ssood |
|---|
| 92 | # SW7420-561: suppress the extra prints for default applibs build |
|---|
| 93 | # |
|---|
| 94 | # 60 3/15/10 7:24p randyjew |
|---|
| 95 | # SW7468-6:Enable DTS Encode for 7468 |
|---|
| 96 | # |
|---|
| 97 | # 59 2/18/10 7:16p jrubio |
|---|
| 98 | # SW7342-159: Clean Playback IP apps, Pass in flag to playback_ip |
|---|
| 99 | # |
|---|
| 100 | # 58 2/3/10 3:26p rjain |
|---|
| 101 | # SW7550-234: Enabling DTS for 7550 |
|---|
| 102 | # |
|---|
| 103 | # 57 1/28/10 5:16p ssood |
|---|
| 104 | # SW7420-454: build & install ip_streamer & ip_client test apps part of |
|---|
| 105 | # the brutus build |
|---|
| 106 | # |
|---|
| 107 | # 56 1/18/10 5:20p rjain |
|---|
| 108 | # SW7550-190: Enabling AC3 encode for 7550 |
|---|
| 109 | # |
|---|
| 110 | # 55 1/5/10 10:22a jrubio |
|---|
| 111 | # SW7342-11: add SRSTRU and DOLBY support for 73XX and 7125 |
|---|
| 112 | # |
|---|
| 113 | # 54 12/11/09 4:30p mphillip |
|---|
| 114 | # SW7550-112: Merge 7550 changes to main branch |
|---|
| 115 | # |
|---|
| 116 | # 53 12/9/09 12:04p jgarrett |
|---|
| 117 | # SW7408-17: Fixing shim layer build for soft audio |
|---|
| 118 | # |
|---|
| 119 | # 52 11/17/09 2:15p erickson |
|---|
| 120 | # SW7405-3408: use $(filter) instead of $(findstring) |
|---|
| 121 | # |
|---|
| 122 | # 51 9/18/09 11:56a erickson |
|---|
| 123 | # SW7400-2511: add B_REFSW_ or NEXUS_ prefix to build variables |
|---|
| 124 | # |
|---|
| 125 | # 50 8/25/09 11:24a katrep |
|---|
| 126 | # SW7405-2934:add suppoort for audio capture to a file |
|---|
| 127 | # |
|---|
| 128 | # 49 7/27/09 5:21p katrep |
|---|
| 129 | # PR48700: added SHAREABLE=n to build nexus static library |
|---|
| 130 | # |
|---|
| 131 | # 48 7/13/09 3:30p jtna |
|---|
| 132 | # PR56505: libsettop depends on nexus |
|---|
| 133 | # |
|---|
| 134 | # 47 6/25/09 1:03a ssood |
|---|
| 135 | # PR53773: More changes for DTCP/IP + SSL Support |
|---|
| 136 | # |
|---|
| 137 | # 46 6/24/09 5:55p ssood |
|---|
| 138 | # PR53773: Adding support for compiling DTCP/IP + SSL libraries |
|---|
| 139 | # |
|---|
| 140 | # 45 6/1/09 3:13p mward |
|---|
| 141 | # PR 50613: Add SRS VIQ for 7400 under Nexus. |
|---|
| 142 | # |
|---|
| 143 | # 44 5/22/09 11:55a nickh |
|---|
| 144 | # PR53563: Add 7420 support for AACHE to AC3 transcode, AACHE to DTS |
|---|
| 145 | # transcode, SRS Tru volume. Also see PR's 53564, 53565. |
|---|
| 146 | # |
|---|
| 147 | # 43 4/30/09 7:14p katrep |
|---|
| 148 | # PR43491: fixed issue with 97405 656/i2s input |
|---|
| 149 | # |
|---|
| 150 | # 42 3/31/09 7:31p katrep |
|---|
| 151 | # PR53733: MSDRM_PD_HWDECRYPT support,moved msdrm pd compile to settop |
|---|
| 152 | # api from nexus |
|---|
| 153 | # |
|---|
| 154 | # 41 3/20/09 1:09p katrep |
|---|
| 155 | # PR52340: Support srs true volume and dolby volume through brutus ans |
|---|
| 156 | # settop api |
|---|
| 157 | # |
|---|
| 158 | # 40 3/13/09 2:49p vsilyaev |
|---|
| 159 | # PR 53225: Adeed NEXUS_BIN_DIR_SUFFIX and NEXUS_BIN_DIR |
|---|
| 160 | # |
|---|
| 161 | # 39 3/4/09 7:52p jgarrett |
|---|
| 162 | # PR 52269: Adding XMP support |
|---|
| 163 | # |
|---|
| 164 | # 38 3/2/09 6:10p katrep |
|---|
| 165 | # PR52340: Add support srs_true_volume |
|---|
| 166 | # |
|---|
| 167 | # 37 1/15/09 3:05p prasadv |
|---|
| 168 | # PR50240: Adding Cablecard support |
|---|
| 169 | # |
|---|
| 170 | # 36 1/8/09 12:21p katrep |
|---|
| 171 | # PR50063: Add suppport dor Ac3 encode in Settop shim and burtus. |
|---|
| 172 | # |
|---|
| 173 | # 35 12/24/08 11:57a jgarrett |
|---|
| 174 | # PR 50703: Changes for 7420 bringup |
|---|
| 175 | # |
|---|
| 176 | # 34 9/17/08 6:20p katrep |
|---|
| 177 | # PR47061: Add support for DTS encode |
|---|
| 178 | # |
|---|
| 179 | # 33 8/14/08 11:46a jgarrett |
|---|
| 180 | # PR 32047: Adding PCM capture |
|---|
| 181 | # |
|---|
| 182 | # 32 8/6/08 1:48p mphillip |
|---|
| 183 | # PR40027: Build crypto |
|---|
| 184 | # |
|---|
| 185 | # 31 8/5/08 10:24a erickson |
|---|
| 186 | # PR45422: add DIVX_DRM_SUPPORT |
|---|
| 187 | # |
|---|
| 188 | # 30 7/24/08 1:23p ssood |
|---|
| 189 | # PR42739: moving the compilation of rtp library part of the ip applib |
|---|
| 190 | # |
|---|
| 191 | # 29 7/9/08 4:10p katrep |
|---|
| 192 | # PR43490: Add support 656/i2s tuning using analog tune api. |
|---|
| 193 | # |
|---|
| 194 | # 28 7/2/08 5:00p vishk |
|---|
| 195 | # PR 40020: bsettop_stream (crypto, network decryption): Develop |
|---|
| 196 | # SettopAPI-to-Nexus shim layer |
|---|
| 197 | # |
|---|
| 198 | # 27 6/26/08 6:21p mphillip |
|---|
| 199 | # PR42901: Encrypted PVR playback support |
|---|
| 200 | # |
|---|
| 201 | # 26 6/26/08 3:44p shyam |
|---|
| 202 | # PR43426 : Enable stub functions |
|---|
| 203 | # |
|---|
| 204 | # 25 6/23/08 5:41p shyam |
|---|
| 205 | # PR43426 : Add 7043 Transcode support |
|---|
| 206 | # |
|---|
| 207 | # 24 6/20/08 3:13p katrep |
|---|
| 208 | # PR42141: Single compile time MACROVISION_SUPPORT=y and DCS_SUPPORT=y is |
|---|
| 209 | # required to build brutus with Macrovison support. |
|---|
| 210 | # |
|---|
| 211 | # 23 6/12/08 9:07p katrep |
|---|
| 212 | # PR43636: Add support for MSDRM |
|---|
| 213 | # |
|---|
| 214 | # 22 6/12/08 4:42p erickson |
|---|
| 215 | # PR42739: remove rtp for non-IP builds |
|---|
| 216 | # |
|---|
| 217 | # 21 6/11/08 10:26p ssood |
|---|
| 218 | # PR42739: modifications to build IP Playback Applib and Settop API Shim |
|---|
| 219 | # layer for IP Playback |
|---|
| 220 | # |
|---|
| 221 | # 20 6/11/08 11:53a jgarrett |
|---|
| 222 | # PR 43489: Adding brutus support for 93549/93556 |
|---|
| 223 | # |
|---|
| 224 | # 19 6/3/08 6:53p rjlewis |
|---|
| 225 | # PR40352: don't link against libraries for Vxworks. |
|---|
| 226 | # |
|---|
| 227 | # 18 5/21/08 11:49a rjlewis |
|---|
| 228 | # PR40352: Added support for VxWorks. |
|---|
| 229 | # |
|---|
| 230 | # 17 5/14/08 7:25p jrubio |
|---|
| 231 | # PR42694: add TUNER_ENABLE_7335 flag as a workaround for streamer/tuner |
|---|
| 232 | # not working together |
|---|
| 233 | # |
|---|
| 234 | # 16 4/17/08 5:29p katrep |
|---|
| 235 | # PR40803: Use HDMI_DDP_PASSTHROUGH=1 compile time flag to enable DDP |
|---|
| 236 | # passthrough on HDMI. |
|---|
| 237 | # |
|---|
| 238 | # 15 4/7/08 4:11p erickson |
|---|
| 239 | # PR40024: impl bdecode_read_metadata |
|---|
| 240 | # |
|---|
| 241 | # 14 4/4/08 10:43a jgarrett |
|---|
| 242 | # PR 41312: Synchronizing PVR |
|---|
| 243 | # |
|---|
| 244 | # 13 3/31/08 6:04p jgarrett |
|---|
| 245 | # PR 40606: Adding OS lib |
|---|
| 246 | # |
|---|
| 247 | # 12 3/25/08 10:13a jgarrett |
|---|
| 248 | # PR 40857: Adding thunks |
|---|
| 249 | # |
|---|
| 250 | # 11 3/11/08 11:08a erickson |
|---|
| 251 | # PR36068: added bsettop_timers |
|---|
| 252 | # |
|---|
| 253 | # 10 3/6/08 4:10p erickson |
|---|
| 254 | # PR36068: verify that MEDIA_ASF_SUPPORT and MEDIA_AVI_SUPPORT are used, |
|---|
| 255 | # not the Settop API variants |
|---|
| 256 | # |
|---|
| 257 | # 9 2/8/08 9:56a vsilyaev |
|---|
| 258 | # PR 38682: Added support for Nexus proxy mode |
|---|
| 259 | # |
|---|
| 260 | # 8 1/22/08 10:10a erickson |
|---|
| 261 | # PR36068: update NEXUS_TOP |
|---|
| 262 | # |
|---|
| 263 | # 7 1/3/08 10:40a erickson |
|---|
| 264 | # PR36068: map legacy env variables to Nexus |
|---|
| 265 | # |
|---|
| 266 | # 6 1/2/08 9:55a erickson |
|---|
| 267 | # PR36068: add clean |
|---|
| 268 | # |
|---|
| 269 | # 5 11/12/07 3:57p erickson |
|---|
| 270 | # PR36068: update |
|---|
| 271 | # |
|---|
| 272 | # 4 11/12/07 2:34p erickson |
|---|
| 273 | # PR36068: added fileio |
|---|
| 274 | # |
|---|
| 275 | # 3 10/16/07 2:27p erickson |
|---|
| 276 | # PR36068: build nexus too |
|---|
| 277 | # |
|---|
| 278 | # 2 10/16/07 12:37p erickson |
|---|
| 279 | # PR36068: updates |
|---|
| 280 | # |
|---|
| 281 | # 1 10/15/07 2:37p erickson |
|---|
| 282 | # PR36068: intial |
|---|
| 283 | # |
|---|
| 284 | ############################################################ |
|---|
| 285 | |
|---|
| 286 | ifdef COMSPEC |
|---|
| 287 | BSEAV=$(shell cd ../../.. && cd) |
|---|
| 288 | else |
|---|
| 289 | BSEAV=$(shell cd ../../../; pwd) |
|---|
| 290 | endif |
|---|
| 291 | BSETTOP=$(BSEAV)/api |
|---|
| 292 | |
|---|
| 293 | # backward compatibility |
|---|
| 294 | B_REFSW_OS ?= $(OS) |
|---|
| 295 | B_REFSW_SHAREABLE ?= $(SHAREABLE) |
|---|
| 296 | |
|---|
| 297 | ifeq ($(B_REFSW_OS),) |
|---|
| 298 | B_REFSW_OS=linuxuser |
|---|
| 299 | else |
|---|
| 300 | ifeq ($(B_REFSW_OS),linuxkernel) |
|---|
| 301 | $(error Can not build linuxkernel for a nexus environment) |
|---|
| 302 | endif |
|---|
| 303 | endif |
|---|
| 304 | |
|---|
| 305 | ifeq ($(filter y,$(STATIC_SETTOPAPI) $(STATIC_BRUTUS)),y) |
|---|
| 306 | B_REFSW_SHAREABLE=n |
|---|
| 307 | export B_REFSW_SHAREABLE |
|---|
| 308 | endif |
|---|
| 309 | |
|---|
| 310 | ifeq ($(B_REFSW_SHAREABLE),n) |
|---|
| 311 | # api.mak uses SHAREDLIB |
|---|
| 312 | SHAREDLIB=no |
|---|
| 313 | BUILD_RULE = static |
|---|
| 314 | else |
|---|
| 315 | BUILD_RULE = shared |
|---|
| 316 | endif |
|---|
| 317 | |
|---|
| 318 | NEXUS_TOP=$(BSETTOP)/../../nexus |
|---|
| 319 | B_LIB_TOP := $(NEXUS_TOP)/lib |
|---|
| 320 | |
|---|
| 321 | all: check_environment $(BSETTOP)/build/nexus/bsettop_autogen_thunks.c nexus os_lib ssl_lib dtcp_ip_lib playback_ip_lib softgfx_lib $(BUILD_RULE) |
|---|
| 322 | |
|---|
| 323 | ifeq ($(MSDRM_PD_SUPPORT), y) |
|---|
| 324 | ifeq ($(MSDRM_PD_HWDECRYPT),y) |
|---|
| 325 | NEXUS_MAKE_VARIABLES+=KEYLADDER_SUPPORT=y |
|---|
| 326 | KEYLADDER_SUPPORT=y |
|---|
| 327 | export KEYLADDER_SUPPORT |
|---|
| 328 | BHSM_KEYLADDER=ON |
|---|
| 329 | export BHSM_KEYLADDER |
|---|
| 330 | CFLAGS +=-DMSDRM_PD_HWDECRYPT=1 |
|---|
| 331 | endif |
|---|
| 332 | endif |
|---|
| 333 | |
|---|
| 334 | |
|---|
| 335 | |
|---|
| 336 | ifeq ($(B_HAS_EXTERNAL_ANALOG),y) |
|---|
| 337 | NEXUS_CCIR656_INPUT=y |
|---|
| 338 | export NEXUS_CCIR656_INPUT |
|---|
| 339 | endif |
|---|
| 340 | |
|---|
| 341 | |
|---|
| 342 | include $(BSETTOP)/build/tools.mak |
|---|
| 343 | include $(BSETTOP)/include/api.mak |
|---|
| 344 | include $(NEXUS_TOP)/platforms/$(PLATFORM)/build/platform_app.inc |
|---|
| 345 | include $(NEXUS_TOP)/lib/os/b_os_lib.inc |
|---|
| 346 | |
|---|
| 347 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 348 | include $(NEXUS_TOP)/lib/playback_ip/b_playback_ip_lib.inc |
|---|
| 349 | ifeq ($(DTCP_IP_SUPPORT),y) |
|---|
| 350 | include $(NEXUS_TOP)/lib/dtcp_ip/dtcp_ip_lib.inc |
|---|
| 351 | endif |
|---|
| 352 | endif |
|---|
| 353 | |
|---|
| 354 | ifeq ($(SOFT_GFX_SUPPORT),y) |
|---|
| 355 | include $(NEXUS_TOP)/lib/softgfx/b_softgfx_lib.inc |
|---|
| 356 | endif #SOFT_GFX_SUPPORT |
|---|
| 357 | |
|---|
| 358 | ODIR=$(BSETTOP_BIN) |
|---|
| 359 | |
|---|
| 360 | SRCS += \ |
|---|
| 361 | bsettop.c \ |
|---|
| 362 | bsettop_autogen_thunks.c \ |
|---|
| 363 | bsettop_os.c \ |
|---|
| 364 | bsettop_cablecard.c \ |
|---|
| 365 | bsettop_cipher.c \ |
|---|
| 366 | bsettop_config.c \ |
|---|
| 367 | bsettop_crypto.c \ |
|---|
| 368 | bsettop_decode.c \ |
|---|
| 369 | bsettop_display.c \ |
|---|
| 370 | bsettop_encode.c \ |
|---|
| 371 | bsettop_fileio.c \ |
|---|
| 372 | bsettop_fileio_fifo.c \ |
|---|
| 373 | bsettop_graphics.c \ |
|---|
| 374 | bsettop_keyslot_priv.c \ |
|---|
| 375 | bsettop_message.c \ |
|---|
| 376 | bsettop_pcm_playback.c \ |
|---|
| 377 | bsettop_pcm_capture.c \ |
|---|
| 378 | bsettop_playpump.c \ |
|---|
| 379 | bsettop_pvr.c \ |
|---|
| 380 | bsettop_pvr_util.c \ |
|---|
| 381 | bsettop_recpump.c \ |
|---|
| 382 | bsettop_smartcard.c \ |
|---|
| 383 | bsettop_stream_encryption.c \ |
|---|
| 384 | bsettop_stream.c \ |
|---|
| 385 | bsettop_tuner.c \ |
|---|
| 386 | bsettop_user_io.c \ |
|---|
| 387 | bsettop_vbi.c \ |
|---|
| 388 | bsettop_transcode.c\ |
|---|
| 389 | bsettop_audio_capture.c |
|---|
| 390 | |
|---|
| 391 | ifeq ($(XMP1_SUPPORT),y) |
|---|
| 392 | CFLAGS += -DXMP1_SUPPORT |
|---|
| 393 | endif |
|---|
| 394 | |
|---|
| 395 | ifeq ($(XMP2_SUPPORT),y) |
|---|
| 396 | CFLAGS += -DXMP2_SUPPORT |
|---|
| 397 | SRCS += bsettop_xmp.c |
|---|
| 398 | endif |
|---|
| 399 | |
|---|
| 400 | |
|---|
| 401 | CFLAGS += \ |
|---|
| 402 | -I$(BSETTOP)/include |
|---|
| 403 | |
|---|
| 404 | #Compile Settop API's Playback IP Shim: compiles stubs if PLAYBACK_IP_SUPPORT is not defined |
|---|
| 405 | CFLAGS += \ |
|---|
| 406 | -I$(BSEAV)/lib/netaccel/include |
|---|
| 407 | SRCS += \ |
|---|
| 408 | bsettop_playback_ip.c |
|---|
| 409 | |
|---|
| 410 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 411 | CFLAGS += -DB_HAS_IP=1 |
|---|
| 412 | endif |
|---|
| 413 | |
|---|
| 414 | ifeq ($(SOFT_GFX_SUPPORT),y) |
|---|
| 415 | CFLAGS += -DB_HAS_SOFT_GFX=1 |
|---|
| 416 | CFLAGS += -I$(NEXUS_TOP)/lib/softgfx |
|---|
| 417 | endif #SOFT_GFX_SUPPORT |
|---|
| 418 | |
|---|
| 419 | ifeq ($(B_REFSW_OS),vxworks) |
|---|
| 420 | CFLAGS += -I$(BSETTOP)/include/vxworks |
|---|
| 421 | else |
|---|
| 422 | CFLAGS += -I$(BSETTOP)/include/linux |
|---|
| 423 | endif |
|---|
| 424 | |
|---|
| 425 | CFLAGS += \ |
|---|
| 426 | -I$(BSETTOP)/build/nexus \ |
|---|
| 427 | -I$(BSETTOP)/src/nexus \ |
|---|
| 428 | -I$(BSETTOP)/src/nexus/board \ |
|---|
| 429 | -I$(BSETTOP)/../lib/bfile \ |
|---|
| 430 | -I$(BSETTOP)/../lib/utils \ |
|---|
| 431 | -I$(BSETTOP)/../lib/rtp \ |
|---|
| 432 | $(NEXUS_CFLAGS) $(addprefix -I,$(NEXUS_APP_INCLUDE_PATHS)) $(addprefix -D,$(NEXUS_APP_DEFINES)) \ |
|---|
| 433 | $(addprefix -I,$(B_OS_LIB_PUBLIC_INCLUDES)) $(addprefix -D,$(B_OS_LIB_DEFINES)) \ |
|---|
| 434 | $(addprefix -I,$(B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES)) $(addprefix -D,$(B_PLAYBACK_IP_LIB_DEFINES)) \ |
|---|
| 435 | $(addprefix -I,$(B_SOFTGFX_LIB_PUBLIC_INCLUDES)) $(addprefix -D,$(B_SOFTGFX_LIB_DEFINES)) \ |
|---|
| 436 | -DBCM_BOARD=$(BCM_BOARD_NO) \ |
|---|
| 437 | -g |
|---|
| 438 | CFLAGS += -DBCM_BOARD_STR=\"$(BCM_BOARD_NO)\" |
|---|
| 439 | CFLAGS += -DB_SYSTEM_$(SYSTEM) |
|---|
| 440 | |
|---|
| 441 | |
|---|
| 442 | ifeq ($(B_DECODE_CRC_CAPTURE),y) |
|---|
| 443 | CFLAGS += -DB_DECODE_CRC_CAPTURE=1 |
|---|
| 444 | NEXUS_MAKE_VARIABLES+="NEXUS_CRC_CAPTURE=y" |
|---|
| 445 | endif |
|---|
| 446 | |
|---|
| 447 | ifeq ($(MACROVISION_SUPPORT),y) |
|---|
| 448 | CFLAGS += -DMACROVISION_SUPPORT=1 |
|---|
| 449 | NEXUS_MAKE_VARIABLES+="BVDC_MACROVISION=y" |
|---|
| 450 | endif |
|---|
| 451 | |
|---|
| 452 | ifeq ($(DCS_SUPPORT),y) |
|---|
| 453 | CFLAGS += -DDCS_SUPPORT=1 |
|---|
| 454 | NEXUS_MAKE_VARIABLES+="BVDC_DCS=y" |
|---|
| 455 | endif |
|---|
| 456 | |
|---|
| 457 | ifeq ($(B_HAS_EXTERNAL_ANALOG),y) |
|---|
| 458 | CFLAGS += -DB_HAS_EXTERNAL_ANALOG=1 |
|---|
| 459 | #following is require for settop api include match with nexus includes |
|---|
| 460 | #ifeq ($(BCHP_CHIP),7405) |
|---|
| 461 | #CFLAGS += -DNEXUS_NUM_656_INPUTS=1 -DNEXUS_NUM_I2S_OUTPUTS=0 |
|---|
| 462 | #endif |
|---|
| 463 | endif |
|---|
| 464 | |
|---|
| 465 | ifeq ($(TUNER_ENABLE_7335),y) |
|---|
| 466 | CFLAGS += -DTUNER_ENABLE_7335=1 |
|---|
| 467 | endif |
|---|
| 468 | |
|---|
| 469 | ifeq ($(TUNER_ENABLE_7420),y) |
|---|
| 470 | CFLAGS += -DTUNER_ENABLE_7420=1 |
|---|
| 471 | endif |
|---|
| 472 | |
|---|
| 473 | ifeq ($(TUNER_ENABLE_7422),y) |
|---|
| 474 | CFLAGS += -DTUNER_ENABLE_7422=1 |
|---|
| 475 | endif |
|---|
| 476 | |
|---|
| 477 | ifeq ($(MSDRM_PD_SUPPORT), y) |
|---|
| 478 | CFLAGS += -DB_HAS_MSDRM_PD=1 |
|---|
| 479 | endif |
|---|
| 480 | |
|---|
| 481 | ifeq ($(MSDRM_ND_SUPPORT), y) |
|---|
| 482 | CFLAGS += -DB_HAS_MSDRM_ND=1 |
|---|
| 483 | endif |
|---|
| 484 | |
|---|
| 485 | ifeq ($(DIVX_DRM_SUPPORT), y) |
|---|
| 486 | CFLAGS += -DB_HAS_DIVX_DRM=1 |
|---|
| 487 | endif |
|---|
| 488 | |
|---|
| 489 | ifneq ($(NEXUS_SOFT_AUDIO),y) |
|---|
| 490 | |
|---|
| 491 | ifeq ($(subst Y,y,${RAP_DTSENC_SUPPORT}),y) |
|---|
| 492 | CFLAGS += -DB_HAS_DTS_ENCODE=1 |
|---|
| 493 | endif |
|---|
| 494 | |
|---|
| 495 | ifeq ($(subst Y,y,${RAP_AC3ENC_SUPPORT}),y) |
|---|
| 496 | CFLAGS += -DB_HAS_AC3_ENCODE=1 |
|---|
| 497 | endif |
|---|
| 498 | |
|---|
| 499 | ifeq ($(filter $(BCHP_CHIP),7405 7325 7335 7420 7342 7340 7125 7468 7422 7344 7346 7231 7358 7552 7425 7429), $(BCHP_CHIP)) |
|---|
| 500 | # Available on almost all 65nm and 40nm chips |
|---|
| 501 | ifeq ($(subst Y,y,${RAP_SRSTRUVOL_SUPPORT}),y) |
|---|
| 502 | CFLAGS += -DB_HAS_SRS_TRUE_VOLUME=1 |
|---|
| 503 | endif |
|---|
| 504 | |
|---|
| 505 | endif |
|---|
| 506 | |
|---|
| 507 | ifeq ($(filter $(BCHP_CHIP),7405 7325 7335 7420 7342 7340 7125 7468), $(BCHP_CHIP)) |
|---|
| 508 | # Not available on 40nm chips yet |
|---|
| 509 | ifeq ($(subst Y,y,${RAP_DOLBYVOL_SUPPORT}),y) |
|---|
| 510 | CFLAGS += -DB_HAS_DOLBY_VOLUME=1 |
|---|
| 511 | endif |
|---|
| 512 | |
|---|
| 513 | endif |
|---|
| 514 | |
|---|
| 515 | endif |
|---|
| 516 | |
|---|
| 517 | ifeq ($(filter $(BCHP_CHIP),7400), $(BCHP_CHIP)) |
|---|
| 518 | #Dolby Volume and SRS Volume IQ are mutually exclusive on 7400 |
|---|
| 519 | ifeq ($(subst Y,y,${RAP_DOLBYVOLUME_SUPPORT}),y) |
|---|
| 520 | ifeq ($(subst Y,y,${RAP_SRSTRUVOL_SUPPORT}),y) |
|---|
| 521 | $(error Only one of RAP_DOLBYVOLUME_SUPPORT or RAP_SRSTRUVOL_SUPPORT should be "y") |
|---|
| 522 | else |
|---|
| 523 | CFLAGS += -DB_HAS_DOLBY_VOLUME=1 |
|---|
| 524 | endif |
|---|
| 525 | endif |
|---|
| 526 | |
|---|
| 527 | ifeq ($(subst Y,y,${RAP_SRSTRUVOL_SUPPORT}),y) |
|---|
| 528 | ifeq ($(subst Y,y,${RAP_DOLBYVOLUME_SUPPORT}),y) |
|---|
| 529 | $(error Only one of RAP_DOLBYVOLUME_SUPPORT or RAP_SRSTRUVOL_SUPPORT should be "y") |
|---|
| 530 | else |
|---|
| 531 | CFLAGS += -DB_HAS_SRS_TRUE_VOLUME=1 |
|---|
| 532 | endif |
|---|
| 533 | endif |
|---|
| 534 | |
|---|
| 535 | endif |
|---|
| 536 | |
|---|
| 537 | |
|---|
| 538 | # Add 7043 Trasncode support |
|---|
| 539 | ifeq ($(BENC_CHIP),7043) |
|---|
| 540 | CFLAGS += -DB_HAS_TRANSCODE=1 |
|---|
| 541 | endif |
|---|
| 542 | |
|---|
| 543 | ifeq ($(CABLECARD_SUPPORT), MPOD) |
|---|
| 544 | CFLAGS += -DMPOD_SUPPORT |
|---|
| 545 | endif |
|---|
| 546 | |
|---|
| 547 | ifeq ($(B_REFSW_OS),vxworks) |
|---|
| 548 | #LDFLAGS += -lnexus -lb_os -L$(NEXUS_BIN_DIR) |
|---|
| 549 | LDFLAGS += -L${NEXUS_BIN_DIR} |
|---|
| 550 | else |
|---|
| 551 | LDFLAGS += -lnexus -lb_os -L${NEXUS_BIN_DIR} -lpthread |
|---|
| 552 | endif |
|---|
| 553 | |
|---|
| 554 | LIB=settop |
|---|
| 555 | |
|---|
| 556 | ${ODIR}/lib$(LIB).$(BLIB_EXT): nexus |
|---|
| 557 | |
|---|
| 558 | vpath %.c $(BSETTOP)/src/nexus |
|---|
| 559 | vpath %.c $(BSETTOP)/src/nexus/board |
|---|
| 560 | vpath %.c $(BSETTOP)/build/nexus |
|---|
| 561 | |
|---|
| 562 | ifneq ($(ASF_SUPPORT),) |
|---|
| 563 | ifeq ($(MEDIA_ASF_SUPPORT),) |
|---|
| 564 | $(error You must define MEDIA_ASF_SUPPORT, not ASF_SUPPORT.) |
|---|
| 565 | endif |
|---|
| 566 | endif |
|---|
| 567 | ifneq ($(AVI_SUPPORT),) |
|---|
| 568 | ifeq ($(MEDIA_AVI_SUPPORT),) |
|---|
| 569 | $(error You must define MEDIA_AVI_SUPPORT, not AVI_SUPPORT.) |
|---|
| 570 | endif |
|---|
| 571 | endif |
|---|
| 572 | |
|---|
| 573 | nexus: |
|---|
| 574 | ${Q_}$(MAKE) $(NEXUS_MAKE_VARIABLES) -C $(NEXUS_TOP)/build |
|---|
| 575 | |
|---|
| 576 | OTHER_CLEANS += nexus-clean thunk-clean os_lib_clean playback_ip_lib_clean dtcp_ip_lib_clean ssl_lib_clean softgfx_lib_clean |
|---|
| 577 | |
|---|
| 578 | nexus-clean: |
|---|
| 579 | $(Q_)make -C $(NEXUS_TOP)/build clean |
|---|
| 580 | |
|---|
| 581 | include $(BSETTOP)/build/rules.mak |
|---|
| 582 | |
|---|
| 583 | install: |
|---|
| 584 | @echo "[Install... libs]" |
|---|
| 585 | ifneq ($(INSTALL_DIR),$(NEXUS_BIN_DIR)) |
|---|
| 586 | ${Q_}$(CP) $(BSETTOP_LIBS) $(INSTALL_DIR) |
|---|
| 587 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 588 | ${Q_}$(CP) $(NEXUS_BIN_DIR)/ip_* $(INSTALL_DIR) |
|---|
| 589 | endif |
|---|
| 590 | ifeq ($(AUTO_PSI_SUPPORT),y) |
|---|
| 591 | ${Q_}$(CP) $(NEXUS_BIN_DIR)/libb_psip.* $(INSTALL_DIR) |
|---|
| 592 | endif |
|---|
| 593 | endif |
|---|
| 594 | |
|---|
| 595 | $(BSETTOP)/build/nexus/bsettop_autogen_thunks.c: $(BSEAV)/api/include/bsettop_display.h $(BSEAV)/api/include/bsettop_message.h $(BSEAV)/api/include/bsettop_recpump.h $(BSEAV)/api/include/bsettop_types.h $(BSEAV)/api/include/bsettop_cipher.h $(BSEAV)/api/include/bsettop_encode.h $(BSEAV)/api/include/bsettop_pcm.h $(BSEAV)/api/include/bsettop_smartcard.h $(BSEAV)/api/include/bsettop_user_io.h $(BSEAV)/api/include/bsettop_config.h $(BSEAV)/api/include/bsettop_graphics.h $(BSEAV)/api/include/bsettop_playpump.h $(BSEAV)/api/include/bsettop_stream.h $(BSEAV)/api/include/bsettop_vbi.h $(BSEAV)/api/include/bsettop_decode.h $(BSEAV)/api/include/bsettop.h $(BSEAV)/api/include/bsettop_tuner.h $(BSEAV)/api/include/bsettop_mem.h $(BSEAV)/api/include/bsettop_cablecard.h $(BSEAV)/api/include/bsettop_pvr.h |
|---|
| 596 | @echo "[Thunk... bsettop]" |
|---|
| 597 | @$(PERL) $(BSEAV)/api/build/nexus/bapi_build.pl $^ |
|---|
| 598 | |
|---|
| 599 | $(BSETTOP)/build/nexus/bsettop_autogen_thunks.h: $(BSEAV)/api/build/nexus/bsettop_autogen_thunks.c |
|---|
| 600 | |
|---|
| 601 | thunk-clean: |
|---|
| 602 | @$(RM) $(BSETTOP)/build/nexus/bsettop_autogen_thunks.* |
|---|
| 603 | |
|---|
| 604 | os_lib: |
|---|
| 605 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/os |
|---|
| 606 | |
|---|
| 607 | os_lib_clean: |
|---|
| 608 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/os clean |
|---|
| 609 | |
|---|
| 610 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 611 | playback_ip_lib: nexus |
|---|
| 612 | ${Q_}$(MAKE) REFSW_BUILD=y -C $(NEXUS_TOP)/lib/playback_ip/apps |
|---|
| 613 | |
|---|
| 614 | playback_ip_lib_clean: |
|---|
| 615 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/playback_ip/apps clean |
|---|
| 616 | |
|---|
| 617 | else #PLAYBACK_IP_SUPPORT is not defined, so define empty targets |
|---|
| 618 | playback_ip_lib: |
|---|
| 619 | #intentionally left empty |
|---|
| 620 | |
|---|
| 621 | playback_ip_lib_clean: |
|---|
| 622 | #intentionally left empty |
|---|
| 623 | endif # PLAYBACK_IP_SUPPORT |
|---|
| 624 | |
|---|
| 625 | ifeq ($(DTCP_IP_SUPPORT),y) |
|---|
| 626 | dtcp_ip_lib: |
|---|
| 627 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/dtcp_ip |
|---|
| 628 | |
|---|
| 629 | dtcp_ip_lib_clean: |
|---|
| 630 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/dtcp_ip clean |
|---|
| 631 | else #DTCP_IP_SUPPORT is not defined, so define empty targets |
|---|
| 632 | dtcp_ip_lib: |
|---|
| 633 | #intentionally left empty |
|---|
| 634 | |
|---|
| 635 | dtcp_ip_lib_clean: |
|---|
| 636 | #intentionally left empty |
|---|
| 637 | endif # DTCP_IP_SUPPORT |
|---|
| 638 | |
|---|
| 639 | ifeq ($(SSL_SUPPORT),y) |
|---|
| 640 | ssl_lib: |
|---|
| 641 | ${Q_}$(MAKE) -C $(BSEAV)/lib/openssl all |
|---|
| 642 | @cp $(BSEAV)/lib/openssl/src/libcrypto.a $(NEXUS_BIN_DIR) |
|---|
| 643 | @cp $(BSEAV)/lib/openssl/src/libssl.a $(NEXUS_BIN_DIR) |
|---|
| 644 | |
|---|
| 645 | ssl_lib_clean: |
|---|
| 646 | ${Q_}$(MAKE) -C $(BSEAV)/lib/openssl clean |
|---|
| 647 | else #SSL_SUPPORT is not defined, so define empty targets |
|---|
| 648 | ssl_lib: |
|---|
| 649 | |
|---|
| 650 | ssl_lib_clean: |
|---|
| 651 | endif # SSL_SUPPORT |
|---|
| 652 | |
|---|
| 653 | ifeq ($(SOFT_GFX_SUPPORT),y) |
|---|
| 654 | softgfx_lib: |
|---|
| 655 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/softgfx |
|---|
| 656 | |
|---|
| 657 | softgfx_lib_clean: |
|---|
| 658 | ${Q_}$(MAKE) -C $(NEXUS_TOP)/lib/softgfx clean |
|---|
| 659 | |
|---|
| 660 | else #SOFT_GFX_SUPPORT is not defined, so define empty targets |
|---|
| 661 | softgfx_lib: |
|---|
| 662 | #intentionally left empty |
|---|
| 663 | |
|---|
| 664 | softgfx_lib_clean: |
|---|
| 665 | #intentionally left empty |
|---|
| 666 | |
|---|
| 667 | endif # SOFT_GFX_SUPPORT |
|---|
| 668 | |
|---|
| 669 | -include $(ODIR)/*.d |
|---|