aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/family.cmake
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2020-03-03 15:32:00 +0100
committerSylvain Munaut <tnt@246tNt.com>2020-03-03 15:32:10 +0100
commit054be6fb6700eae02ec1a47ecf3d4c2838ee06d2 (patch)
treef4b6b7d93a85765bca1ddccba06d6f9420d392ee /ice40/family.cmake
parent5fa10e1a9522d626f48d2a70eb58e96c39226212 (diff)
downloadnextpnr-054be6fb6700eae02ec1a47ecf3d4c2838ee06d2.tar.gz
nextpnr-054be6fb6700eae02ec1a47ecf3d4c2838ee06d2.tar.bz2
nextpnr-054be6fb6700eae02ec1a47ecf3d4c2838ee06d2.zip
build: Default the ECP5 and iCE40 roots to the install prefix
If the user specifies a custom install prefix, chances are icestrom/trellis are also in that prefix rather than the hardcoded /usr/local Fixes #351 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'ice40/family.cmake')
-rw-r--r--ice40/family.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/family.cmake b/ice40/family.cmake
index 381fe96a..0252e36a 100644
--- a/ice40/family.cmake
+++ b/ice40/family.cmake
@@ -10,7 +10,7 @@ if (NOT EXTERNAL_CHIPDB)
set(DB_PY ${CMAKE_CURRENT_SOURCE_DIR}/ice40/chipdb.py)
- set(ICEBOX_ROOT "/usr/local/share/icebox" CACHE STRING "icebox location root")
+ set(ICEBOX_ROOT ${CMAKE_INSTALL_PREFIX}/share/icebox CACHE STRING "icebox location root")
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/)
add_library(ice40_chipdb OBJECT ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/)
target_compile_definitions(ice40_chipdb PRIVATE NEXTPNR_NAMESPACE=nextpnr_${family})