| 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: file.inc $ |
|---|
| 39 | # $brcm_Revision: 11 $ |
|---|
| 40 | # $brcm_Date: 9/6/11 10:10a $ |
|---|
| 41 | # |
|---|
| 42 | # Module Description: |
|---|
| 43 | # |
|---|
| 44 | # Revision History: |
|---|
| 45 | # |
|---|
| 46 | # $brcm_Log: /nexus/modules/file/file.inc $ |
|---|
| 47 | # |
|---|
| 48 | # 11 9/6/11 10:10a erickson |
|---|
| 49 | # SWNOOS-482: correct internal spelling |
|---|
| 50 | # |
|---|
| 51 | # 10 4/27/11 6:20p vsilyaev |
|---|
| 52 | # SW7425-232: Promote ATOM module to separate component |
|---|
| 53 | # |
|---|
| 54 | # 9 2/3/11 2:31p vsilyaev |
|---|
| 55 | # SW7420-1457: Compile media related file modules |
|---|
| 56 | # |
|---|
| 57 | # 8 1/19/11 2:02p erickson |
|---|
| 58 | # SW7420-1123: socket-based usermode IPC |
|---|
| 59 | # |
|---|
| 60 | # 7 9/22/10 6:59p vsilyaev |
|---|
| 61 | # SW7405-4419: Added API for file editing |
|---|
| 62 | # |
|---|
| 63 | # 6 9/22/10 12:39p jtna |
|---|
| 64 | # SW7405-4865: moved bvlc.c and .h to magnum/commonutils/vlc |
|---|
| 65 | # |
|---|
| 66 | # 5 4/22/10 6:57p mphillip |
|---|
| 67 | # SW7405-4251: Merge chunked PVR support from branch to main |
|---|
| 68 | # |
|---|
| 69 | # SW7405-3587/1 2/4/10 10:10a mphillip |
|---|
| 70 | # SW7405-3587: Add fifo chunk build support |
|---|
| 71 | # |
|---|
| 72 | # 4 9/18/09 5:04p erickson |
|---|
| 73 | # SW7405-3025: allow File module to build without Playback module |
|---|
| 74 | # |
|---|
| 75 | # 3 9/16/09 1:40p erickson |
|---|
| 76 | # SW7400-2511: add B_REFSW_ or NEXUS_ namespace to build variables |
|---|
| 77 | # |
|---|
| 78 | # 2 9/1/09 3:52p jgarrett |
|---|
| 79 | # SW7335-529: Replacing direct access to MAGNUM_MODULES with |
|---|
| 80 | # NEXUS_EXTRA_MODULES to avoid magnum paths leaking into application |
|---|
| 81 | # include paths |
|---|
| 82 | # |
|---|
| 83 | # 1 1/18/08 2:14p jgarrett |
|---|
| 84 | # PR 38808: Merging to main branch |
|---|
| 85 | # |
|---|
| 86 | # Nexus_Devel/2 11/13/07 11:12a vsilyaev |
|---|
| 87 | # PR 37015: Initial checking for timeshifting/FIFO file |
|---|
| 88 | # |
|---|
| 89 | # Nexus_Devel/1 10/10/07 4:02p vsilyaev |
|---|
| 90 | # PR 35824: File I/O module |
|---|
| 91 | # |
|---|
| 92 | # |
|---|
| 93 | ############################################################ |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | # |
|---|
| 97 | # Conditional Options for this Makefile |
|---|
| 98 | # |
|---|
| 99 | # NEXUS_OS - OS to be used |
|---|
| 100 | # |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | ###################### |
|---|
| 104 | # Define this module # |
|---|
| 105 | ###################### |
|---|
| 106 | NEXUS_MODULES += FILE |
|---|
| 107 | |
|---|
| 108 | ################## |
|---|
| 109 | # Module Options # |
|---|
| 110 | ################## |
|---|
| 111 | |
|---|
| 112 | ################### |
|---|
| 113 | # Module Includes # |
|---|
| 114 | ################### |
|---|
| 115 | NEXUS_FILE_PUBLIC_INCLUDES = $(NEXUS_TOP)/modules/file/include $(NEXUS_TOP)/modules/file/include/$(B_REFSW_OS) |
|---|
| 116 | NEXUS_FILE_PRIVATE_INCLUDES = \ |
|---|
| 117 | $(NEXUS_TOP)/modules/file/src \ |
|---|
| 118 | $(NEXUS_TOP)/modules/file/src/$(B_REFSW_OS) \ |
|---|
| 119 | ${BSEAV}/lib/bcmplayer/include |
|---|
| 120 | |
|---|
| 121 | ################## |
|---|
| 122 | # Module Sources # |
|---|
| 123 | ################## |
|---|
| 124 | NEXUS_FILE_SOURCES = \ |
|---|
| 125 | $(NEXUS_TOP)/modules/file/src/nexus_file.c \ |
|---|
| 126 | $(NEXUS_TOP)/modules/file/src/nexus_file_module.c \ |
|---|
| 127 | $(NEXUS_TOP)/modules/file/src/nexus_file_scheduler.c \ |
|---|
| 128 | $(NEXUS_TOP)/modules/file/src/nexus_file_chunk.c \ |
|---|
| 129 | $(NEXUS_TOP)/modules/file/src/nexus_file_fifo.c \ |
|---|
| 130 | $(NEXUS_TOP)/modules/file/src/nexus_file_fifo_chunk.c \ |
|---|
| 131 | $(NEXUS_TOP)/modules/file/src/$(B_REFSW_OS)/nexus_file_posix.c |
|---|
| 132 | |
|---|
| 133 | # thunk layer |
|---|
| 134 | NEXUS_FILE_PRIVATE_INCLUDES += $(NEXUS_SYNCTHUNK_DIR) |
|---|
| 135 | NEXUS_FILE_SOURCES += $(NEXUS_SYNCTHUNK_DIR)/nexus_file_thunks.c |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | ################## |
|---|
| 139 | # Module Defines # |
|---|
| 140 | ################## |
|---|
| 141 | |
|---|
| 142 | ####################### |
|---|
| 143 | # Module Dependencies # |
|---|
| 144 | ####################### |
|---|
| 145 | NEXUS_FILE_DEPENDENCIES := CORE |
|---|
| 146 | |
|---|
| 147 | NEXUS_FILE_MAGNUM_MODULES := \ |
|---|
| 148 | ${BSEAV}/lib/utils/batom.inc \ |
|---|
| 149 | ${BSEAV}/lib/bfile/bfile.inc |
|---|
| 150 | |
|---|
| 151 | B_NAV_PLAYER_SOURCES = \ |
|---|
| 152 | ${BSEAV}/lib/bcmplayer/src/bcmplayer.c \ |
|---|
| 153 | ${BSEAV}/lib/bcmplayer/src/bcmindexer_vc1.c \ |
|---|
| 154 | ${BSEAV}/lib/bcmplayer/src/bcmindexer.c |
|---|
| 155 | |
|---|
| 156 | B_NAV_PLAYER_INCLUDES = \ |
|---|
| 157 | ${BSEAV}/lib/bcmplayer/include |
|---|
| 158 | |
|---|
| 159 | # BSEAV makefiles don't include their module names into MAGNUM_MODULES |
|---|
| 160 | NEXUS_EXTRA_MODULES += BATOM BFILE BFILE_MEDIA |
|---|
| 161 | |
|---|
| 162 | # if nexus is compiled without playback module, file needs to include bcmplayer code |
|---|
| 163 | NEXUS_EXTRA_MODULES += B_NAV_PLAYER |
|---|