1 2list(APPEND HAL_SMP_SOURCE 3 generic/buildtype.c 4 generic/spinlock.c 5 smp/smp.c) 6 7add_library(lib_hal_smp OBJECT ${HAL_SMP_SOURCE}) 8add_dependencies(lib_hal_smp bugcodes xdk) 9target_compile_definitions(lib_hal_smp PRIVATE CONFIG_SMP) 10