Skip to content

Commit

Permalink
zephyr: Fix build for non-arm archs
Browse files Browse the repository at this point in the history
Guards the inclusion of cmsis_core header for
ARM targets only.

Fixes #1799

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
  • Loading branch information
LucasTambor authored and nordicjm committed Sep 6, 2023
1 parent f0ad026 commit 9bf7ce8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 9bf7ce8

Please sign in to comment.