From 8d9eece44d7bf97e30802e725031355bbc462540 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 16 Oct 2023 15:55:50 -0700 Subject: [PATCH] cmake: block compilation of the 'main' rimage branch Gently redirect users to https://github.com/thesofproject/sof/tree/main/tools/rimage and https://github.com/thesofproject/sof/issues/8178 Signed-off-by: Marc Herbert --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e0a5da..557d35c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,15 @@ cmake_minimum_required(VERSION 3.10) project(SOF_RIMAGE C) +# Secret bisectability escape hatch in case things change again... +if(NOT RIMAGE_FORCE_BUILD_DEAD_BRANCH) +message(FATAL_ERROR +"The rimage 'main' branch has been moved to: + https://github.com/thesofproject/sof/tree/main/tools/rimage +Please use another branch. +For more see https://github.com/thesofproject/sof/issues/8178") +endif() + if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS "No CMAKE_BUILD_TYPE, defaulting to Debug") set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build Type" FORCE)