Skip to content

Commit f830422

Browse files
andrew-mtklgirdwood
authored andcommitted
platform: Add build support for MediaTek mt8365 platform
Add CMakefile for MediaTek mt8365 platform to build it. Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
1 parent 8834010 commit f830422

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

src/arch/xtensa/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ elseif(CONFIG_MT8195)
2828
set(platform_folder mt8195)
2929
elseif(CONFIG_MT8196)
3030
set(platform_folder mt8196)
31+
elseif(CONFIG_MT8365)
32+
set(platform_folder mt8365)
3133
else()
3234
message(FATAL_ERROR "Platform not defined, check your Kconfiguration?")
3335
endif()
@@ -479,7 +481,7 @@ set(UNSIGNED_RI imx8 imx8x imx8m imx8ulp)
479481
# AMD
480482
list(APPEND UNSIGNED_RI rn rmb vangogh acp_6_3 acp_7_0)
481483
# MediaTek
482-
list(APPEND UNSIGNED_RI mt8186 mt8188 mt8195 mt8196)
484+
list(APPEND UNSIGNED_RI mt8186 mt8188 mt8195 mt8196 mt8365)
483485

484486
if(${fw_name} IN_LIST UNSIGNED_RI) # mere copy
485487
add_custom_command(OUTPUT reproducible.ri

src/platform/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ elseif(CONFIG_MT8195)
2323
add_subdirectory(mt8195)
2424
elseif(CONFIG_MT8196)
2525
add_subdirectory(mt8196)
26+
elseif(CONFIG_MT8365)
27+
add_subdirectory(mt8365)
2628
endif()

src/platform/mt8365/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
3+
add_subdirectory(lib)
4+
5+
add_local_sources(sof platform.c afe-platform.c)
6+
target_include_directories(sof_options INTERFACE ${PROJECT_SOURCE_DIR}/src/platform/mt8365/include/arch)
7+
target_include_directories(sof_options INTERFACE ${PROJECT_SOURCE_DIR}/src/platform/mt8365/include/platform)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
3+
add_local_sources(sof
4+
clk.c
5+
dma.c
6+
memory.c
7+
)

0 commit comments

Comments
 (0)