From eba6ea53f8a03086a48a67c1b8e2a0fce4ff48c0 Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Tue, 14 Jan 2020 12:28:40 -0800 Subject: 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. --- ice40/family.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ice40') 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) -- cgit v1.2.3