aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/family.cmake
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2020-01-14 12:28:40 -0800
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2020-01-14 12:28:40 -0800
commiteba6ea53f8a03086a48a67c1b8e2a0fce4ff48c0 (patch)
treed6ddde92240cf2d7e0faed440dc0420a7e0ecff9 /ice40/family.cmake
parent92a2109f0c906504b8b7daa95b2a88943a59460d (diff)
downloadnextpnr-eba6ea53f8a03086a48a67c1b8e2a0fce4ff48c0.tar.gz
nextpnr-eba6ea53f8a03086a48a67c1b8e2a0fce4ff48c0.tar.bz2
nextpnr-eba6ea53f8a03086a48a67c1b8e2a0fce4ff48c0.zip
More adjustments to .bba file locations
Follows PM discussion with Marcus Comstedt. Extend changes in .bba file location (made in commit b6a7b60) to ice40 and MSVC cases, so all cases become compatible with read-only access to git tree. Only known down-side is inefficiency when building out-of-tree for multiple architectures; people following that use case should consider using PREGENERATED_BBA_PATH. It would be nice if there were less copy-paste in MSVC vs. non-MSVC content in family.cmake, but that would have to be addressed by someone more skilled in Cmake and MSVC.
Diffstat (limited to 'ice40/family.cmake')
-rw-r--r--ice40/family.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/ice40/family.cmake b/ice40/family.cmake
index 2859f456..381fe96a 100644
--- a/ice40/family.cmake
+++ b/ice40/family.cmake
@@ -11,7 +11,6 @@ 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")
- file(MAKE_DIRECTORY ice40/chipdbs/)
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})
@@ -36,7 +35,7 @@ if (NOT EXTERNAL_CHIPDB)
set(OPT_SLOW --slow ${ICEBOX_ROOT}/timings_lp${dev}.txt)
endif()
set(DEV_TXT_DB ${ICEBOX_ROOT}/chipdb-${dev}.txt)
- set(DEV_CC_BBA_DB ${CMAKE_CURRENT_SOURCE_DIR}/ice40/chipdbs/chipdb-${dev}.bba)
+ set(DEV_CC_BBA_DB ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/chipdb-${dev}.bba)
set(DEV_CC_DB ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/chipdb-${dev}.bin)
set(DEV_CONSTIDS_INC ${CMAKE_CURRENT_SOURCE_DIR}/ice40/constids.inc)
set(DEV_GFXH ${CMAKE_CURRENT_SOURCE_DIR}/ice40/gfx.h)
@@ -82,7 +81,7 @@ if (NOT EXTERNAL_CHIPDB)
set(OPT_SLOW --slow ${ICEBOX_ROOT}/timings_lp${dev}.txt)
endif()
set(DEV_TXT_DB ${ICEBOX_ROOT}/chipdb-${dev}.txt)
- set(DEV_CC_BBA_DB ${CMAKE_CURRENT_SOURCE_DIR}/ice40/chipdbs/chipdb-${dev}.bba)
+ set(DEV_CC_BBA_DB ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/chipdb-${dev}.bba)
set(DEV_CC_DB ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/chipdb-${dev}.cc)
set(DEV_BIN_DB ${CMAKE_CURRENT_BINARY_DIR}/ice40/chipdbs/chipdb-${dev}.bin)
set(DEV_CONSTIDS_INC ${CMAKE_CURRENT_SOURCE_DIR}/ice40/constids.inc)