-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* verilog escaping in progress * verilog escaping in progress * testing escaping in progress * merge main * switch to main * Working on docker version for naja_edit * improve dockerfile * verilog escaping in dumper * License cleaning * debug regress * cleaning workflows * print regress versions * fix path * full compilation of the regress env. Allows to reproduce in local and to control tools versions * remove previous docker file * switch to latest naja-verilog * update workflow * clean license * Update regress.yml * try another version of ubuntu * switch to latest * escape keywords * trying with apt * clean again * fix escaping on assigns
- Loading branch information
Showing
21 changed files
with
348 additions
and
106 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
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
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
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,44 @@ | ||
# SPDX-FileCopyrightText: 2024 The Naja authors <https://github.com/najaeda/naja/blob/main/AUTHORS> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM alpine:3.19.1 as builder | ||
|
||
# Install required packages | ||
RUN apk --no-cache add ca-certificates | ||
RUN apk update && apk upgrade | ||
RUN apk add --no-cache cmake make g++ \ | ||
python3-dev capnproto capnproto-dev \ | ||
bison flex-dev boost-dev onetbb-dev | ||
|
||
# Set the working directory | ||
WORKDIR /naja | ||
COPY CMakeLists.txt /naja/ | ||
COPY src /naja/src | ||
COPY test /naja/test | ||
COPY cmake /naja/cmake | ||
COPY primitives /naja/primitives | ||
COPY thirdparty /naja/thirdparty | ||
|
||
WORKDIR /naja/build | ||
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \ | ||
cmake --build . --parallel 8 && \ | ||
cmake --install . --prefix /naja/install | ||
RUN ctest -j8 | ||
|
||
FROM alpine:3.19.1 as release | ||
RUN apk --no-cache add ca-certificates | ||
RUN apk add --no-cache \ | ||
libstdc++ capnproto python3 | ||
|
||
RUN addgroup -S naja && adduser -S naja -G naja | ||
USER naja | ||
COPY --chown=naja:naja --from=builder \ | ||
./naja/install/bin/naja_edit \ | ||
./naja/ | ||
COPY --chown=naja:naja --from=builder \ | ||
./naja/install/lib \ | ||
./naja/lib | ||
ENV LD_LIBRARY_PATH /naja/lib | ||
ENV PYTHONPATH /naja/lib/python | ||
ENTRYPOINT [ "./naja/naja_edit" ] |
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,51 @@ | ||
# SPDX-FileCopyrightText: 2024 The Naja authors <https://github.com/najaeda/naja/blob/main/AUTHORS> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM alpine:3.19.1 as builder | ||
|
||
# Install required packages | ||
RUN apk --no-cache add ca-certificates | ||
RUN apk update && apk upgrade | ||
RUN apk add --no-cache \ | ||
autoconf automake \ | ||
g++ python3 make \ | ||
flex-dev bison \ | ||
help2man | ||
|
||
#compile verilator | ||
RUN wget https://github.com/verilator/verilator/archive/refs/tags/v5.022.tar.gz | ||
RUN tar xvzf v5.022.tar.gz | ||
WORKDIR /verilator-5.022 | ||
RUN autoconf && ./configure --prefix=/verilator-install && make -j$(nproc) | ||
RUN make install | ||
|
||
#compile yosys | ||
RUN apk add pkgconfig tcl-dev readline-dev libffi-dev git | ||
WORKDIR / | ||
RUN wget https://github.com/YosysHQ/yosys/archive/refs/tags/yosys-0.38.tar.gz | ||
RUN tar xvzf yosys-0.38.tar.gz | ||
WORKDIR /yosys-yosys-0.38 | ||
RUN make config-gcc | ||
RUN make -j$(nproc) | ||
RUN make install PREFIX=/yosys-install | ||
|
||
#compile naja | ||
RUN apk add cmake \ | ||
capnproto capnproto-dev \ | ||
python3-dev \ | ||
boost-dev onetbb-dev | ||
COPY / /naja | ||
RUN rm -rf /naja/build | ||
RUN rm -rf /naja-install | ||
WORKDIR /naja/build | ||
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/naja-install && make -j$(nproc) && make install | ||
|
||
WORKDIR /naja/regress | ||
ENV SET_PYTHONPATH=/naja-install/lib/python | ||
ENV LD_LIBRARY_PATH=/naja-install/lib | ||
ENV NAJA_EDIT=/naja-install/bin/naja_edit | ||
ENV PRIMITIVES=/naja-install/shared/primitives/xilinx.py | ||
ENV YOSYS=/yosys-install/bin/yosys | ||
ENV VERILATOR=/verilator-install/bin/verilator | ||
CMD /yosys-install/bin/yosys -V; /verilator-install/bin/verilator -V; make clean; make |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.