Skip to content

Commit 30ec4f7

Browse files
gmarullanangl
authored andcommitted
[nrf fromlist] soc: add deprecation warning if using HWMv1 SoCs
While all in-tree SoCs have been ported to HWMv2, Zephyr still supports out-of-tree SoCs in HWMv1 format, including boards. Add a clear deprecation message so that users get notified that this is a deprecated feature to be removed in the future. Upstream PR: zephyrproject-rtos/zephyr#74143 Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 5301880b6f5b73337b02e7c9bd5498f70d11fd48)
1 parent 5582bf9 commit 30ec4f7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

soc/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ unset(_SOC_IS_IN_TREE)
1212
add_subdirectory(common)
1313

1414
if(HWMv1)
15+
message(DEPRECATION "
16+
---------------------------------------------------------------------
17+
--- WARNING: Functionality to describe SoCs in HWMv1 is ---
18+
--- deprecated and should be replaced with HWMv2, including ---
19+
--- boards. HWMv1 SoCs support remains only to ease the migration ---
20+
--- of out-of-tree SoCs and associated boards. It will not be ---
21+
--- possible to build using HWMv1 SoCs at all in future releases. ---
22+
---------------------------------------------------------------------"
23+
)
24+
1525
if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt)
1626
add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH})
1727
else()

0 commit comments

Comments
 (0)