index 1fed90f54131ea14e2be693bd87e73e13b6b2097..c8c34c7b7c30f739d3bacfd9a241c00198ca6c34 100644 (file)
#
ifeq ($(sbl_component_make_include), )
-sbl_BOARDLIST = am65xx_evm am65xx_idk j721e_evm j7200_evm am64x_evm tpr12_evm
+sbl_BOARDLIST = am65xx_evm am65xx_idk j721e_evm j7200_evm am64x_evm tpr12_evm tpr12_qt
sbl_SOCLIST = am65xx j721e j7200 am64x tpr12
ifeq ($(SOC), am64x)
sbl_LIB_LIST = sbl_lib_ospi_nondma sbl_lib_cust sbl_lib_mmcsd sbl_lib_uart
+sbl_LIB_LIST += sbl_lib_mmcsd_hlos sbl_lib_ospi_nondma_hlos
else
ifeq ($(SOC), j7200)
- sbl_LIB_LIST = sbl_lib_mmcsd sbl_lib_mmcsd_hlos sbl_lib_ospi_nondma sbl_lib_ospi_nondma_hlos sbl_lib_uart sbl_lib_cust
+ sbl_LIB_LIST = sbl_lib_mmcsd sbl_lib_mmcsd_hlos sbl_lib_ospi sbl_lib_ospi_hlos sbl_lib_uart sbl_lib_cust
else
ifeq ($(SOC), tpr12)
sbl_LIB_LIST = sbl_lib_uart
# List below all examples for allowed values
############################
ifeq ($(SOC),$(filter $(SOC), am64x))
-sbl_EXAMPLE_LIST = sbl_ospi_img sbl_mmcsd_img sbl_uart_img
+sbl_EXAMPLE_LIST = sbl_ospi_img sbl_mmcsd_img sbl_uart_img sbl_mmcsd_img_hlos sbl_ospi_img_hlos
else
ifeq ($(SOC), j7200)
sbl_EXAMPLE_LIST = sbl_mmcsd_img sbl_mmcsd_img_hlos sbl_ospi_img sbl_ospi_img_hlos sbl_uart_img
sbl_lib_ospi_hlos_$(SOC)_CORELIST = mcu1_0
export sbl_lib_ospi_hlos_$(SOC)_CORELIST
-# SBL OSPI LIB with NON-DMA - Needed for HS SBL, etc.
+# SBL OSPI LIB with NON-DMA
export sbl_lib_ospi_nondma_COMP_LIST = sbl_lib_ospi_nondma
sbl_lib_ospi_nondma_RELPATH = ti/boot/sbl
export sbl_lib_ospi_nondma_OBJPATH = ti/boot/sbl/ospi_nondma
sbl_lib_qspi_PKG_LIST = sbl_lib_qspi
sbl_lib_qspi_INCLUDE = $(sbl_lib_qspi_PATH)
sbl_lib_qspi_SOCLIST = tpr12
-sbl_lib_qspi_BOARDLIST = tpr12_evm
+sbl_lib_qspi_BOARDLIST = tpr12_evm tpr12_qt
export sbl_lib_qspi_SOCLIST
export sbl_lib_qspi_BOARDLIST
sbl_lib_qspi_$(SOC)_CORELIST = mcu1_0
sbl_lib_qspi_nondma_PKG_LIST = sbl_lib_qspi_nondma
sbl_lib_qspi_nondma_INCLUDE = $(sbl_lib_qspi_nondma_PATH)
export sbl_lib_qspi_nondma_SOCLIST = tpr12
-export sbl_lib_qspi_nondma_BOARDLIST = tpr12_evm
+export sbl_lib_qspi_nondma_BOARDLIST = tpr12_evm tpr12_qt
export sbl_lib_qspi_nondma_$(SOC)_CORELIST = mcu1_0
#
sbl_ospi_img_RELPATH = ti/boot/sbl/board/k3
sbl_ospi_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/ospi/bin
sbl_ospi_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
-ifeq ($(SOC),$(filter $(SOC), am64x j7200))
+ifeq ($(SOC),$(filter $(SOC), am64x))
sbl_ospi_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=no BUILD_HS=no
else
sbl_ospi_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=yes BUILD_HS=no
sbl_ospi_img_hlos_RELPATH = ti/boot/sbl/board/k3
sbl_ospi_img_hlos_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/ospi/bin
sbl_ospi_img_hlos_PATH = $(PDK_SBL_COMP_PATH)/board/k3
-ifeq ($(SOC),$(filter $(SOC), am64x j7200))
+ifeq ($(SOC),$(filter $(SOC), am64x))
sbl_ospi_img_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=no BUILD_HS=no
else
sbl_ospi_img_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=no
@@ -565,7 +566,7 @@ sbl_ospi_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/ospi/bi
#Because of this multiple lto_ files with same name can be created if app name
#and app path are same
sbl_ospi_img_hs_PATH = $(PDK_SBL_COMP_PATH)/build
-export sbl_ospi_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=no BUILD_HS=yes
+export sbl_ospi_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=yes BUILD_HS=yes
export sbl_ospi_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
export sbl_ospi_img_hs_BOARD_DEPENDENCY = yes
export sbl_ospi_img_hs_SOC_DEPENDENCY = yes
@@ -587,7 +588,7 @@ sbl_ospi_img_hlos_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/os
#Because of this multiple lto_ files with same name can be created if app name
#and app path are same
sbl_ospi_img_hlos_hs_PATH = $(PDK_SBL_COMP_PATH)/build
-export sbl_ospi_img_hlos_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=no BUILD_HS=yes
+export sbl_ospi_img_hlos_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=yes
export sbl_ospi_img_hlos_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
export sbl_ospi_img_hlos_hs_BOARD_DEPENDENCY = yes
export sbl_ospi_img_hlos_hs_SOC_DEPENDENCY = yes
export sbl_qspi_img_CORE_DEPENDENCY
sbl_qspi_img_PKG_LIST = sbl
sbl_qspi_img_INCLUDE = $(sbl_qspi_img_PATH)
-sbl_qspi_img_BOARDLIST = tpr12_evm
+sbl_qspi_img_BOARDLIST = tpr12_evm tpr12_qt
export sbl_qspi_img_BOARDLIST
sbl_qspi_img_$(SOC)_CORELIST = mcu1_0
export sbl_qspi_img_$(SOC)_CORELIST
sbl_multicore_amp_ordered_SBL_APPIMAGEGEN = no
export sbl_multicore_amp_ordered_SBL_APPIMAGEGEN
+# Individual Core Boot Test (Short)
+sbl_boot_test_short_COMP_LIST = sbl_boot_test_short
+sbl_boot_test_short_RELPATH = ti/boot/sbl/example/k3MulticoreApp
+sbl_boot_test_short_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
+sbl_boot_test_short_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
+sbl_boot_test_short_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_boot_test_short.mk
+export sbl_boot_test_short_MAKEFILE
+sbl_boot_test_short_BOARD_DEPENDENCY = no
+sbl_boot_test_short_SOC_DEPENDENCY = no
+sbl_boot_test_short_CORE_DEPENDENCY = no
+export sbl_boot_test_short_COMP_LIST
+export sbl_boot_test_short_BOARD_DEPENDENCY
+export sbl_boot_test_short_SOC_DEPENDENCY
+export sbl_boot_test_short_CORE_DEPENDENCY
+sbl_boot_test_short_PKG_LIST = sbl_boot_test_short
+sbl_boot_test_short_INCLUDE = $(sbl_boot_test_short_PATH)
+sbl_boot_test_short_BOARDLIST = $(sbl_BOARDLIST)
+export sbl_boot_test_short_BOARDLIST
+sbl_boot_test_short_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
+export sbl_boot_test_short_$(SOC)_CORELIST
+ifneq ($(SOC), tpr12)
+sbl_EXAMPLE_LIST += sbl_boot_test_short
+endif
+sbl_boot_test_short_SBL_APPIMAGEGEN = yes
+export sbl_boot_test_short_SBL_APPIMAGEGEN
+
+# Multicore AMP Boot Test (Short)
+sbl_multicore_amp_short_COMP_LIST = sbl_multicore_amp_short
+sbl_multicore_amp_short_RELPATH = ti/boot/sbl/example/k3MulticoreApp
+sbl_multicore_amp_short_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
+sbl_multicore_amp_short_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
+sbl_multicore_amp_short_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_amp_short.mk
+export sbl_multicore_amp_short_MAKEFILE
+# SBL multicore amp depends on sbl_boot_test for all the cores
+sbl_multicore_amp_short_DEPENDS_ON=sbl_boot_test_short
+export sbl_multicore_amp_short_DEPENDS_ON
+sbl_multicore_amp_short_BOARD_DEPENDENCY = no
+sbl_multicore_amp_short_SOC_DEPENDENCY = no
+sbl_multicore_amp_short_CORE_DEPENDENCY = no
+export sbl_multicore_amp_short_COMP_LIST
+export sbl_multicore_amp_short_BOARD_DEPENDENCY
+export sbl_multicore_amp_short_SOC_DEPENDENCY
+export sbl_multicore_amp_short_CORE_DEPENDENCY
+sbl_multicore_amp_short_PKG_LIST = sbl_multicore_amp_short
+sbl_multicore_amp_short_INCLUDE = $(sbl_multicore_amp_short_PATH)
+sbl_multicore_amp_short_BOARDLIST = $(sbl_BOARDLIST)
+export sbl_multicore_amp_short_BOARDLIST
+sbl_multicore_amp_short_$(SOC)_CORELIST = $($(SOC)_LASTCORE)
+export sbl_multicore_amp_short_$(SOC)_CORELIST
+ifneq ($(SOC), tpr12)
+sbl_EXAMPLE_LIST += sbl_multicore_amp_short
+endif
+sbl_multicore_amp_short_SBL_APPIMAGEGEN = no
+export sbl_multicore_amp_short_SBL_APPIMAGEGEN
+
# Individual Core Boot Test
sbl_boot_test_COMP_LIST = sbl_boot_test
sbl_boot_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
# debugging and tuning performace knobs
#SBL_CFLAGS += -DSBL_DISPLAY_PROFILE_INFO
-ifeq ($(SOC), am64x)
-SBL_CFLAGS += -DSBL_BYPASS_OSPI_DRIVER_FOR_SYSFW_DOWNLOAD
-endif
-
###### Use boot_perf_benchmark example#######
###### to fine tune the perf knobs #########
#CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=0 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_SKIP_SYSFW_INIT -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
#CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=1 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0xB8000000 -DSBL_SCRATCH_MEM_SIZE=0x4000000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_ENABLE_DDR -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
ifeq ($(SOC), j7200)
-CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=2 -DSBL_SCRATCH_MEM_START=0x41cc0000 -DSBL_SCRATCH_MEM_SIZE=0x40000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH"
+# NOTE: If changing to SBL_USE_DMA=1, below, then also change 'sbl_lib_cust' & 'sbl_cust_img' MAKEFILE lines further below to use 'SBL_USE_DMA=yes'
+CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0xB8000000 -DSBL_SCRATCH_MEM_SIZE=0x4000000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_ENABLE_DDR -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
else
ifeq ($(findstring j7,$(SOC)),j7)
-CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x41cc0000 -DSBL_SCRATCH_MEM_SIZE=0x40000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH"
-# Custom example: Early CAN response (NOTE: before using the line below, comment out the line above)
+# NOTE: If changing to SBL_USE_DMA=1, below, then also change 'sbl_lib_cust' & 'sbl_cust_img' MAKEFILE lines further below to use 'SBL_USE_DMA=yes'
+CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0xB8000000 -DSBL_SCRATCH_MEM_SIZE=0x4000000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_ENABLE_DDR -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
+# Custom ex: Early CAN response (NOTE: before using line below, comment out the line above)
#CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x41cc0000 -DSBL_SCRATCH_MEM_SIZE=0x40000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH -DSBL_SKIP_PINMUX_ENABLE -DSBL_SKIP_LATE_INIT -DSBL_USE_MCU_DOMAIN_ONLY"
else
-CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH"
+CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
endif
#Custom configuration for AM64x OSPI Boot
#CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=3 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DBOOT_OSPI -DSBL_ENABLE_DDR -DSBL_BYPASS_OSPI_DRIVER"
export sbl_cust_img_BOARDLIST
sbl_cust_img_$(SOC)_CORELIST = mcu1_0
export sbl_cust_img_$(SOC)_CORELIST
-ifneq ($(SOC), am64x tpr12)
+ifneq ($(SOC),$(filter $(SOC), am64x tpr12))
sbl_EXAMPLE_LIST += sbl_cust_img
endif
sbl_cust_img_SBL_IMAGEGEN = yes
export sbl_boot_perf_test_BOARDLIST
sbl_boot_perf_test_$(SOC)_CORELIST = mcu1_0
export sbl_boot_perf_test_$(SOC)_CORELIST
-ifneq ($(SOC), am64x tpr12)
+ifneq ($(SOC),$(filter $(SOC), am64x tpr12))
sbl_EXAMPLE_LIST += sbl_boot_perf_test
endif
sbl_boot_perf_test_SBL_APPIMAGEGEN = yes
export sbl_r4tb_CORE_DEPENDENCY
sbl_r4tb_PKG_LIST = sbl_r4tb
sbl_r4tb_INCLUDE = $(sbl_r4tb_PATH)
-sbl_r4tb_BOARDLIST = tpr12_evm
+sbl_r4tb_BOARDLIST = tpr12_evm tpr12_qt
export sbl_r4tb_BOARDLIST
sbl_r4tb_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
export sbl_r4tb_$(SOC)_CORELIST