| 1 | ############################################################ |
|---|
| 2 | # (c)2003-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: platform_app.inc $ |
|---|
| 39 | # $brcm_Revision: 26 $ |
|---|
| 40 | # $brcm_Date: 8/9/11 11:46a $ |
|---|
| 41 | # |
|---|
| 42 | # Module Description: |
|---|
| 43 | # This file defines the variables needed to build an app using |
|---|
| 44 | # nexus. The output is two variables. NEXUS_APP_INCLUDE_PATHS |
|---|
| 45 | # is a list of include paths needed to find the relevant files |
|---|
| 46 | # needed to build a nexus applications. NEXUS_APP_DEFINES |
|---|
| 47 | # is a list of definitions needed to be defined in the app. |
|---|
| 48 | # In order to use these variables, you need to convert to the |
|---|
| 49 | # style your compiler needs -- e.g. |
|---|
| 50 | # $(addprefix -I,$(NEXUS_APP_INCLUDE_PATHS)) and |
|---|
| 51 | # $(addprefix -D,$(NEXUS_APP_DEFINES)) |
|---|
| 52 | # |
|---|
| 53 | # Revision History: |
|---|
| 54 | # $brcm_Log: /nexus/platforms/97400/build/platform_app.inc $ |
|---|
| 55 | # |
|---|
| 56 | # 26 8/9/11 11:46a vsilyaev |
|---|
| 57 | # SW7420-1849: Added BSEAV/lib/bfile path for applications |
|---|
| 58 | # |
|---|
| 59 | # 25 12/9/10 3:33p erickson |
|---|
| 60 | # SW7420-1308: add NEXUS_STUB_MODULES so that stub modules can have their |
|---|
| 61 | # API included but still avoid having NEXUS_HAS_<MODULE> defined |
|---|
| 62 | # |
|---|
| 63 | # 24 7/27/10 2:54p erickson |
|---|
| 64 | # SW7405-4621: nexus/base/include is no longer includeable by apps |
|---|
| 65 | # |
|---|
| 66 | # 23 7/14/10 10:32a erickson |
|---|
| 67 | # SW7405-4621: prepare for removal of nexus/base/include from app include |
|---|
| 68 | # path |
|---|
| 69 | # |
|---|
| 70 | # 22 9/16/09 3:16p erickson |
|---|
| 71 | # SW7400-2511: move nexus_platforms.inc into platform build dir |
|---|
| 72 | # |
|---|
| 73 | # 21 9/16/09 1:42p erickson |
|---|
| 74 | # SW7400-2511: add B_REFSW_ or NEXUS_ namespace to build variables |
|---|
| 75 | # |
|---|
| 76 | # 20 9/1/09 3:52p jgarrett |
|---|
| 77 | # SW7335-529: Replacing direct access to MAGNUM_MODULES with |
|---|
| 78 | # NEXUS_EXTRA_MODULES to avoid magnum paths leaking into application |
|---|
| 79 | # include paths |
|---|
| 80 | # |
|---|
| 81 | # 19 8/26/09 12:06p mward |
|---|
| 82 | # SW7125-4: Adding 97019 platform. |
|---|
| 83 | # |
|---|
| 84 | # 18 8/25/09 12:37p erickson |
|---|
| 85 | # SW7420-331: fix last checkin |
|---|
| 86 | # |
|---|
| 87 | # 17 8/25/09 11:37a nickh |
|---|
| 88 | # SW7420-331: Add 97410c support |
|---|
| 89 | # |
|---|
| 90 | # 16 7/30/09 11:07a gmohile |
|---|
| 91 | # PR 56512 : Merge 7403 support to mainline |
|---|
| 92 | # |
|---|
| 93 | # 15 7/15/09 6:39p mward |
|---|
| 94 | # PR 55545: Support 7125. |
|---|
| 95 | # |
|---|
| 96 | # 13 6/1/09 11:44a robertwm |
|---|
| 97 | # PR55062: Missing endif in Makefile and platform_app.inc |
|---|
| 98 | # |
|---|
| 99 | # 12 5/29/09 6:02p jrubio |
|---|
| 100 | # PR55232: add 7340/7342 |
|---|
| 101 | # |
|---|
| 102 | # 11 3/5/09 3:18p katrep |
|---|
| 103 | # PR52599: More support for 7205 |
|---|
| 104 | # |
|---|
| 105 | # 10 3/2/09 12:33p katrep |
|---|
| 106 | # PR52599: Add support for 7205 |
|---|
| 107 | # |
|---|
| 108 | # 9 1/28/09 10:23a vsilyaev |
|---|
| 109 | # PR 51629: Added missing endif |
|---|
| 110 | # |
|---|
| 111 | ############################################################ |
|---|
| 112 | ifndef NEXUS_TOP |
|---|
| 113 | $(error NEXUS_TOP is not defined) |
|---|
| 114 | endif |
|---|
| 115 | |
|---|
| 116 | # Include nexus definitions |
|---|
| 117 | include $(NEXUS_TOP)/build/nexus_defs.inc |
|---|
| 118 | include $(NEXUS_TOP)/platforms/$(NEXUS_PLATFORM)/build/nexus_platforms.inc |
|---|
| 119 | |
|---|
| 120 | # Include nexus modules |
|---|
| 121 | include $(NEXUS_TOP)/platforms/$(NEXUS_PLATFORM)/build/platform_modules.inc |
|---|
| 122 | |
|---|
| 123 | # Remove BASE from public API. Leaving it in for now to ease the transition. |
|---|
| 124 | NEXUS_MODULES := $(patsubst BASE,,$(NEXUS_MODULES)) |
|---|
| 125 | |
|---|
| 126 | # Convert include paths into single variable |
|---|
| 127 | NEXUS_APP_INCLUDE_PATHS := $(foreach module, $(NEXUS_MODULES) $(NEXUS_STUB_MODULES), $(NEXUS_$(module)_PUBLIC_INCLUDES)) |
|---|
| 128 | NEXUS_APP_DEFINES := $(foreach module, $(NEXUS_MODULES), $(NEXUS_$(module)_DEFINES)) |
|---|
| 129 | NEXUS_APP_DEFINES += $(foreach module, $(NEXUS_MODULES),NEXUS_HAS_$(module)) |
|---|
| 130 | |
|---|
| 131 | # Sanity check that no modules have leaked into the build system |
|---|
| 132 | ifneq ($(MAGNUM_MODULES),) |
|---|
| 133 | $(error MAGNUM_MODULES should not be defined. It's defined as $(MAGNUM_MODULES)) |
|---|
| 134 | endif |
|---|
| 135 | |
|---|
| 136 | # Add in magnum base module paths also |
|---|
| 137 | include $(MAGNUM)/basemodules/kni/bkni.inc |
|---|
| 138 | include $(MAGNUM)/basemodules/std/bstd.inc |
|---|
| 139 | include $(MAGNUM)/basemodules/dbg/bdbg.inc |
|---|
| 140 | include $(MAGNUM)/basemodules/chp/bchp.inc |
|---|
| 141 | include $(MAGNUM)/basemodules/reg/breg.inc |
|---|
| 142 | include $(MAGNUM)/basemodules/err/berr.inc |
|---|
| 143 | include $(MAGNUM)/commonutils/lst/blst.inc |
|---|
| 144 | |
|---|
| 145 | # Convert magnum includes into the same variable |
|---|
| 146 | NEXUS_APP_INCLUDE_PATHS += $(foreach module, $(MAGNUM_MODULES), $($(module)_INCLUDES)) |
|---|
| 147 | NEXUS_APP_DEFINES += $(foreach module, $(MAGNUM_MODULES), $($(module)_DEFINES)) |
|---|
| 148 | |
|---|
| 149 | ifeq ($(filter FILE, ${NEXUS_MODULES}), FILE) |
|---|
| 150 | include $(BSEAV)/lib/bfile/bfile.inc |
|---|
| 151 | NEXUS_APP_INCLUDE_PATHS += ${BFILE_INCLUDES} |
|---|
| 152 | endif |
|---|
| 153 | |
|---|
| 154 | |
|---|
| 155 | |
|---|