Skip to content

Commit

Permalink
langutils: re-add verible, installing bazel in a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed Dec 10, 2024
1 parent 4c9beed commit a247295
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
15 changes: 5 additions & 10 deletions recipes/langutils
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,18 @@ RUN apt-get update -qq \
ca-certificates \
curl \
git \
gnupg \
python3 \
zlib1g-dev \
# vhd2vl
flex \
bison \
iverilog \
# Surelog
cmake \
default-jre \
python3-orderedmultidict \
&& curl -sSL https://get.haskellstack.org/ | sh \
&& curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor -o /usr/share/keyrings/bazel-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] \
https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends bazel \
&& curl -sSL https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-linux-x86_64 \
-o /usr/bin/bazel && chmod +x /usr/bin/bazel \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -67,9 +62,9 @@ RUN git clone --depth 1 https://github.com/zachjs/sv2v.git \
# Verible
#

# RUN git clone --depth 1 https://github.com/chipsalliance/verible.git \
# && cd verible && bazel build -c opt //... \
# && bazel run -c opt :install -- /usr/local/bin
RUN git clone --depth 1 https://github.com/chipsalliance/verible.git \
&& cd verible && bazel build -c opt //... \
&& bazel run -c opt :install -- /usr/local/bin

#
# Clean-up
Expand Down
4 changes: 2 additions & 2 deletions tests/langutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ $DOCKER vhd2vl --version
$DOCKER slang --version
$DOCKER surelog --version
$DOCKER sv2v --version
# $DOCKER verible-verilog-syntax --version
$DOCKER verible-verilog-syntax --version

$DOCKER vhd2vl --quiet hdl/counter.vhdl results/vhd2vl.v
$DOCKER slang hdl/counter.sv --lint-only
$DOCKER surelog -parse hdl/counter.sv
$DOCKER sv2v hdl/counter.sv --write=results/sv2v.v
# $DOCKER verible-verilog-lint hdl/counter.sv
$DOCKER verible-verilog-lint hdl/counter.sv

rm -fr slpp_all

0 comments on commit a247295

Please sign in to comment.