summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-11 04:36:28 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-11 04:36:28 +0000
commit26b62101b1d006ae194f65580fc34ce7b6c739d1 (patch)
tree3c8d901fdbcc80f6e2945de0992887d582e34f52
parentget people to stop using the arch funcs in eutils.eclass (diff)
downloadhistorical-26b62101b1d006ae194f65580fc34ce7b6c739d1.tar.gz
historical-26b62101b1d006ae194f65580fc34ce7b6c739d1.tar.bz2
historical-26b62101b1d006ae194f65580fc34ce7b6c739d1.zip
Cooler cross-compile support. Now you just have to set CTARGET/CHOST and THATS IT :D.
-rw-r--r--sys-kernel/linux26-headers/ChangeLog7
-rw-r--r--sys-kernel/linux26-headers/Manifest28
-rw-r--r--sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild44
3 files changed, 45 insertions, 34 deletions
diff --git a/sys-kernel/linux26-headers/ChangeLog b/sys-kernel/linux26-headers/ChangeLog
index 48a58be4b601..14f861b32a6f 100644
--- a/sys-kernel/linux26-headers/ChangeLog
+++ b/sys-kernel/linux26-headers/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-kernel/linux26-headers
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux26-headers/ChangeLog,v 1.51 2005/01/11 02:57:56 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux26-headers/ChangeLog,v 1.52 2005/01/11 04:36:28 vapier Exp $
+
+ 10 Jan 2005; Mike Frysinger <vapier@gentoo.org>
+ linux26-headers-2.6.8.1-r2.ebuild:
+ Cooler cross-compile support. Now you just have to set CTARGET/CHOST and
+ THATS IT :D.
*linux26-headers-2.6.8.1-r3 (10 Jan 2005)
diff --git a/sys-kernel/linux26-headers/Manifest b/sys-kernel/linux26-headers/Manifest
index cb5edc834cb1..ed710f937c7e 100644
--- a/sys-kernel/linux26-headers/Manifest
+++ b/sys-kernel/linux26-headers/Manifest
@@ -1,34 +1,34 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 be0831bdae008299f2fec5d1560fdd76 ChangeLog 11558
+MD5 c82e6a0579e9c0f7ea1a3000cb1bd2fa ChangeLog 11732
MD5 0b03e11240bb0152a20dda11b294afc6 linux26-headers-2.6.8.1.ebuild 3898
-MD5 ef73521498edcf1cb4d946227942685f linux26-headers-2.6.8.1-r2.ebuild 5047
-MD5 093a86114419f7df2d4443e9e556813a linux26-headers-2.6.8.1-r3.ebuild 6248
+MD5 b01ca95c1dc968b130819060d602d803 linux26-headers-2.6.8.1-r2.ebuild 5311
MD5 21dcb669b4e8535f0a04f40ad2c4c9ff metadata.xml 224
MD5 0a27d15eb477733f52c87cb0c3c7a359 linux26-headers-2.6.7-r4.ebuild 4033
-MD5 18bed04a1b45de515096089cc10913ec files/digest-linux26-headers-2.6.8.1 68
-MD5 8f3a515e5e309495343a3eef4721ddd6 files/linux26-headers-2.6.8.1-appCompat.patch 56603
-MD5 57e8b81485f8a1ba10d41dd7949d40a8 files/linux26-headers-2.6.8.1-strict-ansi-fix.patch 4132
+MD5 093a86114419f7df2d4443e9e556813a linux26-headers-2.6.8.1-r3.ebuild 6248
MD5 fb33a0ba21375f190137b9f478ad9799 files/digest-linux26-headers-2.6.8.1-r2 146
MD5 7ab4a9c1bda271f1e874d19d00d62464 files/generate-asm-amd64 1645
+MD5 b405a908c2cc1e6ed3e25f030c41f4c4 files/digest-linux26-headers-2.6.7-r4 66
+MD5 18bed04a1b45de515096089cc10913ec files/digest-linux26-headers-2.6.8.1 68
MD5 fb33a0ba21375f190137b9f478ad9799 files/digest-linux26-headers-2.6.8.1-r3 146
MD5 b3e4e51616a061327b46cbd31132c8c8 files/generate-asm-sparc 1654
MD5 8a065c0dc3b8fac8747de35f1af75a2c files/linux26-headers-2.6.0-fb.patch 386
MD5 a73786f0b9dda7e9ebacb91a192384f9 files/linux26-headers-2.6.0-sysctl_h-compat.patch 352
-MD5 00e5bea1e925c2d81d32191937eb8d5b files/linux26-headers-soundcard-ppc64.patch 631
MD5 598136365858338b26557b7587c6725f files/linux26-headers-2.6.3-strict-ansi-fix.patch 4166
-MD5 602f7309c0163c018627f06b5f1ace3a files/linux26-headers-2.6.8.1-arm-float.patch 640
MD5 7c487aa645f5d88e86c3252ab44ef5ae files/linux26-headers-2.6.7-appCompat.patch 42608
MD5 6dd79a655f006aebb7206203f3654976 files/linux26-headers-2.6.7-generic-arm-prepare.patch 978
-MD5 b405a908c2cc1e6ed3e25f030c41f4c4 files/digest-linux26-headers-2.6.7-r4 66
MD5 d78e0d94873de4518bca401d5688401c files/linux26-headers-2.6.7-prefetch.patch 528
-MD5 5258c64bed51646ee05cde4fbc40ae03 files/linux26-headers-2.6.8.1-sparc-glibcsafe.patch 2886
+MD5 8f3a515e5e309495343a3eef4721ddd6 files/linux26-headers-2.6.8.1-appCompat.patch 56603
+MD5 602f7309c0163c018627f06b5f1ace3a files/linux26-headers-2.6.8.1-arm-float.patch 640
MD5 9101139b0720280f338a1823c281ee84 files/linux26-headers-2.6.8.1-parisc-syscall.patch 413
+MD5 5258c64bed51646ee05cde4fbc40ae03 files/linux26-headers-2.6.8.1-sparc-glibcsafe.patch 2886
+MD5 57e8b81485f8a1ba10d41dd7949d40a8 files/linux26-headers-2.6.8.1-strict-ansi-fix.patch 4132
+MD5 00e5bea1e925c2d81d32191937eb8d5b files/linux26-headers-soundcard-ppc64.patch 631
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
+Version: GnuPG v1.9.14 (GNU/Linux)
-iD8DBQFB40DhArHZZzCEUG0RAvgBAJ9kyA0IZsd/IqxX3Irb1FtB4ze3CACePKbQ
-HR1DG6DUya+9oFFCUclBFaM=
-=+S7V
+iD8DBQFB41ftroRuSHgZdywRAsbaAJ9ZSk7OP/UofpSDFJWHq5N1Vps2jwCfQMao
+GQASWBKlb2x2k23zegQkMI4=
+=AeHR
-----END PGP SIGNATURE-----
diff --git a/sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild b/sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild
index cc5817c27539..298b16d0a553 100644
--- a/sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild
+++ b/sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild
@@ -1,14 +1,14 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild,v 1.1 2005/01/06 15:43:26 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux26-headers/linux26-headers-2.6.8.1-r2.ebuild,v 1.2 2005/01/11 04:36:28 vapier Exp $
-# What's in this kernel?
+# What's in this kernel ? ninja juice ! :D
# INCLUDED:
# 1) linux sources from kernel.org
ETYPE="headers"
-inherit kernel eutils
+inherit kernel eutils toolchain-funcs
OKV="${PV/_/-}"
KV="${OKV}"
@@ -20,11 +20,10 @@ SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2
mirror://gentoo/linux-2.6.8.1-sh-headers.patch.bz2"
LICENSE="GPL-2"
-KEYWORDS="~alpha amd64 arm hppa ia64 ~ppc ppc64 ~sparc sh x86"
+KEYWORDS="~alpha amd64 arm hppa ia64 ~ppc ppc64 ~s390 ~sparc sh x86"
IUSE=""
-if [[ ${CTARGET} = ${CHOST} ]]
-then
+if [[ ${CTARGET} = ${CHOST} ]] ; then
DEPEND="!virtual/os-headers"
PROVIDE="virtual/kernel virtual/os-headers"
SLOT="0"
@@ -46,7 +45,7 @@ headers___fix() {
pkg_setup() {
# Archs which have their own separate header packages, add a check here
# and redirect the user to them
- case "${ARCH}" in
+ case $(tc-arch ${CTARGET}) in
mips)
eerror "These headers are not appropriate for your architecture."
eerror "Please use sys-kernel/mips-headers instead."
@@ -74,10 +73,15 @@ src_unpack() {
epatch ${FILESDIR}/${P}-arm-float.patch
epatch ${FILESDIR}/${P}-parisc-syscall.patch
- # Fixes
- headers___fix ${S}/include/asm-ia64/*
- headers___fix ${S}/include/asm-ppc64/*
- headers___fix ${S}/include/asm-ppc64/iSeries/*
+ # Fixes ... all the mv magic is to keep sed from dumping
+ # ugly warnings about how it can't work on a directory.
+ cd "${S}"/include
+ mv asm-ia64/sn asm-ppc64/iSeries .
+ headers___fix asm-ia64/*
+ mv sn asm-ia64/
+ headers___fix asm-ppc64/*
+ mv iSeries asm-ppc64/
+ headers___fix asm-ppc64/iSeries/*
}
src_compile() {
@@ -86,24 +90,26 @@ src_compile() {
[ -f "${ROOT}"/usr/include/linux/autoconf.h ] \
|| touch include/linux/autoconf.h
+ # Kernel ARCH != portage ARCH
+ local KARCH=$(tc-arch-kernel ${CTARGET})
+
# When cross-compiling, we need to set the CROSS_COMPILE var properly
- local extra_makeopts=
+ local xmakeopts=
if [[ ${CTARGET} != ${CHOST} ]] ; then
- extra_makeopts="CROSS_COMPILE=${CTARGET}-"
+ xmakeopts="CROSS_COMPILE=${CTARGET}-"
elif type -p ${CHOST}-ar ; then
- extra_makeopts="CROSS_COMPILE=${CHOST}-"
+ xmakeopts="CROSS_COMPILE=${CHOST}-"
fi
+ xmakeopts="${xmakeopts} ARCH=${KARCH}"
# if there arent any installed headers, then there also isnt an asm
# symlink in /usr/include/, and make defconfig will fail, so we have
# to force an include path with $S.
local HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include/"
- set_arch_to_kernel
- ln -sf ${S}/include/asm-${ARCH} ${S}/include/asm
- make defconfig HOSTCFLAGS="${HOSTCFLAGS}" ${extra_makeopts} || die "defconfig failed"
- make prepare HOSTCFLAGS="${HOSTCFLAGS}" ${extra_makeopts} || die "prepare failed"
- set_arch_to_portage
+ ln -sf ${S}/include/asm-${KARCH} ${S}/include/asm
+ make defconfig HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "defconfig failed"
+ make prepare HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed"
}
src_install() {