Skip to content

Commit 39a3e0c

Browse files
committed
zephyr: support renamed Ethos-U Kconfig symbol
Accept ARM_ETHOS_U while retaining compatibility with SDKs that still define ETHOS_U. AI-assisted by Codex. Change-Id: I7749387bc209defef779f875dbe2c562a30f3812 Signed-off-by: Per Held <per.held@arm.com>
1 parent c56e6bf commit 39a3e0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎zephyr/CMakeLists.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ if(CONFIG_EXECUTORCH)
5757
if(CONFIG_CPU_CORTEX_A)
5858
set(EXECUTORCH_BUILD_XNNPACK ON)
5959
endif()
60-
if(CONFIG_ETHOS_U)
60+
# Zephyr renamed these symbols to ARM_ETHOS_U in 4.3. Keep compatibility with
61+
# SDK releases on either side of that rename.
62+
if(CONFIG_ETHOS_U OR CONFIG_ARM_ETHOS_U)
6163
set(EXECUTORCH_BUILD_ARM_BAREMETAL ON)
6264
endif()
6365

0 commit comments

Comments
 (0)