1 #*******************************************************************************
2 # *
3 # Copyright (c) 2016 Texas Instruments Incorporated - http://www.ti.com/ *
4 # ALL RIGHTS RESERVED *
5 # *
6 #*******************************************************************************
8 # File: gpmc_component.mk
9 # This file is component include make file of GPMC library.
10 # List of variables set in this file and their purpose:
11 # <mod>_RELPATH - This is the relative path of the module, typically from
12 # top-level directory of the package
13 # <mod>_PATH - This is the absolute path of the module. It derives from
14 # absolute path of the top-level directory (set in env.mk)
15 # and relative path set above
16 # <mod>_INCLUDE - This is the path that has interface header files of the
17 # module. This can be multiple directories (space separated)
18 # <mod>_PKG_LIST - Names of the modules (and sub-modules) that are a part
19 # part of this module, including itself.
20 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
21 # platform and the compiled obj/lib has to be kept
22 # under <platform> directory
23 # "no" or "" or if this variable is not defined: means
24 # this module has no platform dependent code and hence
25 # the obj/libs are not kept under <platform> dir.
26 # <mod>_CORE_DEPENDENCY - "yes": means the code for this module depends on
27 # core and the compiled obj/lib has to be kept
28 # under <core> directory
29 # "no" or "" or if this variable is not defined: means
30 # this module has no core dependent code and hence
31 # the obj/libs are not kept under <core> dir.
32 # <mod>_APP_STAGE_FILES - List of source files that belongs to the module
33 # <mod>, but that needs to be compiled at application
34 # build stage (in the context of the app). This is
35 # primarily for link time configurations or if the
36 # source file is dependent on options/defines that are
37 # application dependent. This can be left blank or
38 # not defined at all, in which case, it means there
39 # no source files in the module <mod> that are required
40 # to be compiled in the application build stage.
41 #
42 ifeq ($(gpmc_component_make_include), )
44 # under other list
45 drvgpmc_BOARDLIST = icev2AM335x evmAM437x
46 drvgpmc_SOCLIST = am437x am335x
47 drvgpmc_am437x_CORELIST = a9host
48 drvgpmc_am335x_CORELIST = a8host
50 ############################
51 # gpmc package
52 # List of components included under gpmc lib
53 # The components included here are built and will be part of gpmc lib
54 ############################
55 gpmc_LIB_LIST = gpmc gpmc_dma gpmc_profile gpmc_dma_profile gpmc_indp gpmc_profile_indp
56 drvgpmc_LIB_LIST = $(gpmc_LIB_LIST)
58 ############################
59 # gpmc examples
60 # List of examples under gpmc
61 # All the tests mentioned in list are built when test target is called
62 # List below all examples for allowed values
63 ############################
64 gpmc_EXAMPLE_LIST =
65 drvgpmc_EXAMPLE_LIST = $(gpmc_EXAMPLE_LIST)
67 #
68 # GPMC Modules
69 #
71 # GPMC LIB
72 gpmc_COMP_LIST = gpmc
73 gpmc_RELPATH = ti/drv/gpmc
74 gpmc_PATH = $(PDK_GPMC_COMP_PATH)
75 gpmc_LIBNAME = ti.drv.gpmc
76 export gpmc_LIBNAME
77 gpmc_LIBPATH = $(gpmc_PATH)/lib
78 export gpmc_LIBPATH
79 gpmc_OBJPATH = $(gpmc_RELPATH)/gpmc
80 export gpmc_OBJPATH
81 gpmc_MAKEFILE = -f build/makefile.mk
82 export gpmc_MAKEFILE
83 gpmc_BOARD_DEPENDENCY = no
84 gpmc_CORE_DEPENDENCY = no
85 gpmc_SOC_DEPENDENCY = yes
86 export gpmc_COMP_LIST
87 export gpmc_BOARD_DEPENDENCY
88 export gpmc_CORE_DEPENDENCY
89 export gpmc_SOC_DEPENDENCY
90 gpmc_PKG_LIST = gpmc
91 gpmc_INCLUDE = $(gpmc_PATH)
92 gpmc_SOCLIST = am437x am335x
93 export gpmc_SOCLIST
94 gpmc_$(SOC)_CORELIST = $(drvgpmc_$(SOC)_CORELIST)
95 export gpmc_$(SOC)_CORELIST
97 # GPMC LIB DEVICE INDEPENDENT
98 gpmc_indp_COMP_LIST = gpmc_indp
99 gpmc_indp_RELPATH = ti/drv/gpmc
100 gpmc_indp_PATH = $(PDK_GPMC_COMP_PATH)
101 gpmc_indp_LIBNAME = ti.drv.gpmc
102 export gpmc_indp_LIBNAME
103 gpmc_indp_LIBPATH = $(gpmc_indp_PATH)/lib
104 export gpmc_indp_LIBPATH
105 gpmc_indp_OBJPATH = $(gpmc_indp_RELPATH)/gpmc_indp
106 export gpmc_indp_OBJPATH
107 gpmc_indp_MAKEFILE = -f build/makefile_indp.mk
108 export gpmc_indp_MAKEFILE
109 gpmc_indp_BOARD_DEPENDENCY = no
110 gpmc_indp_CORE_DEPENDENCY = no
111 gpmc_indp_SOC_DEPENDENCY = no
112 export gpmc_indp_COMP_LIST
113 export gpmc_indp_BOARD_DEPENDENCY
114 export gpmc_indp_CORE_DEPENDENCY
115 export gpmc_indp_SOC_DEPENDENCY
116 gpmc_indp_PKG_LIST = gpmc_indp
117 gpmc_indp_INCLUDE = $(gpmc_indp_PATH)
118 gpmc_indp_SOCLIST = am437x am335x
119 export gpmc_indp_SOCLIST
120 gpmc_indp_$(SOC)_CORELIST = $(drvgpmc_$(SOC)_CORELIST)
121 export gpmc_indp_$(SOC)_CORELIST
123 # GPMC PROFILING SOC LIB
124 gpmc_profile_COMP_LIST = gpmc_profile
125 gpmc_profile_RELPATH = ti/drv/gpmc
126 gpmc_profile_PATH = $(PDK_GPMC_COMP_PATH)
127 gpmc_profile_LIBNAME = ti.drv.gpmc.profiling
128 export gpmc_profile_LIBNAME
129 gpmc_profile_LIBPATH = $(gpmc_profile_PATH)/lib
130 export gpmc_profile_LIBPATH
131 gpmc_profile_OBJPATH = $(gpmc_profile_RELPATH)/gpmc_profile
132 export gpmc_profile_OBJPATH
133 gpmc_profile_MAKEFILE = -f build/makefile_profile.mk
134 export gpmc_profile_MAKEFILE
135 gpmc_profile_BOARD_DEPENDENCY = no
136 gpmc_profile_CORE_DEPENDENCY = no
137 gpmc_profile_SOC_DEPENDENCY = yes
138 export gpmc_profile_COMP_LIST
139 export gpmc_profile_BOARD_DEPENDENCY
140 export gpmc_profile_CORE_DEPENDENCY
141 export gpmc_profile_SOC_DEPENDENCY
142 gpmc_profile_PKG_LIST = gpmc_profile
143 gpmc_profile_INCLUDE = $(gpmc_profile_PATH)
144 gpmc_profile_SOCLIST = am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x
145 export gpmc_profile_SOCLIST
146 gpmc_profile_$(SOC)_CORELIST = $(drvgpmc_$(SOC)_CORELIST)
147 export gpmc_profile_$(SOC)_CORELIST
149 # GPMC PROFILING SOC INDEPENDENT LIB
150 gpmc_profile_indp_COMP_LIST = gpmc_profile_indp
151 gpmc_profile_indp_RELPATH = ti/drv/gpmc
152 gpmc_profile_indp_PATH = $(PDK_GPMC_COMP_PATH)
153 gpmc_profile_indp_LIBNAME = ti.drv.gpmc.profiling
154 export gpmc_profile_indp_LIBNAME
155 gpmc_profile_indp_LIBPATH = $(gpmc_profile_indp_PATH)/lib
156 export gpmc_profile_indp_LIBPATH
157 gpmc_profile_indp_OBJPATH = $(gpmc_profile_indp_RELPATH)/gpmc_profile_indp
158 export gpmc_profile_indp_OBJPATH
159 gpmc_profile_indp_MAKEFILE = -f build/makefile_profile_indp.mk
160 export gpmc_profile_indp_MAKEFILE
161 gpmc_profile_indp_BOARD_DEPENDENCY = no
162 gpmc_profile_indp_CORE_DEPENDENCY = no
163 gpmc_profile_indp_SOC_DEPENDENCY = no
164 export gpmc_profile_indp_COMP_LIST
165 export gpmc_profile_indp_BOARD_DEPENDENCY
166 export gpmc_profile_indp_CORE_DEPENDENCY
167 export gpmc_profile_indp_SOC_DEPENDENCY
168 gpmc_profile_indp_PKG_LIST = gpmc_profile_indp
169 gpmc_profile_indp_INCLUDE = $(gpmc_profile_indp_PATH)
170 gpmc_profile_indp_SOCLIST = am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x
171 export gpmc_profile_indp_SOCLIST
172 gpmc_profile_indp_$(SOC)_CORELIST = $(drvgpmc_$(SOC)_CORELIST)
173 export gpmc_profile_indp_$(SOC)_CORELIST
175 export drvgpmc_LIB_LIST
176 export gpmc_LIB_LIST
177 export gpmc_EXAMPLE_LIST
178 export drvgpmc_EXAMPLE_LIST
180 gpmc_component_make_include := 1
181 endif