
While it served a purpose (granting the ability to build `.bba` files separately from the rest of nextpnr), it made things excessively convoluted, especially around paths. This commit removes the ability to pre-generate chip databases. As far as I know, I was the primary user of that feature. It can be added back if there is demand for it. In exchange the per-family `CMakeLists.txt` files are now much easier to understand.
15 lines
549 B
CMake
15 lines
549 B
CMake
set(icestorm_default_install_prefix ${CMAKE_INSTALL_PREFIX})
|
|
if (DEFINED ENV{ICESTORM_INSTALL_PREFIX})
|
|
set(icestorm_default_install_prefix $ENV{ICESTORM_INSTALL_PREFIX})
|
|
endif()
|
|
set(ICESTORM_INSTALL_PREFIX ${icestorm_default_install_prefix} CACHE STRING
|
|
"IceStorm install prefix")
|
|
message(STATUS "IceStorm install prefix: ${ICESTORM_INSTALL_PREFIX}")
|
|
|
|
if (NOT ICEBOX_DATADIR)
|
|
set(ICEBOX_DATADIR ${ICESTORM_INSTALL_PREFIX}/share/icebox)
|
|
endif()
|
|
message(STATUS "icebox data directory: ${ICEBOX_DATADIR}")
|
|
|
|
return(PROPAGATE ICEBOX_DATADIR)
|