# # Copyright (c) 2017-2020, Texas Instruments Incorporated # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # * Neither the name of Texas Instruments Incorporated nor the names of # its contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # File: sa_component.mk # This file is component include make file of SA library. # List of variables set in this file and their purpose: # _RELPATH - This is the relative path of the module, typically from # top-level directory of the package # _PATH - This is the absolute path of the module. It derives from # absolute path of the top-level directory (set in env.mk) # and relative path set above # _INCLUDE - This is the path that has interface header files of the # module. This can be multiple directories (space separated) # _PKG_LIST - Names of the modules (and sub-modules) that are a part # part of this module, including itself. # _BOARD_DEPENDENCY - "yes": means the code for this module depends on # platform and the compiled obj/lib has to be kept # under directory # "no" or "" or if this variable is not defined: means # this module has no platform dependent code and hence # the obj/libs are not kept under dir. # _CORE_DEPENDENCY - "yes": means the code for this module depends on # core and the compiled obj/lib has to be kept # under directory # "no" or "" or if this variable is not defined: means # this module has no core dependent code and hence # the obj/libs are not kept under dir. # _APP_STAGE_FILES - List of source files that belongs to the module # , but that needs to be compiled at application # build stage (in the context of the app). This is # primarily for link time configurations or if the # source file is dependent on options/defines that are # application dependent. This can be left blank or # not defined at all, in which case, it means there # no source files in the module that are required # to be compiled in the application build stage. # ifeq ($(sa_component_make_include), ) # under other list drvsa_BOARDLIST = am65xx_evm am65xx_idk j721e_evm am64x_evm drvsa_SOCLIST = am65xx j721e am64x drvsa_am65xx_CORELIST = mcu1_0 drvsa_j721e_CORELIST = mcu1_0 drvsa_am64x_CORELIST = mcu1_0 ############################ # sa package # List of components included under sa lib # The components included here are built and will be part of sa lib ############################ sa_LIB_LIST = salite2 drvsa_LIB_LIST = $(sa_LIB_LIST) ############################ # sa examples # List of examples under sa # All the tests mentioned in list are built when test target is called # List below all examples for allowed values ############################ sa_EXAMPLE_LIST = SA_Baremetal_TestApp SA_TestApp drvsa_EXAMPLE_LIST = $(sa_EXAMPLE_LIST) # # sa Modules # # sa lite2 LIB salite2_COMP_LIST = salite2 salite2_RELPATH = ti/drv/sa salite2_PATH = $(PDK_SA_COMP_PATH) salite2_LIBNAME = ti.drv.salite2 export salite2_LIBNAME salite2_LIBPATH = $(salite2_PATH)/lib export salite2_LIBPATH salite2_OBJPATH = $(salite2_RELPATH)/salite2 export salite2_OBJPATH salite2_MAKEFILE = -f build/makefile_lite2.mk export salite2_MAKEFILE salite2_BOARD_DEPENDENCY = no salite2_CORE_DEPENDENCY = no salite2_SOC_DEPENDENCY = no export salite2_COMP_LIST export salite2_BOARD_DEPENDENCY export salite2_CORE_DEPENDENCY export salite2_SOC_DEPENDENCY salite2_PKG_LIST = salite2 salite2_INCLUDE = $(salite2_PATH) salite2_SOCLIST = am65xx j721e am64x export salite2_SOCLIST salite2_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST) export salite2_$(SOC)_CORELIST # # sa Baremetal Unit Test # # sa Polling mode Test app SA_Baremetal_TestApp_COMP_LIST = SA_Baremetal_TestApp SA_Baremetal_TestApp_RELPATH = ti/drv/sa/test/SaUnitTest SA_Baremetal_TestApp_PATH = $(PDK_SA_COMP_PATH)/test/SaUnitTest SA_Baremetal_TestApp_BOARD_DEPENDENCY = yes SA_Baremetal_TestApp_CORE_DEPENDENCY = no SA_Baremetal_TestApp_MAKEFILE = -fmakefile IS_BAREMETAL=yes export SA_Baremetal_TestApp_MAKEFILE # SA_Baremetal_TestApp_XDC_CONFIGURO = yes export SA_Baremetal_TestApp_COMP_LIST export SA_Baremetal_TestApp_BOARD_DEPENDENCY export SA_Baremetal_TestApp_CORE_DEPENDENCY # export SA_Baremetal_TestApp_XDC_CONFIGURO SA_Baremetal_TestApp_PKG_LIST = SA_Baremetal_TestApp SA_Baremetal_TestApp_INCLUDE = $(SA_Baremetal_TestApp_PATH) SA_Baremetal_TestApp_BOARDLIST = $(drvsa_BOARDLIST) export SA_Baremetal_TestApp_BOARDLIST export SA_Baremetal_TestApp_SBL_APPIMAGEGEN = yes SA_Baremetal_TestApp_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST) export SA_Baremetal_TestApp_$(SOC)_CORELIST # # sa RTOS Unit Test # # sa Polling mode Test app SA_TestApp_COMP_LIST = SA_TestApp SA_TestApp_RELPATH = ti/drv/sa/test/SaUnitTest SA_TestApp_PATH = $(PDK_SA_COMP_PATH)/test/SaUnitTest SA_TestApp_BOARD_DEPENDENCY = yes SA_TestApp_CORE_DEPENDENCY = no SA_TestApp_MAKEFILE = -fmakefile export SA_TestApp_MAKEFILE SA_TestApp_XDC_CONFIGURO = yes export SA_TestApp_COMP_LIST export SA_TestApp_BOARD_DEPENDENCY export SA_TestApp_CORE_DEPENDENCY export SA_TestApp_XDC_CONFIGURO SA_TestApp_PKG_LIST = SA_TestApp SA_TestApp_INCLUDE = $(SA_TestApp_PATH) SA_TestApp_BOARDLIST = $(drvsa_BOARDLIST) export SA_TestApp_BOARDLIST export SA_TestApp_SBL_APPIMAGEGEN = yes SA_TestApp_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST) export SA_TestApp_$(SOC)_CORELIST export drvsa_LIB_LIST export sa_LIB_LIST export sa_EXAMPLE_LIST export drvsa_EXAMPLE_LIST sa_component_make_include := 1 endif