nextpnr: remove obsolete trellis hack
This commit is contained in:
parent
a5ac052dd3
commit
35994c61d6
@ -11,19 +11,6 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
boostPython = boost.override { python = python3; enablePython = true; };
|
boostPython = boost.override { python = python3; enablePython = true; };
|
||||||
|
|
||||||
# This is a massive hack. For now, Trellis doesn't really support
|
|
||||||
# installation through an already-built package; you have to build it once to
|
|
||||||
# get the tools, then reuse the build directory to build nextpnr -- the
|
|
||||||
# 'install' phase doesn't install everything it needs. This will be fixed in
|
|
||||||
# the future but for now we can do this horrific thing.
|
|
||||||
trellisRoot = trellis.overrideAttrs (_: {
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp *.so ..
|
|
||||||
cd ../../.. && cp -R trellis database $out/
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nextpnr";
|
pname = "nextpnr";
|
||||||
@ -47,7 +34,8 @@ stdenv.mkDerivation rec {
|
|||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
[ "-DARCH=generic;ice40;ecp5"
|
[ "-DARCH=generic;ice40;ecp5"
|
||||||
"-DICEBOX_ROOT=${icestorm}/share/icebox"
|
"-DICEBOX_ROOT=${icestorm}/share/icebox"
|
||||||
"-DTRELLIS_ROOT=${trellisRoot}/trellis"
|
"-DTRELLIS_ROOT=${trellis}/share/trellis"
|
||||||
|
"-DPYTRELLIS_LIBDIR=${trellis}/lib/trellis"
|
||||||
"-DUSE_OPENMP=ON"
|
"-DUSE_OPENMP=ON"
|
||||||
# warning: high RAM usage
|
# warning: high RAM usage
|
||||||
"-DSERIALIZE_CHIPDB=OFF"
|
"-DSERIALIZE_CHIPDB=OFF"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user