diff options
author | Joshua Kinard <kumba@gentoo.org> | 2003-11-17 02:03:29 +0000 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2003-11-17 02:03:29 +0000 |
commit | ce296af23bbd2790f34308f9cfd007ae509bb4c6 (patch) | |
tree | 57ebcc7368bfe7e396e4c0e6ff32efd41f8fd967 /sys-devel/gcc-mips64 | |
parent | Ebuilds to build a mips64 kernel compiler toolchain (diff) | |
download | gentoo-2-ce296af23bbd2790f34308f9cfd007ae509bb4c6.tar.gz gentoo-2-ce296af23bbd2790f34308f9cfd007ae509bb4c6.tar.bz2 gentoo-2-ce296af23bbd2790f34308f9cfd007ae509bb4c6.zip |
Ebuilds to build a mips64 kernel compiler toolchain
Diffstat (limited to 'sys-devel/gcc-mips64')
-rw-r--r-- | sys-devel/gcc-mips64/ChangeLog | 13 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/Manifest | 6 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.1 | 1 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.2 | 1 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/files/gcc-3.3.1-gentoo-branding.patch | 18 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/files/gcc-3.3.2-gentoo-branding.patch | 18 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/gcc-mips64-3.3.1.ebuild | 119 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/gcc-mips64-3.3.2.ebuild | 119 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/metadata.xml | 14 |
9 files changed, 306 insertions, 3 deletions
diff --git a/sys-devel/gcc-mips64/ChangeLog b/sys-devel/gcc-mips64/ChangeLog new file mode 100644 index 000000000000..cad1dc94c8e6 --- /dev/null +++ b/sys-devel/gcc-mips64/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sys-devel/gcc-mips64 +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-mips64/ChangeLog,v 1.1 2003/11/17 02:03:26 kumba Exp $ + + +*gcc-mips64-3.3.2 (16 Nov 2003) + + 16 Nov 2003; Joshua Kinard <kumba@gentoo.org> gcc-mips64-3.3.1.ebuild, + gcc-mips64-3.3.2.ebuild, files/gcc-3.3.1-gentoo-branding.patch, + files/gcc-3.3.2-gentoo-branding.patch: + Initial revisions of minimal ebuilds which builds a kernel compiler for mips64 + kernels + diff --git a/sys-devel/gcc-mips64/Manifest b/sys-devel/gcc-mips64/Manifest index 1bac11ddf5ee..58ea3b240b6c 100644 --- a/sys-devel/gcc-mips64/Manifest +++ b/sys-devel/gcc-mips64/Manifest @@ -1,7 +1,7 @@ -MD5 19773e5c3aad1564738f06810cb12776 gcc-mips64-3.3.2.ebuild 2709 -MD5 19773e5c3aad1564738f06810cb12776 gcc-mips64-3.3.1.ebuild 2709 +MD5 e1bacbafa92a215c4a20449b169ce90f gcc-mips64-3.3.2.ebuild 2815 +MD5 826b6c19fc507f0bfa6f4f5160e1df66 gcc-mips64-3.3.1.ebuild 2815 MD5 efda60760635b5f29e31a8f730a73086 metadata.xml 364 -MD5 4e31abf94a8f523ceadc66c9354ea197 ChangeLog 435 +MD5 809bb7a9889f6b9555a05230c2cd5433 ChangeLog 527 MD5 d3e53318166d71a05d2b51bd44502270 files/gcc-3.3.1-gentoo-branding.patch 874 MD5 12e3974934d4a83bf4540c3e0592b226 files/digest-gcc-mips64-3.3.1 64 MD5 006481ae255582fae4fa22107dfb359e files/digest-gcc-mips64-3.3.2 64 diff --git a/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.1 b/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.1 new file mode 100644 index 000000000000..48d6e8dde3f7 --- /dev/null +++ b/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.1 @@ -0,0 +1 @@ +MD5 1135a104e9fa36fdf7c663598fab5c40 gcc-3.3.1.tar.bz2 23544362 diff --git a/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.2 b/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.2 new file mode 100644 index 000000000000..77fbcb74b416 --- /dev/null +++ b/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.3.2 @@ -0,0 +1 @@ +MD5 65999f654102f5438ac8562d13a6eced gcc-3.3.2.tar.bz2 23585904 diff --git a/sys-devel/gcc-mips64/files/gcc-3.3.1-gentoo-branding.patch b/sys-devel/gcc-mips64/files/gcc-3.3.1-gentoo-branding.patch new file mode 100644 index 000000000000..e3bc0abb9298 --- /dev/null +++ b/sys-devel/gcc-mips64/files/gcc-3.3.1-gentoo-branding.patch @@ -0,0 +1,18 @@ +diff -Naurp gcc-3.3.orig/gcc/version.c gcc-3.3/gcc/version.c +--- gcc-3.3.orig/gcc/version.c 2003-05-13 17:26:03.000000000 -0400 ++++ gcc-3.3/gcc/version.c 2003-05-16 14:35:08.000000000 -0400 +@@ -6,7 +6,7 @@ + please modify this string to indicate that, e.g. by putting your + organization's name in parentheses at the end of the string. */ + +-const char version_string[] = "3.3.1"; ++const char version_string[] = "3.3.1 @GENTOO@"; + + /* This is the location of the online document giving instructions for + reporting bugs. If you distribute a modified version of GCC, +@@ -15,4 +15,4 @@ const char version_string[] = "3.3"; + forward us bugs reported to you, if you determine that they are + not bugs in your modifications.) */ + +-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>"; ++const char bug_report_url[] = "<URL:http://bugs.gentoo.org/>"; diff --git a/sys-devel/gcc-mips64/files/gcc-3.3.2-gentoo-branding.patch b/sys-devel/gcc-mips64/files/gcc-3.3.2-gentoo-branding.patch new file mode 100644 index 000000000000..d3b34c72ab66 --- /dev/null +++ b/sys-devel/gcc-mips64/files/gcc-3.3.2-gentoo-branding.patch @@ -0,0 +1,18 @@ +diff -Naurp gcc-3.3.orig/gcc/version.c gcc-3.3/gcc/version.c +--- gcc-3.3.orig/gcc/version.c 2003-05-13 17:26:03.000000000 -0400 ++++ gcc-3.3/gcc/version.c 2003-05-16 14:35:08.000000000 -0400 +@@ -6,7 +6,7 @@ + please modify this string to indicate that, e.g. by putting your + organization's name in parentheses at the end of the string. */ + +-const char version_string[] = "3.3.2"; ++const char version_string[] = "3.3.2 @GENTOO@"; + + /* This is the location of the online document giving instructions for + reporting bugs. If you distribute a modified version of GCC, +@@ -15,4 +15,4 @@ const char version_string[] = "3.3"; + forward us bugs reported to you, if you determine that they are + not bugs in your modifications.) */ + +-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>"; ++const char bug_report_url[] = "<URL:http://bugs.gentoo.org/>"; diff --git a/sys-devel/gcc-mips64/gcc-mips64-3.3.1.ebuild b/sys-devel/gcc-mips64/gcc-mips64-3.3.1.ebuild new file mode 100644 index 000000000000..550a68c7e461 --- /dev/null +++ b/sys-devel/gcc-mips64/gcc-mips64-3.3.1.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-mips64/gcc-mips64-3.3.1.ebuild,v 1.1 2003/11/17 02:03:26 kumba Exp $ + + +# Variables +MYARCH="$(echo ${PN} | cut -d- -f2)" +TMP_P="${P/-${MYARCH}/}" +TMP_PN="${PN/-${MYARCH}/}" +I="/usr" +S="${WORKDIR}/${P}" + + +DESCRIPTION="Mips64 Kernel Compiler (Experimental)" +HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" +SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${TMP_P}/${TMP_P}.tar.bz2" +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" + +KEYWORDS="~mips" + +DEPEND="virtual/glibc + >=sys-devel/binutils-2.14.90.0.5 + >=sys-devel/gcc-config-1.3.1" + +RDEPEND="virtual/glibc + >=sys-devel/gcc-config-1.3.1 + >=sys-libs/zlib-1.1.4 + >=sys-apps/texinfo-4.2-r4 + !build? ( >=sys-libs/ncurses-5.2-r2 )" + + + +version_patch() { + [ ! -f "$1" ] && return 1 + [ -z "$2" ] && return 1 + + sed -e "s:@GENTOO@:$2:g" ${1} > ${T}/${1##*/} + epatch ${T}/${1##*/} +} + +src_unpack() { + unpack ${TMP_P}.tar.bz2 + cd ${WORKDIR} + ln -s ${TMP_P} ${P} + cd ${S} + + # Make gcc's version info specific to Gentoo + if [ -z "${PP_VER}" ]; then + version_patch ${FILESDIR}/${TMP_P}-gentoo-branding.patch \ + "(Gentoo Linux ${PVR})" || die "Failed Branding" + fi +} + +src_compile() { + cd ${WORKDIR} + ln -s ${TMP_P} ${P} + + append-flags "-Dinhibit_libc" + + # Build in a separate build tree + mkdir -p ${WORKDIR}/build + cd ${WORKDIR}/build + + einfo "Configuring GCC..." + if [ "`uname -m | grep 64`" ]; then + myconf="${myconf} --host=${MYARCH/64/}-unknown-linux-gnu" + fi + + addwrite "/dev/zero" + ${S}/configure --prefix=${I} \ + --disable-shared \ + --disable-multilib \ + --target=${MYARCH}-unknown-linux-gnu \ + --enable-languages=c \ + --enable-threads=single \ + ${myconf} || die + + einfo "Building GCC..." + S="${WORKDIR}/build" \ + emake CFLAGS="${CFLAGS}" || die +} + +src_install() { + # Do allow symlinks in ${I}/lib/gcc-lib/${CHOST}/${PV}/include as + # this can break the build. + for x in cd ${WORKDIR}/build/gcc/include/* + do + if [ -L ${x} ] + then + rm -f ${x} + fi + done + + einfo "Installing GCC..." + # Do the 'make install' from the build directory + cd ${WORKDIR}/build + S="${WORKDIR}/build" \ + make prefix=${D}${I} \ + FAKE_ROOT="${D}" \ + install || die + + cd ${D}${I}/bin + ln -s ${MYARCH}-unknown-linux-gnu-gcc gcc64 + ln -s ${MYARCH}-unknown-linux-gnu-gcc ${MYARCH}-linux-gcc +} + +pkg_postinst() { + einfo "" + einfo "To facilitate an easier kernel build, you may wish to add the following line to your profile:" + einfo "" + einfo "alias ${MYARCH}make=\"make ARCH=${MYARCH} CROSS_COMPILE=${MYARCH}-unknown-linux-gnu-\"" + einfo "" + einfo "Then to compile a kernel, simply goto the kernel source directory, and issue:" + einfo "${MYARCH}make <target>" + einfo "Where <target> is one of the usual kernel targets" + einfo "" + sleep 10 +} diff --git a/sys-devel/gcc-mips64/gcc-mips64-3.3.2.ebuild b/sys-devel/gcc-mips64/gcc-mips64-3.3.2.ebuild new file mode 100644 index 000000000000..0e2343d7a287 --- /dev/null +++ b/sys-devel/gcc-mips64/gcc-mips64-3.3.2.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-mips64/gcc-mips64-3.3.2.ebuild,v 1.1 2003/11/17 02:03:26 kumba Exp $ + + +# Variables +MYARCH="$(echo ${PN} | cut -d- -f2)" +TMP_P="${P/-${MYARCH}/}" +TMP_PN="${PN/-${MYARCH}/}" +I="/usr" +S="${WORKDIR}/${P}" + + +DESCRIPTION="Mips64 Kernel Compiler (Experimental)" +HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" +SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${TMP_P}/${TMP_P}.tar.bz2" +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" + +KEYWORDS="~mips" + +DEPEND="virtual/glibc + >=sys-devel/binutils-2.14.90.0.5 + >=sys-devel/gcc-config-1.3.1" + +RDEPEND="virtual/glibc + >=sys-devel/gcc-config-1.3.1 + >=sys-libs/zlib-1.1.4 + >=sys-apps/texinfo-4.2-r4 + !build? ( >=sys-libs/ncurses-5.2-r2 )" + + + +version_patch() { + [ ! -f "$1" ] && return 1 + [ -z "$2" ] && return 1 + + sed -e "s:@GENTOO@:$2:g" ${1} > ${T}/${1##*/} + epatch ${T}/${1##*/} +} + +src_unpack() { + unpack ${TMP_P}.tar.bz2 + cd ${WORKDIR} + ln -s ${TMP_P} ${P} + cd ${S} + + # Make gcc's version info specific to Gentoo + if [ -z "${PP_VER}" ]; then + version_patch ${FILESDIR}/${TMP_P}-gentoo-branding.patch \ + "(Gentoo Linux ${PVR})" || die "Failed Branding" + fi +} + +src_compile() { + cd ${WORKDIR} + ln -s ${TMP_P} ${P} + + append-flags "-Dinhibit_libc" + + # Build in a separate build tree + mkdir -p ${WORKDIR}/build + cd ${WORKDIR}/build + + einfo "Configuring GCC..." + if [ "`uname -m | grep 64`" ]; then + myconf="${myconf} --host=${MYARCH/64/}-unknown-linux-gnu" + fi + + addwrite "/dev/zero" + ${S}/configure --prefix=${I} \ + --disable-shared \ + --disable-multilib \ + --target=${MYARCH}-unknown-linux-gnu \ + --enable-languages=c \ + --enable-threads=single \ + ${myconf} || die + + einfo "Building GCC..." + S="${WORKDIR}/build" \ + emake CFLAGS="${CFLAGS}" || die +} + +src_install() { + # Do allow symlinks in ${I}/lib/gcc-lib/${CHOST}/${PV}/include as + # this can break the build. + for x in cd ${WORKDIR}/build/gcc/include/* + do + if [ -L ${x} ] + then + rm -f ${x} + fi + done + + einfo "Installing GCC..." + # Do the 'make install' from the build directory + cd ${WORKDIR}/build + S="${WORKDIR}/build" \ + make prefix=${D}${I} \ + FAKE_ROOT="${D}" \ + install || die + + cd ${D}${I}/bin + ln -s ${MYARCH}-unknown-linux-gnu-gcc gcc64 + ln -s ${MYARCH}-unknown-linux-gnu-gcc ${MYARCH}-linux-gcc +} + +pkg_postinst() { + einfo "" + einfo "To facilitate an easier kernel build, you may wish to add the following line to your profile:" + einfo "" + einfo "alias ${MYARCH}make=\"make ARCH=${MYARCH} CROSS_COMPILE=${MYARCH}-unknown-linux-gnu-\"" + einfo "" + einfo "Then to compile a kernel, simply goto the kernel source directory, and issue:" + einfo "${MYARCH}make <target>" + einfo "Where <target> is one of the usual kernel targets" + einfo "" + sleep 10 +} diff --git a/sys-devel/gcc-mips64/metadata.xml b/sys-devel/gcc-mips64/metadata.xml new file mode 100644 index 000000000000..0adb8017442c --- /dev/null +++ b/sys-devel/gcc-mips64/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>mips</herd> + <maintainer> + <email>mips@gentoo.org</email> + <name>Mips Team</name> + </maintainer> + + <longdescription> + gcc-mips64 is a package which will build a mips64 kernel compiler toolchain + </longdescription> +</pkgmetadata> + |