ecp5/cmake: Improve error message when trellis/pytrellis not found
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
7b9b2bef3c
commit
d16d34736f
@ -1,6 +1,17 @@
|
||||
|
||||
set(devices 45k)
|
||||
|
||||
if (NOT DEFINED TRELLIS_ROOT)
|
||||
message(FATAL_ERROR "you must define TRELLIS_ROOT using -DTRELLIS_ROOT=/path/to/prjtrellis for ECP5 support")
|
||||
endif()
|
||||
|
||||
|
||||
file( GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*)
|
||||
|
||||
if ("${found_pytrellis}" STREQUAL "")
|
||||
message(FATAL_ERROR "failed to find pytrellis library in ${TRELLIS_ROOT}/libtrellis/")
|
||||
endif()
|
||||
|
||||
set(DB_PY ${CMAKE_CURRENT_SOURCE_DIR}/ecp5/trellis_import.py)
|
||||
|
||||
file(MAKE_DIRECTORY ecp5/chipdbs/)
|
||||
|
Loading…
Reference in New Issue
Block a user