1 # File: fvid2_component.mk
2 # This file is component include make file of FVID2 driver library.
3 # List of variables set in this file and their purpose:
4 # <mod>_RELPATH - This is the relative path of the module, typically from
5 # top-level directory of the package
6 # <mod>_PATH - This is the absolute path of the module. It derives from
7 # absolute path of the top-level directory (set in env.mk)
8 # and relative path set above
9 # <mod>_INCLUDE - This is the path that has interface header files of the
10 # module. This can be multiple directories (space separated)
11 # <mod>_PKG_LIST - Names of the modules (and sub-modules) that are a part
12 # part of this module, including itself.
13 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
14 # platform and the compiled obj/lib has to be kept
15 # under <platform> directory
16 # "no" or "" or if this variable is not defined: means
17 # this module has no platform dependent code and hence
18 # the obj/libs are not kept under <platform> dir.
19 # <mod>_CORE_DEPENDENCY - "yes": means the code for this module depends on
20 # core and the compiled obj/lib has to be kept
21 # under <core> directory
22 # "no" or "" or if this variable is not defined: means
23 # this module has no core dependent code and hence
24 # the obj/libs are not kept under <core> dir.
25 # <mod>_APP_STAGE_FILES - List of source files that belongs to the module
26 # <mod>, but that needs to be compiled at application
27 # build stage (in the context of the app). This is
28 # primarily for link time configurations or if the
29 # source file is dependent on options/defines that are
30 # application dependent. This can be left blank or
31 # not defined at all, in which case, it means there
32 # no source files in the module <mod> that are required
33 # to be compiled in the application build stage.
34 #
35 ifeq ($(fvid2_component_make_include), )
37 fvid2_default_SOCLIST = j7 am65x
38 fvid2_default_j7_CORELIST = mcu1_0 mcu1_1
39 fvid2_default_am65x_CORELIST = mcu1_0 mcu1_1 mpu1_0
41 ############################
42 # fvid2 package
43 # List of components included under fvid2 lib
44 # The components included here are built and will be part of fvid2 lib
45 ############################
46 fvid2_LIB_LIST = fvid2
48 ############################
49 # fvid2 examples
50 # List of examples under fvid2 (+= is used at each example definition)
51 # All the tests mentioned in list are built when test target is called
52 # List below all examples for allowed values
53 ############################
54 fvid2_EXAMPLE_LIST =
56 #
57 # FVID2 Modules
58 #
60 # FVID2 library
61 fvid2_COMP_LIST = fvid2
62 fvid2_RELPATH = ti/drv/fvid2
63 fvid2_PATH = $(PDK_FVID2_COMP_PATH)
64 fvid2_LIBNAME = fvid2
65 fvid2_LIBPATH = $(PDK_FVID2_COMP_PATH)/lib
66 fvid2_MAKEFILE = -fsrc/makefile
67 export fvid2_MAKEFILE
68 export fvid2_LIBNAME
69 export fvid2_LIBPATH
70 fvid2_BOARD_DEPENDENCY = no
71 fvid2_CORE_DEPENDENCY = no
72 export fvid2_COMP_LIST
73 export fvid2_BOARD_DEPENDENCY
74 export fvid2_CORE_DEPENDENCY
75 fvid2_PKG_LIST = fvid2
76 fvid2_INCLUDE = $(fvid2_PATH)
77 fvid2_SOCLIST = $(fvid2_default_SOCLIST)
78 export fvid2_SOCLIST
79 fvid2_$(SOC)_CORELIST = $(fvid2_default_$(SOC)_CORELIST)
80 export fvid2_$(SOC)_CORELIST
82 #
83 # FVID2 Examples
84 #
86 export fvid2_LIB_LIST
87 export fvid2_EXAMPLE_LIST
89 FVID2_CFLAGS =
91 # Enable asserts and prints
92 FVID2_CFLAGS += -DFVID2_CFG_ASSERT_ENABLE
93 #TODO: Enable for A53 after semi-hosting is enabled
94 ifneq ($(CORE),$(filter $(CORE), mpu1_0 mpu1_1))
95 FVID2_CFLAGS += -DFVID2_CFG_USE_STD_ASSERT
96 FVID2_CFLAGS += -DFVID2_CFG_PRINT_ENABLE
97 endif
99 export FVID2_CFLAGS
101 fvid2_component_make_include := 1
102 endif