From c84f20934f903a3c576541ee85a3095558302228 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 22 Apr 2025 19:28:58 +0200 Subject: [PATCH] gatemate: make build work as for other uarch --- himbaechel/uarch/gatemate/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/himbaechel/uarch/gatemate/CMakeLists.txt b/himbaechel/uarch/gatemate/CMakeLists.txt index 4e705671..a713fcbd 100644 --- a/himbaechel/uarch/gatemate/CMakeLists.txt +++ b/himbaechel/uarch/gatemate/CMakeLists.txt @@ -28,7 +28,7 @@ add_nextpnr_himbaechel_microarchitecture(${uarch} set(HIMBAECHEL_PEPPERCORN_PATH "" CACHE STRING "Path to a Project Peppercorn database") -if (NOT HIMBAECHEL_PEPPERCORN_PATH) +if (NOT HIMBAECHEL_PEPPERCORN_PATH AND NOT IMPORT_BBA_FILES) message(FATAL_ERROR "HIMBAECHEL_PEPPERCORN_PATH must be set to a Project Peppercorn checkout") endif() @@ -36,6 +36,9 @@ endif() set(ALL_HIMBAECHE_GATEMATE_DEVICES CCGM1A1) set(HIMBAECHEL_GATEMATE_DEVICES ${ALL_HIMBAECHE_GATEMATE_DEVICES} CACHE STRING "Include support for these GateMate devices (available: ${ALL_HIMBAECHE_GATEMATE_DEVICES})") +if (HIMBAECHEL_GATEMATE_DEVICES STREQUAL "all") + set(HIMBAECHEL_GATEMATE_DEVICES ${ALL_HIMBAECHE_GATEMATE_DEVICES}) +endif() message(STATUS "Enabled Himbaechel-GateMate devices: ${HIMBAECHEL_GATEMATE_DEVICES}") foreach (device ${HIMBAECHEL_GATEMATE_DEVICES})