diff options
author | 2015-04-15 17:13:10 -0700 | |
---|---|---|
committer | 2015-04-15 17:13:10 -0700 | |
commit | ed87eefc2c09454d08a2741ea9df7183f25166e7 (patch) | |
tree | 38d36f0b91d51d4ad8295c89090aa4b530c39280 /sci-electronics/chisel | |
parent | Use multilib-minimal for libndp (diff) | |
download | palmer-ed87eefc2c09454d08a2741ea9df7183f25166e7.tar.gz palmer-ed87eefc2c09454d08a2741ea9df7183f25166e7.tar.bz2 palmer-ed87eefc2c09454d08a2741ea9df7183f25166e7.zip |
Import sci-electronics/chisel from the old repo
Diffstat (limited to 'sci-electronics/chisel')
-rw-r--r-- | sci-electronics/chisel/Manifest | 8 | ||||
-rw-r--r-- | sci-electronics/chisel/chisel-2.2.17.ebuild | 73 | ||||
-rw-r--r-- | sci-electronics/chisel/chisel-2.2.19-r1.ebuild | 73 | ||||
-rw-r--r-- | sci-electronics/chisel/chisel-2.2.20-r1.ebuild | 77 | ||||
-rw-r--r-- | sci-electronics/chisel/chisel-2.2.20.ebuild | 73 | ||||
-rw-r--r-- | sci-electronics/chisel/files/chisel-2.2.20-Wall.patch | 83 |
6 files changed, 387 insertions, 0 deletions
diff --git a/sci-electronics/chisel/Manifest b/sci-electronics/chisel/Manifest new file mode 100644 index 0000000..62dba27 --- /dev/null +++ b/sci-electronics/chisel/Manifest @@ -0,0 +1,8 @@ +AUX chisel-2.2.20-Wall.patch 2863 SHA256 276b28b1c19f3ee78a05760a19cc15899f30cc16226f96417ef5f6f31afe3835 SHA512 63772839438b307a683d9a48cf8e788137302d109e44d2547c2344e1313da6c1f546ac3e23125ab9c8a4a192537a77cf746a98e08d97c398f19e5d4c695d30f2 WHIRLPOOL a7f0dae24386ab3c0c84367992d87409535f4f216061d54a42c82dac9bf4c32779b51bd012425c3c050e6fb3884a4f9c08576088d3d506a1f63975f55983694f +DIST chisel-2.2.17.tar.gz 17048024 SHA256 4f7f429003125789a3d7b2315a49b51b67ad8978704a88c40d12ee0130f608f3 SHA512 02e22ef423b9ca11e696082ade7ba09273d63c7a37daa25909199b7ac06e31a1a2dea3be16161fbd9a4a5667743e970c26879dbd8205d1eff167e03fb5fa72b5 WHIRLPOOL 274bb8bc44994812971e746297362e294021214af30f734cf50bc96b9229056703ad1949032aee75569ca0eeab1d3efd31611c2da74ae515cdf04aab9acdcf65 +DIST chisel-2.2.19.tar.gz 17599586 SHA256 9ce566e17391d4750d7c4475764f4c2b52312bd110f05da6e9800b631915add6 SHA512 7338ce9c2fc0558bd8441f5a82f3be6302a4600cda4adbf1e2d78fe47a68a53cfbdbd1c8f7e86430b0c542b69a525f2286e703f866b3c1bb803f574842a1350b WHIRLPOOL 7fed27f48ab52be38fd4bf7f47b857fb0cfdef555af320546898264cac9f87136de1ac333b94fd2b60c54991657abf7396d9e9acb84af317f0e95e74477210ac +DIST chisel-2.2.20.tar.gz 17608710 SHA256 c1d13af4f68f25882c01ce8a46444ebe6e18365e9c535eeb53279f7920906cbd SHA512 a893d94244dac713d16cce8e7b369af5e6018836a988a177b009ef6783096d7c5c5e396bc4de0684bfc233b405b9b28f76a8dcb15cd7d9bb8a6460fda6de6314 WHIRLPOOL 6fff7744a82562eb5d52bb550807f268bce85104a569609d7f519e5de3fddd9344032f855d63865a3773515f1561a0d2e9f6420fee2f5374a7bc5e0c9870b1a5 +EBUILD chisel-2.2.17.ebuild 1419 SHA256 20cf7960a3a11c27d7106d1114241b9ede8efc690585db59ca901cf57639229c SHA512 6e72b45320c104c69d0950756401ca42c531495bc928e1eb12b29e06f57cf63bfcba857c79c9fcd2cba0c70fe6a93e5a08dc66728797276ef31a5df7c85cbafd WHIRLPOOL cefdac2a073227ebefa774d5a520c19bb46310f72c3becf7044234f473f0c65c2d21b2aa1e91e41daf890cba4548066c40ed8902dee5a55c104d686046d21e23 +EBUILD chisel-2.2.19-r1.ebuild 1419 SHA256 20cf7960a3a11c27d7106d1114241b9ede8efc690585db59ca901cf57639229c SHA512 6e72b45320c104c69d0950756401ca42c531495bc928e1eb12b29e06f57cf63bfcba857c79c9fcd2cba0c70fe6a93e5a08dc66728797276ef31a5df7c85cbafd WHIRLPOOL cefdac2a073227ebefa774d5a520c19bb46310f72c3becf7044234f473f0c65c2d21b2aa1e91e41daf890cba4548066c40ed8902dee5a55c104d686046d21e23 +EBUILD chisel-2.2.20-r1.ebuild 1490 SHA256 d51d05beb402d1660fd52c6b727e7e8dcc5214fd673fdce75bdf17c02ef06d0f SHA512 d8c0628fa031e5acb61012c4320106514d48c172ec9919ab8f067324d47b117df6e599ebacf9f5bcd49aed31c440a6d4edc824b3471c697577fda9efe5f9fe82 WHIRLPOOL 6683f8629123ecab7386f55cd3252d1172942f1c9d32e2c708ebfbedb69d02fa9c7ba53f8f5a7f2f9d7861e0d7a8510ca903a10ab2837e1971bfd0bc7c641d51 +EBUILD chisel-2.2.20.ebuild 1419 SHA256 20cf7960a3a11c27d7106d1114241b9ede8efc690585db59ca901cf57639229c SHA512 6e72b45320c104c69d0950756401ca42c531495bc928e1eb12b29e06f57cf63bfcba857c79c9fcd2cba0c70fe6a93e5a08dc66728797276ef31a5df7c85cbafd WHIRLPOOL cefdac2a073227ebefa774d5a520c19bb46310f72c3becf7044234f473f0c65c2d21b2aa1e91e41daf890cba4548066c40ed8902dee5a55c104d686046d21e23 diff --git a/sci-electronics/chisel/chisel-2.2.17.ebuild b/sci-electronics/chisel/chisel-2.2.17.ebuild new file mode 100644 index 0000000..a64c3cb --- /dev/null +++ b/sci-electronics/chisel/chisel-2.2.17.ebuild @@ -0,0 +1,73 @@ +EAPI="5" + +inherit eutils + +DESCRIPTION="A HDL" +HOMEPAGE="http://github.com/ucb-bar/${PN}/" +SRC_URI="https://github.com/ucb-bar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/$PV" +KEYWORDS="amd64 amd64-linux" +IUSE="" + +RDEPEND="dev-java/sbt-bin + dev-lang/scala" + +DEPEND="${RDEPEND}" + +src_configure() { + cat >Configfile <<EOF +PREFIX = ${EPREFIX}/usr + +LANGUAGES += scala +LANGUAGES += pkgconfig +LANGUAGES += h +LANGUAGES += bash + +LIBRARIES += libchisel.jar +SOURCES += main/scala/Driver.scala + +LIBRARIES += pkgconfig/chisel.pc +SOURCES += chisel.pc + +HEADERS += chisel/emulator.h +SOURCES += main/resources/emulator.h + +HEADERS += chisel/emulator_mod.h +SOURCES += main/resources/emulator_mod.h + +HEADERS += chisel/emulator_api.h +SOURCES += main/resources/emulator_api.h + +BINARIES += chisel-hdrtar +SOURCES += chisel-hdrtar.bash + +BINARIES += chisel-jargen +SOURCES += chisel-jargen.bash +EOF + + cat > src/chisel.pc <<EOF +prefix=@@pconfigure_prefix@@ +exec_prefix=@@pconfigure_prefix@@ +libdir=\${prefix}/@@pconfigure_libdir@@ +includedir=\${prefix}/@@pconfigure_hdrdir@@ + +Name: chisel +Description: A HDL +Version: $PV +Libs: -lchisel +Cflags: -I\${includedir}/chisel +URL: http://github.com/ucb-bar/chisel +EOF + + cat >src/chisel-jargen.bash <<EOF +cat ${EPREFIX}/usr/lib/libchisel.jar +EOF + + cat >src/chisel-hdrtar.bash <<EOF +tar -C ${EPREFIX}/usr/include/chisel -c . +EOF + + pconfigure +} diff --git a/sci-electronics/chisel/chisel-2.2.19-r1.ebuild b/sci-electronics/chisel/chisel-2.2.19-r1.ebuild new file mode 100644 index 0000000..a64c3cb --- /dev/null +++ b/sci-electronics/chisel/chisel-2.2.19-r1.ebuild @@ -0,0 +1,73 @@ +EAPI="5" + +inherit eutils + +DESCRIPTION="A HDL" +HOMEPAGE="http://github.com/ucb-bar/${PN}/" +SRC_URI="https://github.com/ucb-bar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/$PV" +KEYWORDS="amd64 amd64-linux" +IUSE="" + +RDEPEND="dev-java/sbt-bin + dev-lang/scala" + +DEPEND="${RDEPEND}" + +src_configure() { + cat >Configfile <<EOF +PREFIX = ${EPREFIX}/usr + +LANGUAGES += scala +LANGUAGES += pkgconfig +LANGUAGES += h +LANGUAGES += bash + +LIBRARIES += libchisel.jar +SOURCES += main/scala/Driver.scala + +LIBRARIES += pkgconfig/chisel.pc +SOURCES += chisel.pc + +HEADERS += chisel/emulator.h +SOURCES += main/resources/emulator.h + +HEADERS += chisel/emulator_mod.h +SOURCES += main/resources/emulator_mod.h + +HEADERS += chisel/emulator_api.h +SOURCES += main/resources/emulator_api.h + +BINARIES += chisel-hdrtar +SOURCES += chisel-hdrtar.bash + +BINARIES += chisel-jargen +SOURCES += chisel-jargen.bash +EOF + + cat > src/chisel.pc <<EOF +prefix=@@pconfigure_prefix@@ +exec_prefix=@@pconfigure_prefix@@ +libdir=\${prefix}/@@pconfigure_libdir@@ +includedir=\${prefix}/@@pconfigure_hdrdir@@ + +Name: chisel +Description: A HDL +Version: $PV +Libs: -lchisel +Cflags: -I\${includedir}/chisel +URL: http://github.com/ucb-bar/chisel +EOF + + cat >src/chisel-jargen.bash <<EOF +cat ${EPREFIX}/usr/lib/libchisel.jar +EOF + + cat >src/chisel-hdrtar.bash <<EOF +tar -C ${EPREFIX}/usr/include/chisel -c . +EOF + + pconfigure +} diff --git a/sci-electronics/chisel/chisel-2.2.20-r1.ebuild b/sci-electronics/chisel/chisel-2.2.20-r1.ebuild new file mode 100644 index 0000000..1e88f11 --- /dev/null +++ b/sci-electronics/chisel/chisel-2.2.20-r1.ebuild @@ -0,0 +1,77 @@ +EAPI="5" + +inherit eutils + +DESCRIPTION="A HDL" +HOMEPAGE="http://github.com/ucb-bar/${PN}/" +SRC_URI="https://github.com/ucb-bar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/$PV" +KEYWORDS="amd64 amd64-linux" +IUSE="" + +RDEPEND="dev-java/sbt-bin + dev-lang/scala" + +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-Wall.patch" || die +} + +src_configure() { + cat >Configfile <<EOF +PREFIX = ${EPREFIX}/usr + +LANGUAGES += scala +LANGUAGES += pkgconfig +LANGUAGES += h +LANGUAGES += bash + +LIBRARIES += libchisel.jar +SOURCES += main/scala/Driver.scala + +LIBRARIES += pkgconfig/chisel.pc +SOURCES += chisel.pc + +HEADERS += chisel/emulator.h +SOURCES += main/resources/emulator.h + +HEADERS += chisel/emulator_mod.h +SOURCES += main/resources/emulator_mod.h + +HEADERS += chisel/emulator_api.h +SOURCES += main/resources/emulator_api.h + +BINARIES += chisel-hdrtar +SOURCES += chisel-hdrtar.bash + +BINARIES += chisel-jargen +SOURCES += chisel-jargen.bash +EOF + + cat > src/chisel.pc <<EOF +prefix=@@pconfigure_prefix@@ +exec_prefix=@@pconfigure_prefix@@ +libdir=\${prefix}/@@pconfigure_libdir@@ +includedir=\${prefix}/@@pconfigure_hdrdir@@ + +Name: chisel +Description: A HDL +Version: $PV +Libs: -lchisel +Cflags: -I\${includedir}/chisel +URL: http://github.com/ucb-bar/chisel +EOF + + cat >src/chisel-jargen.bash <<EOF +cat ${EPREFIX}/usr/lib/libchisel.jar +EOF + + cat >src/chisel-hdrtar.bash <<EOF +tar -C ${EPREFIX}/usr/include/chisel -c . +EOF + + pconfigure +} diff --git a/sci-electronics/chisel/chisel-2.2.20.ebuild b/sci-electronics/chisel/chisel-2.2.20.ebuild new file mode 100644 index 0000000..a64c3cb --- /dev/null +++ b/sci-electronics/chisel/chisel-2.2.20.ebuild @@ -0,0 +1,73 @@ +EAPI="5" + +inherit eutils + +DESCRIPTION="A HDL" +HOMEPAGE="http://github.com/ucb-bar/${PN}/" +SRC_URI="https://github.com/ucb-bar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/$PV" +KEYWORDS="amd64 amd64-linux" +IUSE="" + +RDEPEND="dev-java/sbt-bin + dev-lang/scala" + +DEPEND="${RDEPEND}" + +src_configure() { + cat >Configfile <<EOF +PREFIX = ${EPREFIX}/usr + +LANGUAGES += scala +LANGUAGES += pkgconfig +LANGUAGES += h +LANGUAGES += bash + +LIBRARIES += libchisel.jar +SOURCES += main/scala/Driver.scala + +LIBRARIES += pkgconfig/chisel.pc +SOURCES += chisel.pc + +HEADERS += chisel/emulator.h +SOURCES += main/resources/emulator.h + +HEADERS += chisel/emulator_mod.h +SOURCES += main/resources/emulator_mod.h + +HEADERS += chisel/emulator_api.h +SOURCES += main/resources/emulator_api.h + +BINARIES += chisel-hdrtar +SOURCES += chisel-hdrtar.bash + +BINARIES += chisel-jargen +SOURCES += chisel-jargen.bash +EOF + + cat > src/chisel.pc <<EOF +prefix=@@pconfigure_prefix@@ +exec_prefix=@@pconfigure_prefix@@ +libdir=\${prefix}/@@pconfigure_libdir@@ +includedir=\${prefix}/@@pconfigure_hdrdir@@ + +Name: chisel +Description: A HDL +Version: $PV +Libs: -lchisel +Cflags: -I\${includedir}/chisel +URL: http://github.com/ucb-bar/chisel +EOF + + cat >src/chisel-jargen.bash <<EOF +cat ${EPREFIX}/usr/lib/libchisel.jar +EOF + + cat >src/chisel-hdrtar.bash <<EOF +tar -C ${EPREFIX}/usr/include/chisel -c . +EOF + + pconfigure +} diff --git a/sci-electronics/chisel/files/chisel-2.2.20-Wall.patch b/sci-electronics/chisel/files/chisel-2.2.20-Wall.patch new file mode 100644 index 0000000..4879a2e --- /dev/null +++ b/sci-electronics/chisel/files/chisel-2.2.20-Wall.patch @@ -0,0 +1,83 @@ +commit 660bd0360e5ef0248201db744593a2d8b3b21c04 +Author: Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> +Date: Mon Nov 24 10:36:14 2014 -0800 + + Various -Wextra fixups + + It appears that some more errors have either creeped into the Chisel + C++ header files or into GCC's "-Wextra -pedantic" set. This patch + uses the same techniques as last time to hide these new errors. + +diff --git a/src/main/resources/emulator_api.h b/src/main/resources/emulator_api.h +index 8f411da..b287469 100644 +--- a/src/main/resources/emulator_api.h ++++ b/src/main/resources/emulator_api.h +@@ -4,6 +4,12 @@ + + #include "emulator_mod.h" + ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wunused-function" ++#pragma GCC diagnostic ignored "-Wsign-compare" ++#pragma GCC diagnostic ignored "-Wunused-parameter" ++#pragma GCC diagnostic ignored "-Wunused-variable" ++ + #include <string> + #include <sstream> + #include <map> +@@ -23,7 +29,7 @@ static std::string itos(int in) { + * Copy one val_t array to another. + * nb must be the exact number of bits the val_t represents. + */ +-static void val_cpy(val_t* dst, val_t* src, int nb) { ++static __attribute__((unused)) void val_cpy(val_t* dst, val_t* src, int nb) { + for (int i=0; i<val_n_words(nb); i++) { + dst[i] = src[i]; + } +@@ -44,7 +50,7 @@ static void val_empty(val_t* dst, int nb) { + * is capped by the width of a single val_t element. + * nb must be the exact number of bits the val_t represents. + */ +-static void val_set(val_t* dst, val_t nb, val_t num) { ++static __attribute__((unused)) void val_set(val_t* dst, val_t nb, val_t num) { + val_empty(dst, nb); + dst[0] = num; + } +@@ -660,4 +666,6 @@ protected: + std::map<std::string, mod_t*> snapshot_table; + }; + ++#pragma GCC diagnostic pop ++ + #endif +diff --git a/src/main/resources/emulator_mod.h b/src/main/resources/emulator_mod.h +index 994ddba..3c76b6b 100644 +--- a/src/main/resources/emulator_mod.h ++++ b/src/main/resources/emulator_mod.h +@@ -5,6 +5,7 @@ + #define __IS_EMULATOR_MOD__ + + #pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wpragmas" + #pragma GCC diagnostic ignored "-Wunused-parameter" + #pragma GCC diagnostic ignored "-Wsign-compare" + #pragma GCC diagnostic ignored "-Wparentheses" +@@ -13,6 +14,9 @@ + #pragma GCC diagnostic ignored "-Wtype-limits" + #pragma GCC diagnostic ignored "-Wunused-function" + #pragma GCC diagnostic ignored "-Wunused-variable" ++#pragma GCC diagnostic ignored "-Wreorder" ++#pragma GCC diagnostic ignored "-Wsometimes-uninitialized" ++#pragma GCC diagnostic ignored "-pedantic" + + #include <assert.h> + #include <inttypes.h> +@@ -1564,7 +1568,7 @@ class mem_t { + } + }; + +-static char hex_to_char[] = "0123456789abcdef"; ++static __attribute__((unused)) char hex_to_char[] = "0123456789abcdef"; + + static int char_to_hex[] = { + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, |