diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d9c18554..baddfb98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,9 @@ endif() set(PROGRAM_PREFIX "" CACHE STRING "Name prefix for executables") # List of families to build -set(FAMILIES generic ice40 ecp5) +set(FAMILIES generic ice40 ecp5 nexus) +set(STABLE_FAMILIES generic ice40 ecp5) +set(EXPERIMENTAL_FAMILIES nexus) set(ARCH "" CACHE STRING "Architecture family for nextpnr build") set_property(CACHE ARCH PROPERTY STRINGS ${FAMILIES}) @@ -75,14 +77,20 @@ if (NOT ARCH) message(STATUS "Architecture needs to be set, set desired one with -DARCH=xxx") message(STATUS "Supported architectures are :") message(STATUS " all") + message(STATUS " all+alpha") foreach(item ${FAMILIES}) message(STATUS " ${item}") endforeach() message(FATAL_ERROR "Architecture setting is mandatory") endif () +if (ARCH STREQUAL "all+alpha") + SET(ARCH ${STABLE_FAMILIES} ${EXPERIMENTAL_FAMILIES}) +endif() + + if (ARCH STREQUAL "all") - SET(ARCH ${FAMILIES}) + SET(ARCH ${STABLE_FAMILIES}) endif() foreach(item ${ARCH}) @@ -286,6 +294,7 @@ endforeach (family) file(GLOB_RECURSE CLANGFORMAT_FILES *.cc *.h) string(REGEX REPLACE "[^;]*/ice40/chipdb/chipdb-[^;]*.cc" "" CLANGFORMAT_FILES "${CLANGFORMAT_FILES}") string(REGEX REPLACE "[^;]*/ecp5/chipdb/chipdb-[^;]*.cc" "" CLANGFORMAT_FILES "${CLANGFORMAT_FILES}") +string(REGEX REPLACE "[^;]*nexus/chipdb/chipdb-[^;]*.cc" "" CLANGFORMAT_FILES "${CLANGFORMAT_FILES}") string(REGEX REPLACE "[^;]*/3rdparty[^;]*" "" CLANGFORMAT_FILES "${CLANGFORMAT_FILES}") string(REGEX REPLACE "[^;]*/generated[^;]*" "" CLANGFORMAT_FILES "${CLANGFORMAT_FILES}") |