1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/eeprom.h)
4
5zephyr_library()
6
7zephyr_library_sources_ifdef(CONFIG_USERSPACE eeprom_handlers.c)
8zephyr_library_sources_ifdef(CONFIG_EEPROM_SHELL eeprom_shell.c)
9
10zephyr_library_sources_ifdef(CONFIG_EEPROM_AT2X eeprom_at2x.c)
11zephyr_library_sources_ifdef(CONFIG_EEPROM_LPC11U6X eeprom_lpc11u6x.c)
12zephyr_library_sources_ifdef(CONFIG_EEPROM_STM32 eeprom_stm32.c)
13if(CONFIG_EEPROM_SIMULATOR)
14  zephyr_library_sources(eeprom_simulator.c)
15  if(CONFIG_NATIVE_LIBRARY)
16    target_sources(native_simulator INTERFACE eeprom_simulator_native.c)
17  elseif(CONFIG_ARCH_POSIX)
18    zephyr_library_sources(eeprom_simulator_native.c)
19  endif()
20endif()
21zephyr_library_sources_ifdef(CONFIG_EEPROM_EMULATOR eeprom_emulator.c)
22zephyr_library_sources_ifdef(CONFIG_EEPROM_TMP116 eeprom_tmp116.c)
23zephyr_library_sources_ifdef(CONFIG_EEPROM_XEC eeprom_mchp_xec.c)
24zephyr_library_sources_ifdef(CONFIG_EEPROM_FAKE eeprom_fake.c)
25
26zephyr_library_sources_ifdef(CONFIG_EEPROM_AT2X_EMUL eeprom_at2x_emul.c)
27
28zephyr_library_sources_ifdef(CONFIG_EEPROM_MB85RCXX eeprom_mb85rcxx.c)
29
30zephyr_library_sources_ifdef(CONFIG_EEPROM_MB85RSXX eeprom_mb85rsxx.c)
31