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 |
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 15 | ) |
bangzheng.liu | 4d71f92 | 2022-09-29 16:12:20 +0800 | [diff] [blame] | 16 | else() |
17 | aml_library_sources( | ||||
18 | n200_func.c | ||||
19 | interrupt_control_eclic.c | ||||
20 | ) | ||||
21 | endif() | ||||
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 22 | |
Kelvin Zhang | 60435bf | 2022-03-21 19:13:54 +0800 | [diff] [blame] | 23 | add_subdirectory(${SOC}) |
24 | |||||
Xiaohu.Huang | f78b48b | 2022-01-17 10:41:38 +0800 | [diff] [blame] | 25 | aml_library_link_libraries(arch__${ARCH}) |
26 | |||||
Xiaohu.Huang | efda2e9 | 2022-01-06 14:11:03 +0800 | [diff] [blame] | 27 | aml_link_libraries() |