summaryrefslogtreecommitdiff
path: root/sys-boot/cromwell
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-boot/cromwell
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-boot/cromwell')
-rw-r--r--sys-boot/cromwell/Manifest7
-rw-r--r--sys-boot/cromwell/cromwell-2.40-r3.ebuild37
-rw-r--r--sys-boot/cromwell/files/cromwell-2.40-gcc-4.6.patch39
-rw-r--r--sys-boot/cromwell/metadata.xml8
4 files changed, 91 insertions, 0 deletions
diff --git a/sys-boot/cromwell/Manifest b/sys-boot/cromwell/Manifest
new file mode 100644
index 000000000000..cd8300f53e19
--- /dev/null
+++ b/sys-boot/cromwell/Manifest
@@ -0,0 +1,7 @@
+AUX cromwell-2.40-gcc-4.6.patch 838 SHA256 dbacf5761adad60d744c905ab2d44d22b2f22bcee4e09bb70d826d22182491c7 SHA512 a32e4b4a5d0a6cd30106abc6ba5eb04d6e8520082fa673c739e2a7746b22ad0152d5bfdebc67515252eeccfc116e60516eadd67f34b1643a53b2041bcd16fc76 WHIRLPOOL 53ff82edf025dff515d966aa0d7683ae93efc5e4d321e3acdf9bb89c8156cf61317c55b56edf2e532c13f04d584a4c0719838f268f8ca2f57675407e599b7bd7
+DIST cromwell-2.40-r3-cvs-fixes.patch.lzma 7075 SHA256 97d50811000edc399e0323b5faeff169de86846f50439adbc59b6eeaf1bb12fd SHA512 b5d7c37024562a8a5ee8b1bf560f852ac43e0a0fbae0d3a8aa55aceab9f56cee5e80bcedad12bb64160ceb33a79fbb86f10cd6d5efeede6a5433d825aa853114 WHIRLPOOL 4d75f8b0e351d65492e8f1df681f0195e68fd8caa538b3a781860c3603db0b8400990633fe09bea5386199d5f9e01b46624bc89600f91bfe317891f662a6ad69
+DIST cromwell-2.40.tar.bz2 943015 SHA256 115cf68afad311f6e7490c3091dfb81870416cec3f2cb35d30360a919888cc3c SHA512 ed5833281fbe82dfad0a195f57f127cfcfb1d3fb7ff7179dccf59dea3c3a945d874d0d87c21fc2af641de5a39b9cc8a8703fa17edd43973ef526d368e21ddb37 WHIRLPOOL b591d3cc8f1ec408e34f607826f1fecbbb66f359c4298683ddbfb5ca659a2c420ca70fe2f03323e59a1af602b4a2aa49e3a1fea06c1d90beca4fed17ce8563c6
+EBUILD cromwell-2.40-r3.ebuild 890 SHA256 a66aaeb6f2467b7bad76efd46c9e27b8f233bdb11ef094d0ca6a4dd7db8afd58 SHA512 19f35dce21d0b1032adf0162ee1ef8fdc6d9860e08d75c33c17e981324458ce091e4f9389da7cadf82fc76f13dd8cd9f721a11e263fa679c4899c7f49ff7c6d1 WHIRLPOOL 366d9d52a66f5766d133ba1953bafbdad9edb377fe81219eede67cd61ec2404a502a800cb7775df3e221a1e2ec21945f986f6d700ec911e9ddb7ded766785f36
+MISC ChangeLog 2470 SHA256 ebe67afb8e99d75ba83316d0ae2bb25507cc66510ecadcfb20a169e1301362c4 SHA512 aba36020c1b5f0b30bea7366fcf897954521c8371b97c7187492cc64de6c7428a662cd7f0eaabc3c629936c29b8414be835c13f02b23e55a051e1c3e4a2c9ae5 WHIRLPOOL 313ebc9de0c7afe7e342bfa644ad6aadb6b6abfad5632ef5db494dd6ea08bd264cedb70108ac597ce044faace19751b6fb7dc3b58500e6b5f1b3e7ad2c8fdeca
+MISC ChangeLog-2015 2473 SHA256 5859b003783f87189db0e850a59b243e16c04d138d5d098a1e013a176bd7bf7c SHA512 63e04b19467dbb123edccd5e1750571e1c0a165d739fc908eaa00ce9dbe05917bcf09041da32f7d5a32842d6a1ffb51cd18b44f1983581ed2944d433cfe67e82 WHIRLPOOL 159ae88276b309d8e77a95025da5738b1de39d16334ad60c5c9b12a07c136f01156ff242a9100fd7a46d88879e600e0037447c88e93ff87a3fbab7ae84e3d17e
+MISC metadata.xml 275 SHA256 7f563a6fdcf435672363baf0c0cf388aed761abf498f64f43c5804c4b09dbd5d SHA512 a2177d6164e50c2500a9aba6d5aaa8dbc50b03135220e504b32d32b726870b18c4f80ba47f1aa25ed7a9729edb3e26ae9087e13a5606c0807c33291f0de83ee9 WHIRLPOOL f60122fc6aa3de981066d2eea7b629436e2a086f6c5783ea577656244c2f46fed286ceb190bd2c0a45c6bd80a042a4cd9ddbf3bf6f9e84840be4d2dcef2354fa
diff --git a/sys-boot/cromwell/cromwell-2.40-r3.ebuild b/sys-boot/cromwell/cromwell-2.40-r3.ebuild
new file mode 100644
index 000000000000..7ce7e1fd24b1
--- /dev/null
+++ b/sys-boot/cromwell/cromwell-2.40-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils mount-boot toolchain-funcs flag-o-matic
+
+DESCRIPTION="Xbox boot loader"
+HOMEPAGE="http://www.xbox-linux.org/wiki/Cromwell"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ mirror://gentoo/${PF}-cvs-fixes.patch.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* x86"
+IUSE=""
+RESTRICT="strip"
+
+src_prepare() {
+ epatch "${WORKDIR}"/${PF}-cvs-fixes.patch
+ epatch "${FILESDIR}"/${P}-gcc-4.6.patch #363535
+ sed -i 's:-Werror:-m32:' Makefile Rules.make || die
+ sed -i '/^EXTRA_CFLAGS/s:$: -m32:' Rules.make boot_rom/Makefile || die
+ sed -i \
+ -e '/^bin.imagebld:/,$s:\<gcc\>:${CC}:' \
+ Makefile || die
+ append-flags -m32
+}
+
+src_compile() {
+ emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)"
+}
+
+src_install() {
+ insinto /boot/${PN}
+ doins image/cromwell{,_1024}.bin xbe/xromwell.xbe
+}
diff --git a/sys-boot/cromwell/files/cromwell-2.40-gcc-4.6.patch b/sys-boot/cromwell/files/cromwell-2.40-gcc-4.6.patch
new file mode 100644
index 000000000000..92de3b014b61
--- /dev/null
+++ b/sys-boot/cromwell/files/cromwell-2.40-gcc-4.6.patch
@@ -0,0 +1,39 @@
+newer gcc versions will output .text.unlikely which this linker script
+doesn't expect
+
+https://bugs.gentoo.org/363535
+
+--- a/scripts/ldscript-crom.ld
++++ b/scripts/ldscript-crom.ld
+@@ -21,7 +21,7 @@ SECTIONS {
+
+ .text LOW_ROM : AT ( 0 ){
+ _start_low_rom = . ;
+- *(.text);
++ *(.text .text.*);
+ _end_low_rom = . ;
+ }
+
+@@ -67,4 +67,5 @@ SECTIONS {
+
+ _end_complete_rom = SIZEOF(.text) + SIZEOF(.rodata) + SIZEOF(.data) + SIZEOF(.bss);
+
++ /DISCARD/ : { *(.eh_frame) }
+ }
+--- a/boot_rom/bootrom.ld
++++ b/boot_rom/bootrom.ld
+@@ -31,7 +31,7 @@ SECTIONS {
+ .text (RAM_CODE) : AT( SIZEOF(.low_rom) ) {
+ _ram_location = .;
+ _start_ramcopy = _end_rom;
+- *(.text);
++ *(.text .text.*);
+ _start_checksum = _start_ramcopy - LOW_ROM;
+ }
+
+@@ -74,4 +74,5 @@ SECTIONS {
+ } = 0x90909090
+ */
+
++ /DISCARD/ : { *(.eh_frame) }
+ }
diff --git a/sys-boot/cromwell/metadata.xml b/sys-boot/cromwell/metadata.xml
new file mode 100644
index 000000000000..2a1eff7d20ef
--- /dev/null
+++ b/sys-boot/cromwell/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vapier@gentoo.org</email>
+ </maintainer>
+ <longdescription>Xbox boot loader</longdescription>
+</pkgmetadata>