Gentoo Archives: gentoo-commits

From: "Joshua Kinard (kumba)" <kumba@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/mips-sources/files/eblits: src_unpack-v2.eblit
Date: Tue, 24 Mar 2009 05:33:40
Message-Id: E1LlzGb-00028r-IP@stork.gentoo.org
1 kumba 09/03/24 05:33:37
2
3 Added: src_unpack-v2.eblit
4 Log:
5 Update to 2.6.27.21, 2.6.28.9, and add the newly-released 2.6.29 ebuild, plus an updated src_unpack eblit to factor in a new local USE flag -- impactdebug. USE 'impactdebug' will apply a patch that enables a very-early, direct framebuffer device for Octane and IP28 systems that have an ImpactSR or SolidImpact graphics boardset. It is useful for debugging kernel problems that occur before the console or serial drivers are ready.
6 (Portage version: 2.1.6.10/cvs/Linux mips64)
7
8 Revision Changes Path
9 1.1 sys-kernel/mips-sources/files/eblits/src_unpack-v2.eblit
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/files/eblits/src_unpack-v2.eblit?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/files/eblits/src_unpack-v2.eblit?rev=1.1&content-type=text/plain
13
14 Index: src_unpack-v2.eblit
15 ===================================================================
16 # Copyright 1999-2009 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/files/eblits/src_unpack-v2.eblit,v 1.1 2009/03/24 05:33:37 kumba Exp $
19
20 # Eblit to handle src_unpack.
21
22 eblit-mips-sources-src_unpack() {
23 # Unpack the kernel sources, update to the latest rev (if needed),
24 # and apply the latest patch from linux-mips git.
25 kernel-2_src_unpack
26
27 # Unpack the mips-sources patchset to ${WORKDIR}/mips-patches-${F_KV}.
28 echo -e ""
29 cd "${WORKDIR}"
30 unpack "${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2"
31
32 # Create a new folder, patch-symlinks, and create symlinks to
33 # mips-patches in there. If we want to exclude a patch, we'll
34 # just delete the symlink instead of the actual patch.
35 local psym="patch-symlinks"
36 mkdir "${psym}"
37 cd "${psym}"
38 for x in ../mips-patches-${F_KV}/*.patch; do
39 ln -s "${x}" "${x##../mips-patches-*/}"
40 done
41
42 # With symlinks created, setup the variables referencing external
43 # machine patches and if a machine USE flag is enabled, then unset
44 # its corresponding variable.
45 # See 0000_README for the patch numbers and their meanings.
46 local p_generic="501*"
47 local p_ip27="502*" p_ip28="503*" p_ip30="504*" p_ip32r10k="6001*" p_impactdebug="6002*"
48 use ip27 && unset p_generic p_ip27
49 use ip28 && unset p_ip28
50 use ip30 && unset p_generic p_ip30
51 use ip32r10k && unset p_ip32r10k
52 use impactdebug && unset p_impactdebug
53
54 # Remove symlinks for any patches that we don't want applied. We do
55 # this by looping through all the above variables, and deleting
56 # matching symlinks that point to the corresponding patches.
57 # The remaining symlinks will be applied to the kernel source.
58 local patchlist="${p_generic} ${p_ip27} ${p_ip28} ${p_ip30} ${p_ip32r10k} ${p_impactdebug}"
59 for x in $patchlist; do rm -f "./${x}"; done
60
61 # Rename the source tree to match the linux-mips git checkout date and
62 # machine type.
63 local v="${F_KV}${EXTRAVERSION}-${GITDATE}"
64 for x in {ip27,ip28,ip30,cobalt}; do use ${x} && v="${v}.${x}" && break; done
65 mv "${WORKDIR}/linux-${F_KV}${EXTRAVERSION}" "${WORKDIR}/linux-${v}"
66 S="${WORKDIR}/linux-${v}"
67
68 # Now go into the kernel source and patch it.
69 cd "${S}"
70 epatch "${WORKDIR}/${psym}"/*.patch
71
72 # Set the EXTRAVERSION to linux-VERSION-mipsgit-GITDATE
73 EXTRAVERSION="${EXTRAVERSION}-mipsgit-${GITDATE}"
74 unpack_set_extraversion
75 }