commit | 9bf7ce8c5fe8152836a6e00bd4444153bd950342 | [log] [tgz] |
---|---|---|
author | Lucas Tamborrino <lucas.tamborrino@espressif.com> | Tue Sep 05 11:20:50 2023 -0300 |
committer | Jamie <40387179+nordicjm@users.noreply.github.com> | Wed Sep 06 10:07:09 2023 +0100 |
tree | 88967e9b82b2458c2d14e47a6cd4fd89308e14d3 | |
parent | f0ad026fa75c1433c3f0c0661b3bd49aa6e6d11e [diff] [blame] |
zephyr: Fix build for non-arm archs Guards the inclusion of cmsis_core header for ARM targets only. Fixes #1799 Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 8551649..089f75b 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c
@@ -27,7 +27,9 @@ #include <soc.h> #include <zephyr/linker/linker-defs.h> +#if defined(CONFIG_ARM) #include <cmsis_core.h> +#endif #include "target.h"