From 6d6a930dc9e085880fb5dbe2cfe445759ed2fb25 Mon Sep 17 00:00:00 2001 From: "Zone.N" Date: Wed, 7 Aug 2024 07:27:36 +0000 Subject: [PATCH] perf: update COMPILE_DEPENDS Signed-off-by: Zone.N --- cmake/compile_config.cmake | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/cmake/compile_config.cmake b/cmake/compile_config.cmake index ff26f55cf..8cb3395a7 100644 --- a/cmake/compile_config.cmake +++ b/cmake/compile_config.cmake @@ -195,37 +195,28 @@ list(APPEND DEFAULT_KERNEL_LINK_LIB ${COMMON_LINK_LIB} printf_bare_metal + ${dtc_BINARY_DIR}/libfdt/libfdt.a $<$: opensbi_interface - ${dtc_BINARY_DIR}/libfdt/libfdt.a > $<$: - ${dtc_BINARY_DIR}/libfdt/libfdt.a > ) # 编译依赖 -if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") - list(APPEND COMPILE_DEPENDS +list(APPEND COMPILE_DEPENDS ovmf gnu-efi + dtc printf_bare_metal ) +if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64") list(APPEND COMPILE_DEPENDS - ovmf opensbi opensbi_interface - printf_bare_metal - dtc - gnu-efi ) elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") - list(APPEND COMPILE_DEPENDS - ovmf - gnu-efi - dtc - ) endif ()