| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2008, 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.core $ |
|---|
| 11 | # $brcm_Revision: 29 $ |
|---|
| 12 | # $brcm_Date: 2/7/08 5:58p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # Created: 02/09/2001 by Marcus Kellerman |
|---|
| 19 | # |
|---|
| 20 | # $brcm_Log: /BSEAV/api/build/proxy/Makefile.core $ |
|---|
| 21 | # |
|---|
| 22 | # 29 2/7/08 5:58p jrubio |
|---|
| 23 | # PR39415: add 7325 kernelmode suport |
|---|
| 24 | # |
|---|
| 25 | # 28 1/3/08 2:02p mphillip |
|---|
| 26 | # PR35854: Merge p3d changes |
|---|
| 27 | # |
|---|
| 28 | # 27 12/10/07 6:42p mward |
|---|
| 29 | # PR38078: Create PLATFORM for 97018, 97018RNG |
|---|
| 30 | # |
|---|
| 31 | # 26 11/26/07 12:18p katrep |
|---|
| 32 | # PR37217: Added 97335 platfrom |
|---|
| 33 | # |
|---|
| 34 | # 25 11/14/07 10:24a gmohile |
|---|
| 35 | # PR 25109 : Default unified itb on for 7401 |
|---|
| 36 | # |
|---|
| 37 | # PR35854/2 12/18/07 7:44p mphillip |
|---|
| 38 | # PR35854: Remove p3d user-space BCHP |
|---|
| 39 | # |
|---|
| 40 | # PR35854/1 12/3/07 6:35p mphillip |
|---|
| 41 | # PR35854: Update build for kernel-mode 3d |
|---|
| 42 | # |
|---|
| 43 | # 24 8/29/07 5:58p mward |
|---|
| 44 | # PR31736: Now default on UNIFIED_ITB_SUPPORT for 97400. (correct |
|---|
| 45 | # comment) |
|---|
| 46 | # |
|---|
| 47 | # 23 8/29/07 12:11p mward |
|---|
| 48 | # PR31736: Now default on UNIFIED_ITB_SUPPORT for 97400. |
|---|
| 49 | # |
|---|
| 50 | # 22 8/21/07 6:23p mward |
|---|
| 51 | # PR31736: Pass through UNIFIED_ITB_SUPPORT for 97400 development, |
|---|
| 52 | # default off. |
|---|
| 53 | # |
|---|
| 54 | # 21 8/13/07 6:34p mward |
|---|
| 55 | # PR32434: Default UNIFIED_ITB_SUPPORT for 97118[RNG] again, working now. |
|---|
| 56 | # |
|---|
| 57 | # 20 8/8/07 6:07p mward |
|---|
| 58 | # PR32434: Default UNIFIED_ITB_SUPPORT for 97118[RNG] off, audio |
|---|
| 59 | # problems. |
|---|
| 60 | # |
|---|
| 61 | # 19 8/8/07 10:48a ayxiang |
|---|
| 62 | # PR33836: add B_CONFIG_IMAGE support for 97458 |
|---|
| 63 | # |
|---|
| 64 | # 18 8/6/07 12:32p mward |
|---|
| 65 | # PR32434: Default UNIFIED_ITB_SUPPORT for 97118[RNG] |
|---|
| 66 | # |
|---|
| 67 | # 17 8/2/07 12:25p mward |
|---|
| 68 | # PR32537: Pass through UNIFIED_ITB_SUPPORT for 97118[RNG] development. |
|---|
| 69 | # |
|---|
| 70 | # 16 7/20/07 8:35p katrep |
|---|
| 71 | # PR27643: Updated for 7405 |
|---|
| 72 | # |
|---|
| 73 | # 15 7/20/07 11:51a katrep |
|---|
| 74 | # PR27643: Add B_CONFIG_IMAGE support for 7405 |
|---|
| 75 | # |
|---|
| 76 | # 14 7/17/07 3:10p gmohile |
|---|
| 77 | # PR 33056: Add B_CONFIG_IMAGE support for 7403 |
|---|
| 78 | # |
|---|
| 79 | # 13 7/6/07 10:21a prasadv |
|---|
| 80 | # PR32537, PR32809: Add B_CONFIG_IMAGE support for 97455 and 97456 |
|---|
| 81 | # |
|---|
| 82 | # 12 6/27/07 5:07p mward |
|---|
| 83 | # PR32537: Add B_CONFIG_IMAGE support for 97118[RNG]. |
|---|
| 84 | # |
|---|
| 85 | # 11 6/14/07 4:00p ahulse |
|---|
| 86 | # PR23100: B_CONFIG_IMAGE support for 7400 |
|---|
| 87 | # |
|---|
| 88 | # 10 6/12/07 3:00p ahulse |
|---|
| 89 | # PR23100: B_CONFIG_IMAGE support for 7401 |
|---|
| 90 | # |
|---|
| 91 | # 9 1/11/07 2:32p jgarrett |
|---|
| 92 | # PR 27004: Adding transition.inc |
|---|
| 93 | # |
|---|
| 94 | # 8 9/6/06 5:04p vsilyaev |
|---|
| 95 | # PR 24124: Added framework to detect stack overflow |
|---|
| 96 | # |
|---|
| 97 | # 7 8/10/06 2:49p jgarrett |
|---|
| 98 | # PR 23016: Merging new linuxkernel KNI to main branch. |
|---|
| 99 | # |
|---|
| 100 | # PR23016/1 8/3/06 1:15p jgarrett |
|---|
| 101 | # PR 23016: Adding bsettop_syslog.c |
|---|
| 102 | # |
|---|
| 103 | # 6 3/15/06 4:51p vsilyaev |
|---|
| 104 | # PR20221: NetIF DMA interface |
|---|
| 105 | # |
|---|
| 106 | # 5 11/1/05 7:07p vsilyaev |
|---|
| 107 | # PR 17883: Use image for the raptor audio |
|---|
| 108 | # |
|---|
| 109 | # 4 10/31/05 6:13p vsilyaev |
|---|
| 110 | # PR 17883: Added image interface to the 97398 platform |
|---|
| 111 | # |
|---|
| 112 | # 3 9/15/05 11:34a erickson |
|---|
| 113 | # PR17148: added new required basemodules |
|---|
| 114 | # |
|---|
| 115 | # 2 3/10/05 3:57p mphillip |
|---|
| 116 | # PR14402: Catch the proxy build up by moving compose into the toplevel |
|---|
| 117 | # makefile |
|---|
| 118 | # |
|---|
| 119 | # 1 2/7/05 6:57p dlwin |
|---|
| 120 | # Merge down for release 2005_REFSW_MERGETOMAIN: |
|---|
| 121 | # |
|---|
| 122 | # Irvine_BSEAVSW_Devel/6 1/28/05 11:13a erickson |
|---|
| 123 | # PR13908: refactor to make external include of Makefile.core correct |
|---|
| 124 | # |
|---|
| 125 | # Irvine_BSEAVSW_Devel/5 1/25/05 5:12p erickson |
|---|
| 126 | # PR13908: Settop API makefile rework |
|---|
| 127 | # |
|---|
| 128 | # Irvine_BSEAVSW_Devel/4 11/24/04 5:29p vsilyaev |
|---|
| 129 | # PR13165: Interface for the timer module. |
|---|
| 130 | # |
|---|
| 131 | # Irvine_BSEAVSW_Devel/3 7/6/04 3:56p erickson |
|---|
| 132 | # PR11771: settop api dataflow redesign |
|---|
| 133 | # |
|---|
| 134 | # Irvine_BSEAVSW_Devel/2 6/16/04 5:16p erickson |
|---|
| 135 | # PR11135: added callback support |
|---|
| 136 | # |
|---|
| 137 | # Irvine_BSEAVSW_Devel/1 5/17/04 11:14a erickson |
|---|
| 138 | # PR11135: added initial linux proxy impl |
|---|
| 139 | # |
|---|
| 140 | # Irvine_BSEAVSW_Devel/16 5/12/04 10:23a erickson |
|---|
| 141 | # PR10967: added standard header |
|---|
| 142 | ############################################################ |
|---|
| 143 | |
|---|
| 144 | include $(BSEAV)/api/build/Makefile.common |
|---|
| 145 | |
|---|
| 146 | BUILD_SYSTEM=proxy |
|---|
| 147 | OS = linuxuser |
|---|
| 148 | |
|---|
| 149 | CFLAGS += -I$(BSETTOP)/src/proxy |
|---|
| 150 | CFLAGS += -I$(BSETTOP)/build/proxy |
|---|
| 151 | CFLAGS += -I$(BSETTOP)/src/pvr |
|---|
| 152 | |
|---|
| 153 | vpath %.c $(BSETTOP)/src/proxy |
|---|
| 154 | vpath %.c $(BSETTOP)/build/proxy |
|---|
| 155 | |
|---|
| 156 | OBJ = |
|---|
| 157 | ROCKFORD := ${MAGNUM}/../rockford |
|---|
| 158 | include $(ROCKFORD)/modules/basemodules.inc |
|---|
| 159 | CFLAGS += -I$(MAGNUM)/basemodules/chp |
|---|
| 160 | CFLAGS += -I$(MAGNUM)/basemodules/reg |
|---|
| 161 | CFLAGS += -DB_SYSTEM_proxy=1 |
|---|
| 162 | |
|---|
| 163 | |
|---|
| 164 | ifeq (${SYSTEM}, linux) |
|---|
| 165 | SRCS += \ |
|---|
| 166 | bsettop_base_mem.c \ |
|---|
| 167 | bsettop_core.c \ |
|---|
| 168 | bsettop_core_stackguard.c \ |
|---|
| 169 | bsettop_linux.c \ |
|---|
| 170 | bsettop_priv.c \ |
|---|
| 171 | bsettop_timer.c \ |
|---|
| 172 | bsettop_kernelproxy.c \ |
|---|
| 173 | bsettop_base.c \ |
|---|
| 174 | bsettop_syslog.c |
|---|
| 175 | endif |
|---|
| 176 | |
|---|
| 177 | |
|---|
| 178 | ifeq (${PLATFORM}, 97398) |
|---|
| 179 | BCHP_XVD_CHIP := 7411 |
|---|
| 180 | SRCS += \ |
|---|
| 181 | bsettop_image.c |
|---|
| 182 | |
|---|
| 183 | include $(ROCKFORD)/modules/${BCHP_XVD_CHIP}_img.inc |
|---|
| 184 | include $(ROCKFORD)/modules/${BCHP_XVD_CHIP}/rap_img.inc |
|---|
| 185 | include $(ROCKFORD)/modules/img.inc |
|---|
| 186 | |
|---|
| 187 | CFLAGS += -I${BSEAV}/linux/driver/97038 -DB_CONFIG_IMAGE=1 |
|---|
| 188 | |
|---|
| 189 | endif |
|---|
| 190 | |
|---|
| 191 | ifeq ($(findstring $(PLATFORM),97400 97401 97403 97405 97335 97325 97018 97018RNG 97118 97118RNG 97455 97456 97458), $(PLATFORM)) |
|---|
| 192 | |
|---|
| 193 | BCHP_VER_LOWER ?= $(shell awk 'BEGIN{print tolower("$(BCHP_VER)")}') |
|---|
| 194 | |
|---|
| 195 | ifeq ($(findstring $(PLATFORM),97401 97455), $(PLATFORM)) |
|---|
| 196 | BCHP_CHIP ?= 7401 |
|---|
| 197 | BCHP_XVD_CHIP := 7401 |
|---|
| 198 | ifneq ($(subst N,n,${UNIFIED_ITB_SUPPORT}),n) |
|---|
| 199 | CFLAGS += -DUNIFIED_ITB_SUPPORT |
|---|
| 200 | UNIFIED_ITB_SUPPORT := y |
|---|
| 201 | endif |
|---|
| 202 | endif |
|---|
| 203 | ifeq ($(findstring $(PLATFORM),97403, 97458), $(PLATFORM)) |
|---|
| 204 | BCHP_CHIP ?= 7403 |
|---|
| 205 | BCHP_XVD_CHIP := 7403 |
|---|
| 206 | endif |
|---|
| 207 | ifeq ($(findstring $(PLATFORM),97405), $(PLATFORM)) |
|---|
| 208 | BCHP_CHIP ?= 7405 |
|---|
| 209 | BCHP_XVD_CHIP := 7405 |
|---|
| 210 | endif |
|---|
| 211 | ifeq ($(findstring $(PLATFORM),97335), $(PLATFORM)) |
|---|
| 212 | BCHP_CHIP ?= 7335 |
|---|
| 213 | BCHP_XVD_CHIP := 7335 |
|---|
| 214 | endif |
|---|
| 215 | ifeq ($(findstring $(PLATFORM),97325), $(PLATFORM)) |
|---|
| 216 | BCHP_CHIP ?= 7325 |
|---|
| 217 | BCHP_XVD_CHIP := 7325 |
|---|
| 218 | endif |
|---|
| 219 | ifeq ($(findstring $(PLATFORM),97018 97018RNG 97118 97118RNG), $(PLATFORM)) |
|---|
| 220 | BCHP_CHIP ?= 7118 |
|---|
| 221 | BCHP_XVD_CHIP := 7118 |
|---|
| 222 | # RAVE unified ITB support. (default on) |
|---|
| 223 | ifneq ($(subst N,n,${UNIFIED_ITB_SUPPORT}),n) |
|---|
| 224 | CFLAGS += -DUNIFIED_ITB_SUPPORT |
|---|
| 225 | UNIFIED_ITB_SUPPORT := y |
|---|
| 226 | endif |
|---|
| 227 | endif |
|---|
| 228 | ifeq ($(findstring $(PLATFORM),97400 97456), $(PLATFORM)) |
|---|
| 229 | BCHP_CHIP ?= 7400 |
|---|
| 230 | # RAVE unified ITB support. (default on) |
|---|
| 231 | ifneq ($(subst N,n,${UNIFIED_ITB_SUPPORT}),n) |
|---|
| 232 | CFLAGS += -DUNIFIED_ITB_SUPPORT |
|---|
| 233 | UNIFIED_ITB_SUPPORT := y |
|---|
| 234 | endif |
|---|
| 235 | endif |
|---|
| 236 | |
|---|
| 237 | SRCS += \ |
|---|
| 238 | bsettop_image.c |
|---|
| 239 | |
|---|
| 240 | BRAP_IMG_ONLY := y |
|---|
| 241 | BXVD_IMG_ONLY := y |
|---|
| 242 | |
|---|
| 243 | include ${MAGNUM}/portinginterface/rap/brap.inc |
|---|
| 244 | include ${MAGNUM}/portinginterface/xvd/bxvd.inc |
|---|
| 245 | |
|---|
| 246 | CFLAGS += -I${BSEAV}/linux/driver/97038 -DB_CONFIG_IMAGE=1 |
|---|
| 247 | CFLAGS += -I$(MAGNUM)/commonutils/img |
|---|
| 248 | |
|---|
| 249 | ifeq ($(B_GLES_SUPPORT),y) |
|---|
| 250 | include ${MAGNUM}/portinginterface/p3d/bp3d.inc |
|---|
| 251 | |
|---|
| 252 | CFLAGS += -I$(MAGNUM)/basemodules/mem |
|---|
| 253 | CFLAGS += -I$(MAGNUM)/basemodules/int |
|---|
| 254 | CFLAGS += -I$(MAGNUM)/basemodules/chp/${BCHP_CHIP} |
|---|
| 255 | CFLAGS += -I$(MAGNUM)/basemodules/chp/${BCHP_CHIP}/rdb/c0 |
|---|
| 256 | CFLAGS += -I$(MAGNUM)/commonutils/sur/${BCHP_CHIP} |
|---|
| 257 | CFLAGS += -I$(MAGNUM)/commonutils/pxl/ |
|---|
| 258 | CFLAGS += -I$(MAGNUM)/portinginterface/grc/${BCHP_CHIP} |
|---|
| 259 | include $(ROCKFORD)/modules/opengles.inc |
|---|
| 260 | include $(ROCKFORD)/middleware/opengles/linux/opengles.inc |
|---|
| 261 | |
|---|
| 262 | include $(MAGNUM)/commonutils/pxl/bpxl.inc |
|---|
| 263 | include $(MAGNUM)/commonutils/sur/bsur.inc |
|---|
| 264 | |
|---|
| 265 | include $(MAGNUM)/basemodules/mem/bmem.inc |
|---|
| 266 | include $(MAGNUM)/basemodules/reg/breg.inc |
|---|
| 267 | include $(MAGNUM)/portinginterface/grc/bgrc.inc |
|---|
| 268 | |
|---|
| 269 | CFLAGS += -I$(MAGNUM)/basemodules/tmr/${BCHP_CHIP} |
|---|
| 270 | include $(MAGNUM)/basemodules/tmr/btmr.inc |
|---|
| 271 | include $(MAGNUM)/basemodules/int/bint.inc |
|---|
| 272 | endif |
|---|
| 273 | |
|---|
| 274 | endif |
|---|
| 275 | |
|---|
| 276 | # Include transition.inc file at the end of the build |
|---|
| 277 | # Do not fail on this, it should be harmless on older builds |
|---|
| 278 | ifeq ($(wildcard $(ROCKFORD)/modules/transition.inc),) |
|---|
| 279 | $(warning $(ROCKFORD)/modules/transition.inc is missing. This may cause problems in your build.) |
|---|
| 280 | else |
|---|
| 281 | include $(ROCKFORD)/modules/transition.inc |
|---|
| 282 | endif |
|---|
| 283 | |
|---|