CMakeLists.txt 798 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. SET(LIB_NAME ota)
  5. SET(ZEPHYR_CURRENT_LIBRARY ${LIB_NAME})
  6. #SET(LIBRARY_OUTPUT_PATH "${CMAKE_CURRENT_LIST_DIR}/../")
  7. zephyr_include_directories(./../../display/include/)
  8. zephyr_include_directories(./)
  9. zephyr_library_named(${LIB_NAME})
  10. zephyr_library_sources_ifdef(CONFIG_OTA_UPGRADE
  11. ota_upgrade.c
  12. ota_image.c
  13. ota_manifest.c
  14. ota_breakpoint.c
  15. )
  16. zephyr_library_sources_ifdef(CONFIG_OTA_PRODUCT_SUPPORT
  17. ota_upgrade_host.c
  18. )
  19. zephyr_library_sources_ifdef(CONFIG_OTA_BLE_MASTER_SUPPORT
  20. ota_upgrade_host.c
  21. )
  22. zephyr_library_sources_ifdef(CONFIG_OTA_FILE_PATCH
  23. ota_file_patch.c
  24. hpatch.c
  25. )
  26. zephyr_library_sources(
  27. libota_version.c
  28. )
  29. target_link_libraries(${LIB_NAME} INTERFACE zephyr_interface)