1 #
2 # Copyright (c) 2018, Texas Instruments Incorporated
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 #
9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 #
12 # * Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 #
16 # * Neither the name of Texas Instruments Incorporated nor the names of
17 # its contributors may be used to endorse or promote products derived
18 # from this software without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #
33 # File: mcbsp_component.mk
34 # This file is component include make file of mcbsp library.
35 # List of variables set in this file and their purpose:
36 # <mod>_RELPATH - This is the relative path of the module, typically from
37 # top-level directory of the package
38 # <mod>_PATH - This is the absolute path of the module. It derives from
39 # absolute path of the top-level directory (set in env.mk)
40 # and relative path set above
41 # <mod>_INCLUDE - This is the path that has interface header files of the
42 # module. This can be multiple directories (space separated)
43 # <mod>_PKG_LIST - Names of the modules (and sub-modules) that are a part
44 # part of this module, including itself.
45 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
46 # board and the compiled obj/lib has to be kept
47 # under <board> directory
48 # "no" or "" or if this variable is not defined: means
49 # this module has no board dependent code and hence
50 # the obj/libs are not kept under <board> dir.
51 # <mod>_CORE_DEPENDENCY - "yes": means the code for this module depends on
52 # core and the compiled obj/lib has to be kept
53 # under <core> directory
54 # "no" or "" or if this variable is not defined: means
55 # this module has no core dependent code and hence
56 # the obj/libs are not kept under <core> dir.
57 # <mod>_APP_STAGE_FILES - List of source files that belongs to the module
58 # <mod>, but that needs to be compiled at application
59 # build stage (in the context of the app). This is
60 # primarily for link time configurations or if the
61 # source file is dependent on options/defines that are
62 # application dependent. This can be left blank or
63 # not defined at all, in which case, it means there
64 # no source files in the module <mod> that are required
65 # to be compiled in the application build stage.
66 #
68 ifeq ($(mcbsp_component_make_include), )
70 # under other list
71 drvmcbsp_BOARDLIST =
72 drvmcbsp_SOCLIST = k2g omapl138 c6657
73 drvmcbsp_k2g_CORELIST = c66x
74 drvmcbsp_omapl138_CORELIST = c674x
75 drvmcbsp_c6657_CORELIST = c66x
77 ############################
78 # mcbsp package
79 # List of components included under mcbsp lib
80 # The components included here are built and will be part of mcbsp lib
81 ############################
83 mcbsp_LIB_LIST = mcbsp
84 drvmcbsp_LIB_LIST = $(mcbsp_LIB_LIST)
86 ############################
87 # mcbsp examples
88 # List of examples under mcbsp
89 # All the tests mentioned in list are built when test target is called
90 # List below all examples for allowed values
91 ############################
92 mcbsp_EXAMPLE_LIST =
94 #
95 # mcbsp Modules
96 #
98 # mcbsp LIB
99 mcbsp_COMP_LIST = mcbsp
100 mcbsp_RELPATH = ti/drv/mcbsp
101 mcbsp_PATH = $(PDK_MCBSP_COMP_PATH)
102 mcbsp_LIBNAME = ti.drv.mcbsp
103 export mcbsp_LIBNAME
104 mcbsp_LIBPATH = $(mcbsp_PATH)/lib
105 export mcbsp_LIBPATH
106 mcbsp_OBJPATH = $(mcbsp_RELPATH)/mcbsp
107 export mcbsp_OBJPATH
108 mcbsp_MAKEFILE = -f build/makefile.mk
109 export mcbsp_MAKEFILE
110 mcbsp_BOARD_DEPENDENCY = no
111 mcbsp_CORE_DEPENDENCY = no
112 mcbsp_SOC_DEPENDENCY = yes
113 export mcbsp_COMP_LIST
114 export mcbsp_BOARD_DEPENDENCY
115 export mcbsp_CORE_DEPENDENCY
116 export mcbsp_SOC_DEPENDENCY
117 mcbsp_PKG_LIST = mcbsp
118 export mcbsp_PKG_LIST
119 mcbsp_INCLUDE = $(mcbsp_PATH)
120 mcbsp_SOCLIST = $(drvmcbsp_SOCLIST)
121 export mcbsp_SOCLIST
122 mcbsp_$(SOC)_CORELIST = $(drvmcbsp_$(SOC)_CORELIST)
123 export mcbsp_$(SOC)_CORELIST
125 export drvmcbsp_LIB_LIST
126 export mcbsp_LIB_LIST
128 mcbsp_component_make_include := 1
129 endif