Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian-bullseye/ghdl: build mcode from head #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions debian-bullseye/ghdl.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Unai Martinez-Corral
# <[email protected]>
# <[email protected]>
# Niklaus Leuenberger
# <[email protected]>
#
# Copyright Unai Martinez-Corral
#
Expand All @@ -23,15 +25,26 @@ ARG REGISTRY='gcr.io/hdl-containers/debian/bullseye'

#---

FROM ghdl/pkg:bullseye-mcode AS build-mcode
FROM $REGISTRY/build/build AS build-mcode

# TODO Build GHDL on $REGISTRY/build/build instead of picking ghdl/pkg:bullseye-mcode
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
gcc gnat libz-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/ghdl/ghdl /tmp/ghdl \
&& mkdir /tmp/ghdl/build \
&& cd /tmp/ghdl/build \
&& ../configure --prefix=/opt/ghdl \
&& make \
&& make install

#---

FROM scratch AS pkg-mcode

COPY --from=build-mcode / /ghdl/usr/local/
COPY --from=build-mcode /opt/ghdl /ghdl/usr/local/

#---

Expand Down Expand Up @@ -59,7 +72,7 @@ RUN apt-get update -qq \

FROM base AS mcode

COPY --from=build-mcode / /usr/local/
COPY --from=build-mcode /opt/ghdl /usr/local/

#--

Expand Down