forked from litex-hub/litex-conda-packages
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split uhdm-integration into 3 packages
Signed-off-by: Tomasz Jurtsch <[email protected]>
- Loading branch information
Showing
16 changed files
with
242 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
if [ x"$TRAVIS" = xtrue ]; then | ||
CPU_COUNT=2 | ||
fi | ||
|
||
TOP=$PWD | ||
export PKG_CONFIG_PATH="$BUILD_PREFIX/lib/pkgconfig/" | ||
export CXXFLAGS="$CXXFLAGS \ | ||
-I$BUILD_PREFIX/include \ | ||
-I$TOP/UHDM/include \ | ||
-I$TOP/UHDM/headers \ | ||
-I$TOP/UHDM \ | ||
-I$TOP/yosys/frontends/uhdm \ | ||
-I$PREFIX/include" | ||
export LDFLAGS="$CXXFLAGS \ | ||
-L$TOP/UHDM/build/lib \ | ||
-L$TOP/UHDM/build/third_party/capnproto/c++/src/capnp \ | ||
-L$TOP/UHDM/build/third_party/capnproto/c++/src/kj \ | ||
-L$PREFIX/lib/uhdm \ | ||
-L$BUILD_PREFIX/lib -L$PREFIX/lib -lrt -ltinfo" | ||
|
||
cd $TOP | ||
cd Surelog | ||
make -j$CPU_COUNT PREFIX=$PREFIX | ||
make install | ||
|
||
cp "$PREFIX/bin/surelog" "$PREFIX/bin/surelog-uhdm" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('v','') or '0.X.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %} | ||
|
||
package: | ||
name: surelog-uhdm | ||
version: {{ version }} | ||
|
||
source: | ||
git_rev: {{ environ.get('UHDM_INTEGRATION_REV') }} | ||
git_url: https://github.com/alainmarcel/uhdm-integration.git | ||
|
||
build: | ||
script_env: | ||
- CI | ||
- TRAVIS | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- python {{ python }} | ||
- cmake | ||
- pkg-config | ||
- libuuid | ||
- gperftools | ||
- flex | ||
- libunwind | ||
- swig | ||
run: | ||
- ncurses | ||
- gperftools | ||
- libunwind | ||
- python {{ python }} | ||
|
||
test: | ||
commands: | ||
- surelog-uhdm --version | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
if [ x"$TRAVIS" = xtrue ]; then | ||
CPU_COUNT=2 | ||
fi | ||
|
||
TOP=$PWD | ||
|
||
unset VERILATOR_ROOT | ||
export PKG_CONFIG_PATH="$BUILD_PREFIX/lib/pkgconfig/" | ||
export CXXFLAGS="$CXXFLAGS \ | ||
-I$BUILD_PREFIX/include \ | ||
-I$TOP/UHDM/include \ | ||
-I$TOP/UHDM/headers \ | ||
-I$TOP/UHDM \ | ||
-I$TOP/yosys/frontends/uhdm \ | ||
-I$PREFIX/include" | ||
export LDFLAGS="$CXXFLAGS \ | ||
-L$TOP/UHDM/build/lib \ | ||
-L$TOP/UHDM/build/third_party/capnproto/c++/src/capnp \ | ||
-L$TOP/UHDM/build/third_party/capnproto/c++/src/kj \ | ||
-L$PREFIX/lib/uhdm \ | ||
-L$BUILD_PREFIX/lib -L$PREFIX/lib -lrt -ltinfo" | ||
|
||
cd $TOP | ||
mkdir -p UHDM/build | ||
cd UHDM/build | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX="$PREFIX" \ | ||
-D_GLIBCXX_DEBUG=1 \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS='-D_GLIBCXX_USE_CXX11_ABI=1 -DWITH_LIBCXX=Off' \ | ||
../ | ||
make install | ||
|
||
cd $TOP | ||
cd verilator | ||
autoconf | ||
./configure --prefix=$PREFIX | ||
make -j$CPU_COUNT | ||
make install | ||
|
||
sed -i 's/"verilator_bin"/"verilator_bin-uhdm"/g' "$PREFIX/bin/verilator" | ||
sed -i 's/"verilator_bin_dbg"/"verilator_bin_dbg-uhdm"/g' "$PREFIX/bin/verilator" | ||
mv "$PREFIX/bin/verilator" "$PREFIX/bin/verilator-uhdm" | ||
mv "$PREFIX/bin/verilator_bin" "$PREFIX/bin/verilator_bin-uhdm" | ||
mv "$PREFIX/bin/verilator_bin_dbg" "$PREFIX/bin/verilator_bin_dbg-uhdm" | ||
sed -i 's@'$BUILD_PREFIX'@$(CONDA_PREFIX)@g' "$PREFIX/share/verilator/include/verilated.mk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
channels: | ||
- conda-forge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('v','') or '0.X.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %} | ||
|
||
package: | ||
name: verilator-uhdm | ||
version: {{ version }} | ||
|
||
source: | ||
git_rev: {{ environ.get('UHDM_INTEGRATION_REV') }} | ||
git_url: https://github.com/alainmarcel/uhdm-integration.git | ||
|
||
build: | ||
script_env: | ||
- CI | ||
- TRAVIS | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- python {{ python }} | ||
- cmake | ||
- pkg-config | ||
- libuuid | ||
- gperftools | ||
- flex | ||
- libunwind | ||
- swig | ||
run: | ||
- {{ compiler('cxx') }} | ||
- bison | ||
- flex | ||
- ncurses | ||
|
||
test: | ||
commands: | ||
- verilator-uhdm --version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
if [ x"$TRAVIS" = xtrue ]; then | ||
CPU_COUNT=2 | ||
fi | ||
|
||
TOP=$PWD | ||
export PKG_CONFIG_PATH="$BUILD_PREFIX/lib/pkgconfig/" | ||
export CXXFLAGS="$CXXFLAGS \ | ||
-I$BUILD_PREFIX/include \ | ||
-I$TOP/UHDM/include \ | ||
-I$TOP/UHDM/headers \ | ||
-I$TOP/UHDM \ | ||
-I$TOP/yosys/frontends/uhdm \ | ||
-I$PREFIX/include" | ||
export LDFLAGS="$CXXFLAGS \ | ||
-L$TOP/UHDM/build/lib \ | ||
-L$TOP/UHDM/build/third_party/capnproto/c++/src/capnp \ | ||
-L$TOP/UHDM/build/third_party/capnproto/c++/src/kj \ | ||
-L$PREFIX/lib/uhdm \ | ||
-L$BUILD_PREFIX/lib -L$PREFIX/lib -lrt -ltinfo" | ||
|
||
# Build uhdm, only for yosys build | ||
make uhdm/build -j$CPU_COUNT | ||
cd $TOP | ||
cd yosys | ||
env | ||
make ENABLE_READLINE=0 -j$CPU_COUNT | ||
make install | ||
|
||
# Rebuild UHDM, this time with conda PREFIX | ||
cd $TOP | ||
rm -rf UHDM/build | ||
mkdir -p UHDM/build | ||
cd UHDM/build | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX="$PREFIX" \ | ||
-D_GLIBCXX_DEBUG=1 \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS='-D_GLIBCXX_USE_CXX11_ABI=1 -DWITH_LIBCXX=Off' \ | ||
../ | ||
make install | ||
|
||
mv "$PREFIX/bin/yosys" "$PREFIX/bin/yosys-uhdm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
channels: | ||
- conda-forge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('v','') or '0.X.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %} | ||
|
||
package: | ||
name: yosys-uhdm | ||
version: {{ version }} | ||
|
||
source: | ||
git_rev: {{ environ.get('UHDM_INTEGRATION_REV') }} | ||
git_url: https://github.com/alainmarcel/uhdm-integration.git | ||
|
||
build: | ||
script_env: | ||
- CI | ||
- TRAVIS | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- python {{ python }} | ||
- cmake | ||
- pkg-config | ||
- libuuid | ||
- gperftools | ||
- flex | ||
- libunwind | ||
- swig | ||
run: | ||
- ncurses | ||
|
||
test: | ||
commands: | ||
- yosys-uhdm --version | ||
|