FreeBSD Bugzilla – Attachment 245407 Details for
Bug 274240
cad/ghdl: Enable libghdl with synthesis features
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for libghdl with synthesis features
0003-cad-ghdl-Enable-libghdl-with-synthesis-features.patch (text/plain), 2.02 KB, created by
Nico Sonack
on 2023-10-03 13:51:05 UTC
(
hide
)
Description:
Patch for libghdl with synthesis features
Filename:
MIME Type:
Creator:
Nico Sonack
Created:
2023-10-03 13:51:05 UTC
Size:
2.02 KB
patch
obsolete
>From ac60a13273617b4252c95baceef9c13463423a90 Mon Sep 17 00:00:00 2001 >From: Nico Sonack <nsonack@herrhotzenplotz.de> >Date: Sat, 30 Sep 2023 20:01:35 +0200 >Subject: [PATCH 3/5] cad/ghdl: Enable libghdl with synthesis features > >This is required for the yosys ghdl synth plugin. > >Signed-off-by: Nico Sonack <nsonack@herrhotzenplotz.de> >--- > cad/ghdl/Makefile | 11 +++++++---- > cad/ghdl/pkg-plist | 5 +++++ > 2 files changed, 12 insertions(+), 4 deletions(-) > >diff --git a/cad/ghdl/Makefile b/cad/ghdl/Makefile >index 0cc0282cb15c..27a5a1be245c 100644 >--- a/cad/ghdl/Makefile >+++ b/cad/ghdl/Makefile >@@ -1,7 +1,7 @@ > PORTNAME= ghdl > DISTVERSIONPREFIX= v > DISTVERSION= 3.0.0 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= cad > > MAINTAINER= yuri@FreeBSD.org >@@ -27,11 +27,10 @@ GNU_CONFIGURE= yes > > LLVMVER= 15 # last supported version, see https://github.com/ghdl/ghdl/blob/master/configure#L317 > >-CONFIGURE_ARGS= --disable-libghdl >- >+OPTIONS_DEFINE= SYNTH > OPTIONS_SINGLE= BACKEND > OPTIONS_SINGLE_BACKEND= MCODE LLVM >-OPTIONS_DEFAULT= LLVM >+OPTIONS_DEFAULT= LLVM SYNTH > OPTIONS_SUB= yes > > MCODE_DESC= Use the MCODE backend >@@ -43,6 +42,10 @@ LLVM_CONFIGURE_ON= --with-llvm-config=${LOCALBASE}/bin/llvm-config${LLVMVER} > LLVM_BUILD_DEPENDS= llvm-config${LLVMVER}:devel/llvm${LLVMVER} > LLVM_RUN_DEPENDS= llc${LLVMVER}:devel/llvm${LLVMVER} > >+SYNTH_DESC= Enable Synthesis Features in ghdl >+SYNTH_CONFIGURE_ON= --enable-synth >+SYNTH_CONFIGURE_OFF= --disable-libghdl >+ > post-install-MCODE-on: > @${STRIP_CMD} \ > ${STAGEDIR}${PREFIX}/bin/ghdl \ >diff --git a/cad/ghdl/pkg-plist b/cad/ghdl/pkg-plist >index 7907e23413a4..e7907c40b0aa 100644 >--- a/cad/ghdl/pkg-plist >+++ b/cad/ghdl/pkg-plist >@@ -4,7 +4,12 @@ bin/ghwdump > include/ghdl/libghw.h > include/ghdl/vhpi_user.h > include/ghdl/vpi_user.h >+%%SYNTH%%include/ghdl/synth.h >+%%SYNTH%%include/ghdl/synth_gates.h > lib/ghdl/ansi_color.sh >+%%SYNTH%%lib/libghdl-3_0_0.so >+%%SYNTH%%lib/libghdl.a >+%%SYNTH%%lib/libghdl.link > %%LLVM%%lib/ghdl/grt-exec.lst > %%LLVM%%lib/ghdl/grt-shared.lst > %%LLVM%%lib/ghdl/grt.lst >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 274240
: 245407