Added yosys and friends

This commit is contained in:
Torsten Kurbad
2025-05-30 14:53:24 +02:00
parent a5821f61c9
commit 0434a0ac5c
18 changed files with 536 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
AUX yosys-makefile.patch 1497 BLAKE2B 18690acaafc3406e991c596f46cf1fd554c51ffcabcc2d61e8340e9a7bd230d48022b06ac387abc6ba23a7ff45623d4b654af3e597c29ec10384a8c697500ca7 SHA512 57bb4b9681c0bc6f0a8de51ab3c983323a4303360e186df276473d8e0d15ca0347afe7beace984c64711cb60b7482adaf32e4b344b53c67f3074bb7a00da7c5b
EBUILD yosys-0.48.ebuild 440 BLAKE2B dce537419fd945cebceab9fbdbf3eedd28061aeecb285764f73dbfdffab781b3441cfaa579a18281c33a5185b978e0cd8d404d31042902794eb82a7b92a69bfd SHA512 66c42b8a33000803856c0779eeac135d19536819230af10ace98a1807a546f75bf237197657e6bb8425beb92850487dd83f2452e4f1c572d2a805132eaa18c5f
EBUILD yosys-9999.ebuild 418 BLAKE2B 61d2f2dc3253820f7b11a8ae83308fefdc1e7b7775b7509cfbc99d2b3876411875d1e521348b5fd3f842385e9ba6009d100ac836ca62defa42995adffda4b468 SHA512 5a3b7550ad57b4d9b60c93c985cba2d9b300284f0836419ae1b87073876b06ddfcdade516761be498cbe2a9fc87f7a2d344f6d6ef9debb730126f80a7c98e841
@@ -0,0 +1,31 @@
--- a/Makefile 2024-08-14 14:36:42.000000000 -0700
+++ a/Makefile 2024-08-14 14:38:01.079046045 -0700
@@ -785,27 +785,7 @@
.PHONY: check-git-abc
check-git-abc:
- @if [ ! -d "$(YOSYS_SRC)/abc" ]; then \
- echo "Error: The 'abc' directory does not exist."; \
- echo "Initialize the submodule: Run 'git submodule update --init' to set up 'abc' as a submodule."; \
- exit 1; \
- elif git -C "$(YOSYS_SRC)" submodule status abc 2>/dev/null | grep -q '^ '; then \
- exit 0; \
- elif [ -f "$(YOSYS_SRC)/abc/.gitcommit" ] && ! grep -q '\$$Format:%[hH]\$$' "$(YOSYS_SRC)/abc/.gitcommit"; then \
- echo "'abc' comes from a tarball. Continuing."; \
- exit 0; \
- elif [ -f "$(YOSYS_SRC)/abc/.gitcommit" ] && grep -q '\$$Format:%[hH]\$$' "$(YOSYS_SRC)/abc/.gitcommit"; then \
- echo "Error: 'abc' is not configured as a git submodule."; \
- echo "To resolve this:"; \
- echo "1. Back up your changes: Save any modifications from the 'abc' directory to another location."; \
- echo "2. Remove the existing 'abc' directory: Delete the 'abc' directory and all its contents."; \
- echo "3. Initialize the submodule: Run 'git submodule update --init' to set up 'abc' as a submodule."; \
- echo "4. Reapply your changes: Move your saved changes back to the 'abc' directory, if necessary."; \
- exit 1; \
- else \
- echo "Initialize the submodule: Run 'git submodule update --init' to set up 'abc' as a submodule."; \
- exit 1; \
- fi
+ exit 0;
abc/abc$(EXE) abc/libabc.a: check-git-abc
$(P)
+27
View File
@@ -0,0 +1,27 @@
EAPI=8
inherit git-r3
DESCRIPTION="framework for Verilog RTL synthesis"
HOMEPAGE="http://www.clifford.at/yosys/"
EGIT_REPO_URI=https://github.com/YosysHQ/yosys
EGIT_COMMIT=v$PV
LICENSE=ISC
SLOT=0
KEYWORDS=amd64
PATCHES=( $FILESDIR/$PN-makefile.patch )
DEPEND="dev-vcs/git
media-gfx/xdot
dev-libs/boost
llvm-core/clang"
src_compile()
{
emake DESTDIR="$D" PREFIX=/usr
}
src_install()
{
emake DESTDIR="$D" PREFIX=/usr install
}
+26
View File
@@ -0,0 +1,26 @@
EAPI=8
inherit git-r3
DESCRIPTION="framework for Verilog RTL synthesis"
HOMEPAGE="http://www.clifford.at/yosys/"
EGIT_REPO_URI=https://github.com/YosysHQ/yosys
LICENSE=ISC
SLOT=0
KEYWORDS=
PATCHES=( $FILESDIR/$PN-makefile.patch )
DEPEND="dev-vcs/git
media-gfx/xdot
dev-libs/boost
sys-devel/clang"
src_compile()
{
emake DESTDIR="$D" PREFIX=/usr
}
src_install()
{
emake DESTDIR="$D" PREFIX=/usr install
}