diff options
author | Markus Rothe <corsair@gentoo.org> | 2008-02-12 18:19:40 +0000 |
---|---|---|
committer | Markus Rothe <corsair@gentoo.org> | 2008-02-12 18:19:40 +0000 |
commit | 2d8ce99305f5a8ce65979141f0462be2bec8f921 (patch) | |
tree | 157f585167a8a0b5ff519a369a12a5abe7ff8157 /app-emulation | |
parent | Add IBM-ILAR license for app-emulation/systemsim-cell (diff) | |
download | historical-2d8ce99305f5a8ce65979141f0462be2bec8f921.tar.gz historical-2d8ce99305f5a8ce65979141f0462be2bec8f921.tar.bz2 historical-2d8ce99305f5a8ce65979141f0462be2bec8f921.zip |
Initial commit. Ebuild modified from lu_zero's.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'app-emulation')
5 files changed, 109 insertions, 0 deletions
diff --git a/app-emulation/systemsim-cell/ChangeLog b/app-emulation/systemsim-cell/ChangeLog new file mode 100644 index 000000000000..df7c11d50322 --- /dev/null +++ b/app-emulation/systemsim-cell/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-emulation/systemsim-cell +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/systemsim-cell/ChangeLog,v 1.1 2008/02/12 18:19:40 corsair Exp $ + +*systemsim-cell-3.0 (12 Feb 2008) + + 12 Feb 2008; Markus Rothe <corsair@gentoo.org> + +files/systemsim-cell-3.0-cowdiskname.patch, +files/09systemsim-cell, + +systemsim-cell-3.0.ebuild: + Initial commit. Ebuild modified from lu_zero's. + diff --git a/app-emulation/systemsim-cell/Manifest b/app-emulation/systemsim-cell/Manifest new file mode 100644 index 000000000000..6dc79a630427 --- /dev/null +++ b/app-emulation/systemsim-cell/Manifest @@ -0,0 +1,7 @@ +AUX 09systemsim-cell 74 RMD160 96efa74a5e6d46444cf08b9bec020a900d0aabeb SHA1 459e8cb0622bceedf4165c590168b11e32a750bd SHA256 fabecaab8428bcc76bcfb0f4e856a207cb9f65d9f88012f254da752aae1e1cce +AUX systemsim-cell-3.0-cowdiskname.patch 805 RMD160 3a976634cf60a5a8a30ae32a9d3046b7b8217761 SHA1 309ee8c2e014368039a9d46a70c94da2dd695ed0 SHA256 be7bee3aa857f703662039e955de1fc7b927c9316b7cd02ec1fbf595ab4cd70d +DIST systemsim-cell-3.0-15.i386.rpm 6079607 RMD160 c23190f52d23c877f41861e092113cecfe22079b SHA1 b6ca1863a9938240efc7200ebf6658afbd4ef0cf SHA256 da9fc5dfc9303acbf27e1e585b1c14d1a759e6280d0faf0f1199adeada5e41d7 +DIST systemsim-cell-3.0-15.ppc64.rpm 5988540 RMD160 e6c769d3e270363ae6c09d36f6e8b2eec1a9b71e SHA1 bdc4f41c74858f0cfa68b95ac6ef401f59e485c0 SHA256 a8aa1519c7118c5bf76b3df99736caee2af7f48579b622083d8d503ca2b87655 +DIST systemsim-cell-3.0-15.x86_64.rpm 6204863 RMD160 d77c6b667148282b727f31e3c93885f8fe193d6d SHA1 294287afad50d7d384baf0e14ecbebef2d9f4502 SHA256 3613954401f21a5d0ddd30fb6709cb4a123e38a7dc5914cf240505d6117020c3 +EBUILD systemsim-cell-3.0.ebuild 1979 RMD160 82134caa6f97fecfc49a4b9553b4a9b70e29ac26 SHA1 0c0ac78d5858283513f9ca83424a46ad389cc640 SHA256 19060622df126356ac862a0fedd0df7af693d1e45a3aa1b66f3e984f73669bae +MISC ChangeLog 467 RMD160 d9f4af5125e9438021d1939541f5979086b38ee1 SHA1 933bdca5487ec9c759ebb74bedf6d13c1e5ec6c3 SHA256 775f5415afc1988de175c1dd66b9d4b0b71d3874d79f299292d5a67222f92f58 diff --git a/app-emulation/systemsim-cell/files/09systemsim-cell b/app-emulation/systemsim-cell/files/09systemsim-cell new file mode 100644 index 000000000000..df0f22565757 --- /dev/null +++ b/app-emulation/systemsim-cell/files/09systemsim-cell @@ -0,0 +1,2 @@ +PATH="/opt/ibm/systemsim-cell/bin" +ROOTPATH="/opt/ibm/systemsim-cell/bin" diff --git a/app-emulation/systemsim-cell/files/systemsim-cell-3.0-cowdiskname.patch b/app-emulation/systemsim-cell/files/systemsim-cell-3.0-cowdiskname.patch new file mode 100644 index 000000000000..7d6dcdb1b95a --- /dev/null +++ b/app-emulation/systemsim-cell/files/systemsim-cell-3.0-cowdiskname.patch @@ -0,0 +1,24 @@ +--- opt/ibm/systemsim-cell/lib/cell/systemsim.tcl.orig 2008-02-12 17:45:10.000000000 +0100 ++++ opt/ibm/systemsim-cell/lib/cell/systemsim.tcl 2008-02-12 17:52:09.000000000 +0100 +@@ -17,6 +17,12 @@ + + set IMAGES $env(IMAGES_DIR)/cell + ++if { [info exists ::env(COWDISKNAME) ] } { ++ set cowdiskname $env(COWDISKNAME) ++} else { ++ set cowdiskname $env(HOME)/sysroot_disk.cow ++} ++ + # Initialize the systemsim tcl environment + source $env(LIB_DIR)/cell/mambo_init.tcl + +@@ -78,7 +84,7 @@ + mysim mcm 0 load vmlinux $imagefile 0x1000000 + + # Setup the bogus disk that Linux will use +-if {[catch {mysim bogus disk init 0 $sysrootfile newcow sysroot_disk.cow 1024}]} { ++if {[catch {mysim bogus disk init 0 $sysrootfile newcow $cowdiskname 1024}]} { + puts "bogus disk init for $sysrootfile failed" + exit + } diff --git a/app-emulation/systemsim-cell/systemsim-cell-3.0.ebuild b/app-emulation/systemsim-cell/systemsim-cell-3.0.ebuild new file mode 100644 index 000000000000..49174234394c --- /dev/null +++ b/app-emulation/systemsim-cell/systemsim-cell-3.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/systemsim-cell/systemsim-cell-3.0.ebuild,v 1.1 2008/02/12 18:19:40 corsair Exp $ + +inherit rpm eutils + +DESCRIPTION="Full-System Simulator for the Cell Broadband Engine Processor" +HOMEPAGE="http://www.alphaworks.ibm.com/tech/cellsystemsim" +SRC_URI="x86? ( ${P}-15.i386.rpm ) + ppc64? ( ${P}-15.ppc64.rpm ) + amd64? ( ${P}-15.x86_64.rpm )" + +LICENSE="IBM-ILAR" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +SYSTEMSIM_DIR="/opt/ibm/systemsim-cell" +IMAGE_PATH="/usr/share/${PN}/image" + +DEPEND=">=dev-lang/tcl-8.4.10 + >=dev-lang/tk-8.4.10" + +RESTRICT="fetch" +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} yourself from:" + einfo "http://www.alphaworks.ibm.com/tech/cellsystemsim/download" + einfo "and place it in ${DISTDIR}" +} + +src_unpack() { + rpm_unpack $DISTDIR/${A} + + # fix the path to the images. we don't want them in /opt + sed -i -e "s:\${SYSTEMSIM_TOP}/images:${IMAGE_PATH}:" \ + "${WORKDIR}"/"${SYSTEMSIM_DIR}"/bin/systemsim || die "sed error" + + # fix the path to the file that 'overlaps' the image + epatch "${FILESDIR}/${P}-cowdiskname.patch" +} + +src_compile() { + einfo "nothing to compile" +} + +src_install() { + cp -pPR "${WORKDIR}"/opt "${D}" + rm -fR "${D}"/"${SYSTEMSIM_DIR}"/doc + rm -fR "${D}"/"${SYSTEMSIM_DIR}"/images + insinto /usr/share/doc/"${PF}"/ + doins "${WORKDIR}"/"${SYSTEMSIM_DIR}"/doc/*.pdf + doenvd "${FILESDIR}"/09systemsim-cell + dodir "${IMAGE_PATH}"/cell + echo "Put a system image with the name 'sysroot_disk' and a kernel image\n" \ + "with the name 'vmlinux' here" > "${D}"/"${IMAGE_PATH}"/cell/README +} + +pkg_postinst() { + elog "The provided systemsim doesn't have kernel and system images, please" + elog "install them in ${IMAGE_PATH}/cell" + elog "Use the COWDISKNAME environment variable to change the file" + elog "'overlapping' the image. Default (not set) is \$HOME/sysroot_disk.cow" +} |