yang.li | e8fc87b | 2022-01-11 11:03:24 +0800 | [diff] [blame] | 1 | # Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved. |
2 | |||||
3 | # SPDX-License-Identifier: MIT | ||||
4 | |||||
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 5 | aml_add_library() |
Xiaohu.Huang | efda2e9 | 2022-01-06 14:11:03 +0800 | [diff] [blame] | 6 | |
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 7 | aml_library_include_directories( |
Kelvin Zhang | 60435bf | 2022-03-21 19:13:54 +0800 | [diff] [blame] | 8 | ${CMAKE_CURRENT_SOURCE_DIR} |
Xiaohu.Huang | efda2e9 | 2022-01-06 14:11:03 +0800 | [diff] [blame] | 9 | ) |
10 | |||||
bangzheng.liu | 4d71f92 | 2022-09-29 16:12:20 +0800 | [diff] [blame] | 11 | if (CONFIG_SOC_T5W OR CONFIG_SOC_T5D) |
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 12 | aml_library_sources( |
13 | n200_func.c | ||||
bangzheng.liu | 4d71f92 | 2022-09-29 16:12:20 +0800 | [diff] [blame] | 14 | interrupt_control_pic.c |
bangzheng.liu | a22a35e | 2024-06-27 13:48:56 +0800 | [diff] [blame] | 15 | ${SOC}/soc_business.c |
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 16 | ) |
bangzheng.liu | 4d71f92 | 2022-09-29 16:12:20 +0800 | [diff] [blame] | 17 | else() |
18 | aml_library_sources( | ||||
19 | n200_func.c | ||||
20 | interrupt_control_eclic.c | ||||
bangzheng.liu | a22a35e | 2024-06-27 13:48:56 +0800 | [diff] [blame] | 21 | ${SOC}/soc_business.c |
bangzheng.liu | 4d71f92 | 2022-09-29 16:12:20 +0800 | [diff] [blame] | 22 | ) |
23 | endif() | ||||
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 24 | |
Kelvin Zhang | 60435bf | 2022-03-21 19:13:54 +0800 | [diff] [blame] | 25 | add_subdirectory(${SOC}) |
26 | |||||
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 27 | aml_library_link_libraries(arch__${ARCH}) |
28 | |||||
Xiaohu.Huang | efda2e9 | 2022-01-06 14:11:03 +0800 | [diff] [blame] | 29 | aml_link_libraries() |