-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impl: restructure, add different images with prj tools (#15)
Architecture dependent: * impl:ecp5: GHDL + Yosys + nextpnr-ecp5 * impl:ice40: GHDL + Yosys + nextpnr-ice40 * impl:generic: GHDL + Yosys + nextpnr-generic * impl:pnr: GHDL + Yosys + nextpnr-ecp5 + nextpnr-ice40 + nextpnr-generic * impl:icestorm: impl:ice40 + icestorm * impl:prjtrellis: impl:ecp5 + prjtrellis * impl:latest: impl:pnr + icestorm + prjtrellis
- Loading branch information
Showing
11 changed files
with
271 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2019-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
|
@@ -43,9 +44,21 @@ jobs: | |
|
||
- run: echo "$(pwd)/.github/bin" >> $GITHUB_PATH | ||
|
||
- run: dockerBuild impl impl | ||
- run: dockerBuild impl:ecp5 impl ecp5 | ||
- run: dockerBuild impl:ice40 impl ice40 | ||
- run: dockerBuild impl:generic impl generic | ||
- run: dockerBuild impl:icestorm impl icestorm | ||
- run: dockerBuild impl:prjtrellis impl prjtrellis | ||
- run: dockerBuild impl:pnr impl pnr | ||
- run: dockerBuild impl impl | ||
|
||
- run: dockerTest impl | ||
- run: dockerTest impl:ecp5 impl--ecp5 | ||
- run: dockerTest impl:ice40 impl--ice40 | ||
- run: dockerTest impl:generic impl--generic | ||
- run: dockerTest impl:icestorm impl--icestorm | ||
- run: dockerTest impl:prjtrellis impl--prjtrellis | ||
- run: dockerTest impl:pnr impl--pnr | ||
- run: dockerTest impl impl | ||
|
||
- name: Login to DockerHub | ||
if: github.event_name != 'pull_request' && github.repository == 'hdl/containers' | ||
|
@@ -57,4 +70,10 @@ jobs: | |
- if: github.event_name != 'pull_request' && github.repository == 'hdl/containers' | ||
run: >- | ||
dockerPush | ||
impl:ecp5 | ||
impl:ice40 | ||
impl:generic | ||
impl:icestorm | ||
impl:prjtrellis | ||
impl:pnr | ||
impl |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2019-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
|
@@ -17,20 +18,60 @@ | |
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM hdlc/nextpnr | ||
FROM hdlc/ghdl:yosys AS base | ||
|
||
COPY --from=hdlc/pkg:ghdl-yosys-plugin /ghdl / | ||
COPY --from=hdlc/pkg:yosys /yosys / | ||
|
||
RUN apt-get update -qq \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \ | ||
libffi-dev \ | ||
libgnat-8 \ | ||
libreadline-dev \ | ||
tcl-dev \ | ||
graphviz \ | ||
xdot \ | ||
libboost-all-dev \ | ||
libomp5-7 \ | ||
make \ | ||
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists \ | ||
&& yosys-config --exec mkdir -p --datdir/plugins \ | ||
&& yosys-config --exec ln -s /usr/local/lib/ghdl_yosys.so --datdir/plugins/ghdl.so | ||
&& rm -rf /var/lib/apt/lists | ||
|
||
#--- | ||
|
||
FROM base AS ecp5 | ||
|
||
COPY --from=hdlc/pkg:nextpnr-ecp5 /nextpnr-ecp5 / | ||
|
||
#--- | ||
|
||
FROM base AS ice40 | ||
|
||
COPY --from=hdlc/pkg:nextpnr-ice40 /nextpnr-ice40 / | ||
|
||
#--- | ||
|
||
FROM base AS generic | ||
|
||
COPY --from=hdlc/pkg:nextpnr-generic /nextpnr-generic / | ||
|
||
#--- | ||
|
||
FROM ice40 AS icestorm | ||
|
||
COPY --from=hdlc/pkg:icestorm /icestorm / | ||
|
||
#--- | ||
|
||
FROM ecp5 AS prjtrellis | ||
|
||
COPY --from=hdlc/pkg:prjtrellis /prjtrellis / | ||
|
||
#--- | ||
|
||
FROM base AS pnr | ||
|
||
COPY --from=hdlc/pkg:nextpnr-ecp5 /nextpnr-ecp5 / | ||
COPY --from=hdlc/pkg:nextpnr-ice40 /nextpnr-ice40 / | ||
COPY --from=hdlc/pkg:nextpnr-generic /nextpnr-generic / | ||
|
||
#--- | ||
|
||
FROM pnr AS latest | ||
|
||
COPY --from=hdlc/pkg:icestorm /icestorm / | ||
COPY --from=hdlc/pkg:prjtrellis /prjtrellis / |
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,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./ghdl.sh | ||
./yosys.sh | ||
./nextpnr--ecp5.sh |
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,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./ghdl.sh | ||
./yosys.sh | ||
./nextpnr--generic.sh |
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,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./ghdl.sh | ||
./yosys.sh | ||
./nextpnr--ice40.sh |
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,31 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./ghdl.sh | ||
./yosys.sh | ||
|
||
./nextpnr--ice40.sh | ||
./icestorm.sh |
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,32 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./ghdl.sh | ||
./yosys.sh | ||
|
||
./nextpnr--ecp5.sh | ||
./nextpnr--ice40.sh | ||
./nextpnr--generic.sh |
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,31 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./ghdl.sh | ||
./yosys.sh | ||
|
||
./nextpnr--ecp5.sh | ||
./prjtrellis.sh |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Sebastian Birke <[email protected]> | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]> | ||
# | ||
|
@@ -26,7 +27,12 @@ cd $(dirname "$0") | |
./_env.sh | ||
|
||
./ghdl.sh | ||
./nextpnr.sh | ||
./yosys.sh | ||
|
||
./_todo.sh | ||
./nextpnr--ecp5.sh | ||
./prjtrellis.sh | ||
|
||
./nextpnr--ice40.sh | ||
./icestorm.sh | ||
|
||
./nextpnr--generic.sh |