aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorTobias Müller <Tobias_Mueller@twam.info>2019-01-13 17:10:55 +0100
committerTobias Müller <Tobias_Mueller@twam.info>2019-01-13 17:15:28 +0100
commit95ed84fd91d4ada949732ba8e1228dfaea10da2c (patch)
tree148d2c53abbe340950ac9db9080c2598dcdc7fd5 /ecp5
parentc1d15c749c2aa105ee7b38ebe1b60a27e3743e8c (diff)
downloadnextpnr-95ed84fd91d4ada949732ba8e1228dfaea10da2c.tar.gz
nextpnr-95ed84fd91d4ada949732ba8e1228dfaea10da2c.tar.bz2
nextpnr-95ed84fd91d4ada949732ba8e1228dfaea10da2c.zip
Search for trellis in /usr/local/share/trellis if not specified with -DTRELLIS_ROOT
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/family.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecp5/family.cmake b/ecp5/family.cmake
index 1aae2bea..2d0a5d66 100644
--- a/ecp5/family.cmake
+++ b/ecp5/family.cmake
@@ -2,11 +2,11 @@
set(devices 25k 45k 85k)
if (NOT DEFINED TRELLIS_ROOT)
- message(FATAL_ERROR "you must define TRELLIS_ROOT using -DTRELLIS_ROOT=/path/to/prjtrellis for ECP5 support")
+ message(STATUS "TRELLIS_ROOT not defined using -DTRELLIS_ROOT=/path/to/prjtrellis. Default to /usr/local/share/trellis")
+ set(TRELLIS_ROOT "/usr/local/share/trellis")
endif()
-
-file( GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*)
+file(GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*)
if ("${found_pytrellis}" STREQUAL "")
message(FATAL_ERROR "failed to find pytrellis library in ${TRELLIS_ROOT}/libtrellis/")