CMakeLists.txt 782 B

12345678910111213141516
  1. # SPDX-License-Identifier: Apache-2.0
  2. zephyr_library()
  3. if(CONFIG_SOC_LEOPARD)
  4. zephyr_library_sources_ifdef(CONFIG_SPI_FLASH_ACTS spi_flash_leopard.c)
  5. else()
  6. zephyr_library_sources_ifdef(CONFIG_SPI_FLASH_ACTS spi_flash_acts.c)
  7. add_subdirectory_ifdef(CONFIG_SPI_NOR_FLASH_DRV_EXT spinor)
  8. endif()
  9. zephyr_library_sources_ifdef(CONFIG_FLASH_PAGE_LAYOUT flash_page_layout.c)
  10. zephyr_library_sources_ifdef(CONFIG_SPINOR_TEST_DELAYCHAIN flash_test_delaychain.c)
  11. zephyr_library_sources_ifdef(CONFIG_NOR_ACTS_DATA_PROTECTION_ENABLE flash_write_protection.c)
  12. zephyr_library_sources_ifdef(CONFIG_NOR_ACTS_DQ_MODE_ENABLE flash_dq_mode.c)
  13. zephyr_library_sources_ifdef(CONFIG_SIM_FLASH_ACTS flash_sim_acts.c)
  14. zephyr_library_sources_ifdef(CONFIG_BLOCK_DEV_FLASH_ACTS flash_blockdev_byte_access.c)