himbaechel: allow subsetting uarches.
E.g. selecting only Gowin instead of the default shrinks the resulting binary by ~30%.
This commit is contained in:
parent
3708addfdd
commit
2daad1db29
@ -1,5 +1,15 @@
|
||||
set(HIMBAECHEL_UARCHES "example;gowin;xilinx;ng-ultra")
|
||||
foreach(uarch ${HIMBAECHEL_UARCHES})
|
||||
|
||||
set(HIMBAECHEL_UARCH "${HIMBAECHEL_UARCHES}" CACHE STRING "Microarchitectures for nextpnr-himbaechel build")
|
||||
set_property(CACHE HIMBAECHEL_UARCH PROPERTY STRINGS ${HIMBAECHEL_UARCHES})
|
||||
|
||||
foreach(item ${HIMBAECHEL_UARCH})
|
||||
if (NOT item IN_LIST HIMBAECHEL_UARCHES)
|
||||
message(FATAL_ERROR "Microarchitecture '${item}' not in list of supported architectures")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
foreach(uarch ${HIMBAECHEL_UARCH})
|
||||
add_subdirectory(${family}/uarch/${uarch})
|
||||
aux_source_directory(${family}/uarch/${uarch} HM_UARCH_FILES)
|
||||
foreach(target ${family_targets})
|
||||
|
Loading…
Reference in New Issue
Block a user