Skip to content

Commit 12fa74f

Browse files
authored
Merge pull request #186 from antmicro/remove_build_upstream
Remove BUILD_UPSTREAM variable
2 parents 2acc97d + f609914 commit 12fa74f

File tree

8 files changed

+7
-319
lines changed

8 files changed

+7
-319
lines changed

.github/workflows/build-and-test.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ source .github/workflows/common.sh
1515

1616
start_section Building
1717

18-
if [ "$BUILD_UPSTREAM" = "0" ]
19-
then
20-
make UHDM_INSTALL_DIR=$HOME/.local-bin plugins -j`nproc`
21-
else
22-
make UHDM_INSTALL_DIR=`pwd`/env/conda/envs/yosys-plugins/ plugins -j`nproc`
23-
fi
18+
make UHDM_INSTALL_DIR=`pwd`/env/conda/envs/yosys-plugins/ plugins -j`nproc`
2419
end_section
2520

2621
##########################################################################

.github/workflows/ci.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ jobs:
1414

1515
Run-tests:
1616
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
include:
21-
- {BUILD_UPSTREAM: "0"}
22-
- {BUILD_UPSTREAM: "1"}
23-
24-
name: "UHDM_BUILD_UPSTREAM_YOSYS=${{matrix.BUILD_UPSTREAM}}"
2517

2618
steps:
2719

@@ -46,22 +38,18 @@ jobs:
4638

4739
- name: ccache
4840
uses: hendrikmuhs/ccache-action@v1
49-
with:
50-
key: ${{ matrix.BUILD_UPSTREAM }}
5141

5242
- name: Install Yosys
5343
run: |
5444
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
5545
source .github/workflows/setup.sh
5646
env:
5747
OS: ${{ runner.os }}
58-
BUILD_UPSTREAM: ${{ matrix.BUILD_UPSTREAM }}
5948

6049
- name: Build and test plugins
6150
run: |
6251
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
63-
if [ "$BUILD_UPSTREAM" = "1" ]; then source env/conda/bin/activate yosys-plugins; fi
52+
source env/conda/bin/activate yosys-plugins
6453
source .github/workflows/build-and-test.sh
6554
env:
6655
OS: ${{ runner.os }}
67-
BUILD_UPSTREAM: ${{ matrix.BUILD_UPSTREAM }}

.github/workflows/setup.sh

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,8 @@ start_section Install-Yosys
4242
echo '=========================='
4343
echo 'Making env with yosys and Surelog'
4444
echo '=========================='
45-
if [ "$BUILD_UPSTREAM" = "0" ]
46-
then
47-
mkdir -p ~/.local-src
48-
mkdir -p ~/.local-bin
49-
cd ~/.local-src
50-
git clone https://github.com/antmicro/yosys.git -b uhdm-plugin
51-
cd yosys
52-
PREFIX=$HOME/.local-bin make CONFIG=gcc ENABLE_NDEBUG=1 -j$(nproc)
53-
PREFIX=$HOME/.local-bin make install
54-
cd ..
55-
git clone --recursive https://github.com/chipsalliance/Surelog.git -b master
56-
cd Surelog
57-
pip install orderedmultidict
58-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/.local-bin -DCMAKE_POSITION_INDEPENDENT_CODE=ON -S . -B build
59-
cmake --build build -j $(nproc)
60-
cmake --install build
61-
cd ../..
62-
else
63-
make env
64-
make enter
65-
fi
45+
make env
46+
make enter
6647
echo $(which yosys)
6748
echo $(which yosys-config)
6849
echo $(yosys-config --datdir)

uhdm-plugin/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ CPPFLAGS += -std=c++17 -Wall -W -Wextra -Werror \
1818
-I${UHDM_INSTALL_DIR}/include \
1919
-I${UHDM_INSTALL_DIR}/include/surelog
2020

21-
ifeq ($(BUILD_UPSTREAM), 1)
22-
CXXFLAGS += -DBUILD_UPSTREAM=1
23-
endif
24-
2521
CXXFLAGS += -Wno-unused-parameter
2622
LDFLAGS += -L${UHDM_INSTALL_DIR}/lib/uhdm -L${UHDM_INSTALL_DIR}/lib/surelog -L${UHDM_INSTALL_DIR}/lib -L${UHDM_INSTALL_DIR}/lib64/uhdm -L${UHDM_INSTALL_DIR}/lib64/surelog -L${UHDM_INSTALL_DIR}/lib64
2723
LDLIBS += -Wl,--whole-archive -luhdm -Wl,--no-whole-archive -lsurelog -lantlr4-runtime -lflatbuffers -lcapnp -lkj -ldl -lutil -lm -lrt -lpthread

0 commit comments

Comments
 (0)