Browse Source

Simulate flash for native posix

master
Hendrik Sauer 5 months ago
committed by Patrick Rathje
parent
commit
a905091666
  1. 2
      .gitignore
  2. 2
      zephyr/CMakeLists.txt
  3. 7
      zephyr/boards/native_posix_64.conf
  4. 12
      zephyr/native_posix_64.overlay

2
.gitignore

@ -1,5 +1,5 @@
build/
flash.bin
# Random seed file created by test scripts and sample programs
seedfile

2
zephyr/CMakeLists.txt

@ -15,7 +15,7 @@ if(DEFINED NATIVE_POSIX)
endif ()
target_include_directories(app PUBLIC ${exposure-notification_SOURCE_DIR}/include)
FILE(GLOB app_sources ../src/*.c* ${exposure-notification_SOURCE_DIR}/src/*.c*)
FILE(GLOB app_sources ../src/*.c* ../src/ens/*.c* ${exposure-notification_SOURCE_DIR}/src/*.c*)
else()
FILE(GLOB app_sources ../src/*.c*)
endif()

7
zephyr/boards/native_posix_64.conf

@ -17,7 +17,8 @@ CONFIG_DISPLAY=y
CONFIG_DISPLAY_LOG_LEVEL_ERR=y
CONFIG_BT=n
CONFIG_FLASH=n
# TODO: Add configuration for flash emulation
# CONFIG_FLASH=n
CONFIG_FLASH_SIMULATOR=y
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_HEAP_MEM_POOL_SIZE=8192
# CONFIG_HEAP_MEM_POOL_SIZE=32768

12
zephyr/native_posix_64.overlay

@ -0,0 +1,12 @@
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "ens_storage";
reg = <0x0 0x00004000>;
};
};
};
Loading…
Cancel
Save