aboutsummaryrefslogtreecommitdiff
path: root/ports/zephyr
diff options
context:
space:
mode:
authorMaureen Helm2020-08-07 14:39:13 -0500
committerDamien George2020-08-21 11:23:43 +1000
commitac94e06f0ba818157490587af1e4d0fb4cf3e962 (patch)
tree2668587eab0a02fbb7c7c553e249332a14f3a1c3 /ports/zephyr
parent60f5b941e096aba270a7d4af8faa33169de8364f (diff)
zephyr: Include storage/flash_map.h unconditionally.
Include storage/flash_map.h unconditionally so we always have access to the FLASH_AREA_LABEL_EXISTS macro, even if CONFIG_FLASH_MAP is not defined. This fixes a build error for the qemu_x86 board: main.c:108:63: error: missing binary operator before token "(" 108 | #elif defined(CONFIG_FLASH_MAP) && FLASH_AREA_LABEL_EXISTS(storage) | ^ ../../py/mkrules.mk:88: recipe for target 'build/genhdr/qstr.i.last' failed Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
Diffstat (limited to 'ports/zephyr')
-rw-r--r--ports/zephyr/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c
index 78b947d7a..74785cc83 100644
--- a/ports/zephyr/main.c
+++ b/ports/zephyr/main.c
@@ -38,9 +38,7 @@
#include <usb/usb_device.h>
#endif
-#ifdef CONFIG_FLASH_MAP
#include <storage/flash_map.h>
-#endif
#include "py/mperrno.h"
#include "py/compile.h"