zephyr/subsys/demand_paging/backing_store/CMakeLists.txt
Daniel Leung c3abd7a383 demand_paging: add a flash-based backing store for qemu_x86_tiny
This adds a flash-based backing store for qemu_x86_tiny board for
testing demand paging. This allows us to test code execution where
.text section is not in physical memory at boot.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-08-26 21:16:22 -04:00

20 lines
462 B
CMake

# Copyright (c) 2020 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
add_definitions(-D__ZEPHYR_SUPERVISOR__)
include_directories(
${ZEPHYR_BASE}/kernel/include
${ARCH_DIR}/${ARCH}/include
)
if(NOT DEFINED CONFIG_BACKING_STORE_CUSTOM)
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_BACKING_STORE_RAM ram.c)
zephyr_library_sources_ifdef(
CONFIG_BACKING_STORE_QEMU_X86_TINY_FLASH
backing_store_qemu_x86_tiny.c
)
endif()