]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/spi/test/qspi_flash/makefile_ccs_flash_write
Add build support for awr294x
[processor-sdk/pdk.git] / packages / ti / drv / spi / test / qspi_flash / makefile_ccs_flash_write
1 # Makefile for SPI unit test app
2 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
4 BUILD_OS_TYPE = tirtos
5 CFLAGS_OS_DEFINES = -DUSE_BIOS
6 EXTERNAL_INTERFACES = bios xdc
7 COMP_LIST_COMMON    = $(PDK_COMMON_TIRTOS_COMP) 
9 ifeq ($(SOC),$(filter $(SOC), tpr12 awr294x))
10 # Enable XDC build for application by providing XDC CFG File per core
11 XDC_CFG_FILE_mcu1_0 = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_r5f.cfg
12 endif
15 SRCDIR = . src src/Flash_S25FL
16 INCDIR = . src src/Flash_S25FL
18 # Common source files across all platforms and cores
19 SRCS_COMMON += main_qspi_flash_test_ccs_flashwrite.c S25FL.c
21 QSPI_OS_TESTPREFIX=
25 # List all the external components/interfaces, whose interface header files
26 # need to be included for this component
27 INCLUDE_EXTERNAL_INTERFACES = pdk $(EXTERNAL_INTERFACES)
29 #Name of the directory created under packages/ti/binary/
30 APP_NAME = QSPI$(QSPI_OS_TESTPREFIX)_FileFlashWrite_Dma_TestApp
31 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
32 LOCAL_APP_NAME =  QSPI$(QSPI_OS_TESTPREFIX)_FileFlashWrite_Dma_$(BOARD)_$(CORE)TestApp
33 COMP_LIST_COMMON += spi_dma
34 CFLAGS_SPI_DMA    = -DSPI_DMA_ENABLE
36 PACKAGE_SRCS_COMMON = .
37 PACKAGE_SRCS_COMMON += ../src/SPI_log.h
38 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_SPI_DMA) $(CFLAGS_OS_DEFINES)
39 ifeq ($(SOC),$(filter $(SOC), tpr12 awr294x))
40 CFLAGS_LOCAL_COMMON += -DTPR12_QT
41 endif
43 # Core/SoC/platform specific source files and CFLAGS
44 # Example:
45 #   SRCS_<core/SoC/platform-name> =
46 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
48 # Include common make files
49 ifeq ($(MAKERULEDIR), )
50 #Makerule path not defined, define this and assume relative path from ROOTDIR
51   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
52   export MAKERULEDIR
53 endif
54 include $(MAKERULEDIR)/common.mk
56 # OBJs and libraries are built by using rule defined in rules_<target>.mk
57 #     and need not be explicitly specified here
59 # Nothing beyond this point