CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930
  1. # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # RDA assumes no responsibility or liability for the use of the software,
  6. # conveys no license or title under any patent, copyright, or mask work
  7. # right to the product. RDA reserves the right to make changes in the
  8. # software without notification. RDA also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. configure_file(include/kernel_config.h.in ${out_inc_dir}/kernel_config.h)
  12. set(target ql_kernel_cfg)
  13. add_app_libraries($<TARGET_FILE:${target}>)
  14. add_library(${target} STATIC ${dummy_c_file})
  15. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_lib_dir})
  16. target_include_directories(${target} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
  17. target_sources_if(CONFIG_SOC_8850 THEN ${target} PRIVATE
  18. chip/8850/ql_freertos_config.c
  19. )
  20. set(target kernel)
  21. include(core.cmake)
  22. set(target osi_lib)
  23. include(core_osi_lib.cmake)