From bf574a08545dd4b3e27a1f7c25f836d7553d8e5f Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 12 Jun 2024 11:35:05 +0200 Subject: [PATCH] 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. Signed-off-by: Gerard Marull-Paretas --- soc/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/soc/CMakeLists.txt b/soc/CMakeLists.txt index f9d754cfbb3..7cd3f1af754 100644 --- a/soc/CMakeLists.txt +++ b/soc/CMakeLists.txt @@ -12,6 +12,16 @@ unset(_SOC_IS_IN_TREE) add_subdirectory(common) if(HWMv1) + message(DEPRECATION " + --------------------------------------------------------------------- + --- WARNING: Functionality to describe SoCs in HWMv1 is --- + --- deprecated and should be replaced with HWMv2, including --- + --- boards. HWMv1 SoCs support remains only to ease the migration --- + --- of out-of-tree SoCs and associated boards. It will not be --- + --- possible to build using HWMv1 SoCs at all in future releases. --- + ---------------------------------------------------------------------" + ) + if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt) add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH}) else()