The page_layout API returns pointers to kernel memory and is not exposed to user mode. This is fine for flash_get_page_count() and flash_get_page_info APIs since these copy the values, but some redesign work will be needed to get flash_page_foreach() working in user mode since we do not want the callback running in a privileged state. Due to the way that (even unimplemented) system call prototypes are generated, the definition of struct flash_pages_info needed to be moved outside of the #ifdef. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
23 lines
757 B
Makefile
23 lines
757 B
Makefile
obj-$(CONFIG_SPI_FLASH_W25QXXDV) += spi_flash_w25qxxdv.o
|
|
obj-$(CONFIG_SOC_FLASH_QMSI) += soc_flash_qmsi.o
|
|
obj-$(CONFIG_SOC_FLASH_NRF5) += soc_flash_nrf5.o
|
|
obj-$(CONFIG_SOC_FLASH_MCUX) += soc_flash_mcux.o
|
|
|
|
ifeq ($(CONFIG_SOC_SERIES_STM32F3X),y)
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32f3x.o
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32f3x_priv.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SOC_SERIES_STM32F4X),y)
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32.o flash_stm32f4x.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SOC_SERIES_STM32L4X),y)
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32.o flash_stm32l4x.o
|
|
endif
|
|
|
|
ccflags-$(CONFIG_SOC_FLASH_NRF5_RADIO_SYNC) += -I${ZEPHYR_BASE}/subsys/bluetooth
|
|
|
|
obj-$(CONFIG_FLASH_PAGE_LAYOUT) += flash_page_layout.o
|
|
obj-$(CONFIG_USERSPACE) += flash_handlers.o
|