From 405f18e8e8bc4c5344ae1161d46c8cbcad842b2c Mon Sep 17 00:00:00 2001 From: Joshua Kinard Date: Tue, 15 Sep 2015 00:48:54 -0400 Subject: 4.1.6 -> 4.1.7, updated BFQ patch in 4.2.0 to v7r9. Package-Manager: portage-2.2.20.1 --- sys-kernel/mips-sources/Manifest | 4 +- .../mips-sources/mips-sources-4.1.6-r1.ebuild | 167 --------------------- sys-kernel/mips-sources/mips-sources-4.1.7.ebuild | 167 +++++++++++++++++++++ .../mips-sources/mips-sources-4.2.0-r1.ebuild | 167 --------------------- .../mips-sources/mips-sources-4.2.0-r2.ebuild | 167 +++++++++++++++++++++ 5 files changed, 336 insertions(+), 336 deletions(-) delete mode 100644 sys-kernel/mips-sources/mips-sources-4.1.6-r1.ebuild create mode 100644 sys-kernel/mips-sources/mips-sources-4.1.7.ebuild delete mode 100644 sys-kernel/mips-sources/mips-sources-4.2.0-r1.ebuild create mode 100644 sys-kernel/mips-sources/mips-sources-4.2.0-r2.ebuild (limited to 'sys-kernel/mips-sources') diff --git a/sys-kernel/mips-sources/Manifest b/sys-kernel/mips-sources/Manifest index aa091dea1f1c..db1897816d54 100644 --- a/sys-kernel/mips-sources/Manifest +++ b/sys-kernel/mips-sources/Manifest @@ -1,7 +1,7 @@ DIST linux-4.1.tar.xz 83017828 SHA256 caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f SHA512 168ef84a4e67619f9f53f3574e438542a5747f9b43443363cb83597fcdac9f40d201625c66e375a23226745eaada9176eb006ca023613cec089349e91751f3c0 WHIRLPOOL 85fcfdb67ea7f865272a85d3b4c3ec1f5a1267f4664bf073c562bb3875e9d96ad68486259d8866a9aced98c95de16840ec531d89745aec75b7315a64ebe650b8 DIST linux-4.2.tar.xz 85507784 SHA256 cf20e044f17588d2a42c8f2a450b0fd84dfdbd579b489d93e9ab7d0e8b45dbeb SHA512 a87bbce3c0c6d810a41bbba1c0dcaae80dc38dded9f8571e97fa4ee5a468d655daf52d260911412f7c7da3171a5114e89d63da14b1753b9a3eb2cc38fd89b9ee WHIRLPOOL 2058e664ee287cc03119ff3dd0155b7018b9c789a13a1012f190e516172f845dcb2d977c8e6a6951e9bd720e5e8cdfa3b888cce392c9b02780520e77475870d0 DIST mips-sources-4.1.0-patches-v2.tar.xz 155172 SHA256 ee3dc9b0f21011a4304f90347568cf39faf97344b4ec22d3becbd1d10ca368bf SHA512 ce385fbf4c82e0d09911cd411a1ba822066d750f6306c3fdfac35bfae23a61b8685fd873a5dd62255accee098fb29dbecf64d717de29f9fcf617c5fbf9468eda WHIRLPOOL fe90dd8e9a7bbf17615ec359ebee170d0a4efb9a1480d4ed6dbf29f945d6983fad2a991f455e3c28fddf2f0bd6eb49b637666cb6bf44ccc9f19ce1419a943396 -DIST mips-sources-4.2.0-patches-v2.tar.xz 154356 SHA256 b0cbcdc1477afe9c80d03729463dff0f9bc0d47b14a2044e11643b6d2bf3ff64 SHA512 09d09f5df4c47f4e097df5fe85c6af6412b40d52c7f66047dea002acb28faf7de5b26025526f976fcd57798ad8e976b044e58b669cb1ca7e32e8b3b92c3e0c16 WHIRLPOOL 39da84458e3e5e8069937697dfc4d4ccbd67aeb6a0971b2fc64757f01860c049d1babd06e5494675453cbc954c6750f702d87bbbb8e98bc607028b6455ffdeb4 +DIST mips-sources-4.2.0-patches-v3.tar.xz 156116 SHA256 889aee62dd4ad3eab04bdf3caa3dbda089bdfc791b356c9e41cc5b99810fd6f1 SHA512 70d98c0fc4ac45d00ffc061ec73556f4beb015d3a82808f96e785222c697904ec25656d4ad95c5ed930cae17803cd2441d2fc375de0cab6729e592c6f40b33be WHIRLPOOL 6e7caf148e134a44f3cb55c2a0084923f170dd7f402acc2e57e63d545c750868547c8ce0cd1c9909d12618abd891406affec4088349604b87e21600c63aee17e DIST mipsgit-4.1.0-20150830.diff.xz 2172 SHA256 1dc6449311b607f21f64f8051bb1b5a318c4827b71a1fbe619fec4198500e76e SHA512 8f2724313e4a41a0492146ca9da8b7772688d4f71be4d4f75e0dc6e33ba0c8c47ecd2f1ca7916375afb8db9abae07fb19714e51c55a10f14a6a87488666a4870 WHIRLPOOL 41c51c3d40ee64f1a584e2d2ef08bf04c41b951a2d1db955edb65f2f3461573f9bb6226b646a8a0dbe812e112fdbab80915915c67d9f5c08c52e9e37704c0a7d DIST mipsgit-4.2.0-20150830.diff.xz 6676 SHA256 15a45b998a3dae1adfc0a1efe8681f3dd006537d5a33e6dc9b1b0160e6fe7503 SHA512 6d16263d34cb6865647d89ac6933f37fe063d74fd55e1db6911533dc8de5a55f9731d1e5b55eea030d51244e8d59244a0e9f8bda4c283d8684b74738a8dadf0d WHIRLPOOL 7baa008a100e7dab569dbe9e234bf2d11408389db0e9d2eaef9b8823b4aeb0a39f713d28a4ca74606fdcafec2ba95a0c4eaf492ae0c5a7ec570440c35e35fd0f -DIST patch-4.1.6.xz 201836 SHA256 64e4deb16a279e233b0c91463b131bd0f3de6aabdb49efded8314bcf5dbfe070 SHA512 1b725c2051d7dd9129c927fdb90d8d7a2e13149a2dd1175c5efacfc516e664af3647bca83d847197f8c19ef140bf07ea856868e27bef4a1cad9607e40b527424 WHIRLPOOL cc685876a4bf84903720a7a311854b4b469d29e8f09303b8e05e82501c6bb105fe149eed78f14084bbd748bfbd13ad55a22277ac1ab17c497b6c5e0db64af0d6 +DIST patch-4.1.7.xz 224108 SHA256 bbd57fb48ea8e6971680818ba8722fd38ae419dca6047b852f10d33e5cd2ff6b SHA512 3b5af919b94d7f4b2b66702ddb23dc32b15c3029d00d56afce564a317510bfc7ce016394335acc9f29da860fed7cb241edeaa082ec9477a0a4a62a9a238d23b6 WHIRLPOOL 062227824632cdd14620fffd389a5e4b35704658188f5447b1a7f992a0b81a860bb2383dab87ca2a3588e7c4646bbb137db4aab1bf5b7e1397820ae3fc919eb0 diff --git a/sys-kernel/mips-sources/mips-sources-4.1.6-r1.ebuild b/sys-kernel/mips-sources/mips-sources-4.1.6-r1.ebuild deleted file mode 100644 index 64ca1f089fcd..000000000000 --- a/sys-kernel/mips-sources/mips-sources-4.1.6-r1.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# EAPI Version -EAPI="5" - -#//------------------------------------------------------------------------------ - -# Version Data -GITDATE="20150830" # Date of diff between kernel.org and lmo GIT -GENPATCHREV="2" # Tarball revision for patches - -# Directories -S="${WORKDIR}/linux-${OKV}-${GITDATE}" -MIPS_PATCHES="${WORKDIR}/mips-patches" - -# Kernel-2 Vars -K_SECURITY_UNSUPPORTED="yes" -K_NOUSENAME="yes" -K_NOSETEXTRAVERSION="yes" -K_NOUSEPR="yes" -K_BASE_VER="4.0" -ETYPE="sources" - -# Inherit Eclasses -inherit kernel-2 eutils -detect_version - -# Version Data -F_KV="${PVR}" -BASE_KV="$(get_version_component_range 1-2).0" -[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" - -# Portage Vars -HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" -KEYWORDS="-* ~mips" -IUSE="cobalt ip27 ip28 ip30" -DEPEND=">=sys-devel/gcc-4.6.0" -RDEPEND="" - -# Machine Support Control Variables -DO_IP22="test" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) -DO_IP27="yes" # IP27 support (SGI Origin) -DO_IP28="test" # IP28 support (SGI Indigo2 Impact R10000) -DO_IP30="yes" # IP30 support (SGI Octane) -DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) -DO_CBLT="test" # Cobalt Support (Cobalt Microsystems) - -# Machine Stable Version Variables -SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version -SV_IP27="" # DO_IP27 == "no", IP27 -SV_IP28="" # DO_IP28 == "no", IP28 -SV_IP30="" # DO_IP30 == "no", IP30 -SV_IP32="" # DO_IP32 == "no", IP32 -SV_CBLT="" # DO_CBLT == "no", Cobalt - -DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" -SRC_URI="${KERNEL_URI} - mirror://gentoo/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz - mirror://gentoo/${PN}-${BASE_KV}-patches-v${GENPATCHREV}.tar.xz" - -UNIPATCH_STRICTORDER="1" -UNIPATCH_LIST="${DISTDIR}/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz" - -#//------------------------------------------------------------------------------ - -# Eblit Handling Functions -# -# They'll likely be superseded someday by better ideas, possibly elibs. - -# eblit-core -# Usage: [version] -# Main eblit engine -eblit-core() { - local e v func=$1 ver=$2 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do - e="${FILESDIR}/eblits/${func}${v}.eblit" - if [[ -e ${e} ]] ; then - . "${e}" - [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" - return 0 - fi - done - return 1 -} - -# eblit-include -# Usage: [--skip] [version] -# Includes an "eblit" -- a chunk of common code among ebuilds in a given -# package so that its functions can be sourced and utilized within the -# ebuild. -eblit-include() { - local skipable=false r=0 - [[ $1 == "--skip" ]] && skipable=true && shift - [[ $1 == pkg_* ]] && skipable=true - - [[ -z $1 ]] && die "Usage: eblit-include [version]" - eblit-core $1 $2 - r="$?" - ${skipable} && return 0 - [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" -} - -# eblit-run-maybe -# Usage: -# Runs a function if it is defined in an eblit -eblit-run-maybe() { - [[ $(type -t "$@") == "function" ]] && "$@" -} - -# eblit-run -# Usage: [version] -# Runs a function defined in an eblit -eblit-run() { - eblit-include --skip common "${*:2}" - eblit-include "$@" - eblit-run-maybe eblit-$1-pre - eblit-${PN}-$1 - eblit-run-maybe eblit-$1-post -} - -# eblit-pkg -# Usage: [version] -# Runs the pkg_* functions AND evals them so they're included in the binpkgs -eblit-pkg() { - [[ -z $1 ]] && die "Usage: eblit-pkg [version]" - eblit-core pkg_$1 $2 -} - -#//------------------------------------------------------------------------------ - -load_eblit_funcs() { - # This is a sanity check to avoid QA issues. It prevents - # eblits from being referenced during metadata operations. - [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return - - # All are in ${FILESDIR}/eblits - # If a message for a given machine needs to change, - # then we create a new eblit and increment the - # version and reference it here. - eblit-include err_disabled_mach v1 - eblit-include err_only_one_mach_allowed v1 - eblit-include show_ip22_info v3 - eblit-include show_ip27_info v3 - eblit-include show_ip28_info v1 - eblit-include show_ip30_info v4 - eblit-include show_ip32_info v4 - eblit-include show_cobalt_info v1 - - # This makes sure pkg_setup & pkg_postinst gets into any binpkg. - # Neccessary because we can't guarantee FILESDIR is around for binpkgs. - eblit-pkg setup v1 - eblit-pkg postinst v1 - - # Eblit load complete - MIPS_SOURCES_EBLITS_LOADED=1 -} - -pkg_setup() { - load_eblit_funcs - pkg_setup -} - -src_unpack() { eblit-run src_unpack v6 ; } - -#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-4.1.7.ebuild b/sys-kernel/mips-sources/mips-sources-4.1.7.ebuild new file mode 100644 index 000000000000..64ca1f089fcd --- /dev/null +++ b/sys-kernel/mips-sources/mips-sources-4.1.7.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# EAPI Version +EAPI="5" + +#//------------------------------------------------------------------------------ + +# Version Data +GITDATE="20150830" # Date of diff between kernel.org and lmo GIT +GENPATCHREV="2" # Tarball revision for patches + +# Directories +S="${WORKDIR}/linux-${OKV}-${GITDATE}" +MIPS_PATCHES="${WORKDIR}/mips-patches" + +# Kernel-2 Vars +K_SECURITY_UNSUPPORTED="yes" +K_NOUSENAME="yes" +K_NOSETEXTRAVERSION="yes" +K_NOUSEPR="yes" +K_BASE_VER="4.0" +ETYPE="sources" + +# Inherit Eclasses +inherit kernel-2 eutils +detect_version + +# Version Data +F_KV="${PVR}" +BASE_KV="$(get_version_component_range 1-2).0" +[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" + +# Portage Vars +HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" +KEYWORDS="-* ~mips" +IUSE="cobalt ip27 ip28 ip30" +DEPEND=">=sys-devel/gcc-4.6.0" +RDEPEND="" + +# Machine Support Control Variables +DO_IP22="test" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) +DO_IP27="yes" # IP27 support (SGI Origin) +DO_IP28="test" # IP28 support (SGI Indigo2 Impact R10000) +DO_IP30="yes" # IP30 support (SGI Octane) +DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) +DO_CBLT="test" # Cobalt Support (Cobalt Microsystems) + +# Machine Stable Version Variables +SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version +SV_IP27="" # DO_IP27 == "no", IP27 +SV_IP28="" # DO_IP28 == "no", IP28 +SV_IP30="" # DO_IP30 == "no", IP30 +SV_IP32="" # DO_IP32 == "no", IP32 +SV_CBLT="" # DO_CBLT == "no", Cobalt + +DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" +SRC_URI="${KERNEL_URI} + mirror://gentoo/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz + mirror://gentoo/${PN}-${BASE_KV}-patches-v${GENPATCHREV}.tar.xz" + +UNIPATCH_STRICTORDER="1" +UNIPATCH_LIST="${DISTDIR}/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz" + +#//------------------------------------------------------------------------------ + +# Eblit Handling Functions +# +# They'll likely be superseded someday by better ideas, possibly elibs. + +# eblit-core +# Usage: [version] +# Main eblit engine +eblit-core() { + local e v func=$1 ver=$2 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do + e="${FILESDIR}/eblits/${func}${v}.eblit" + if [[ -e ${e} ]] ; then + . "${e}" + [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" + return 0 + fi + done + return 1 +} + +# eblit-include +# Usage: [--skip] [version] +# Includes an "eblit" -- a chunk of common code among ebuilds in a given +# package so that its functions can be sourced and utilized within the +# ebuild. +eblit-include() { + local skipable=false r=0 + [[ $1 == "--skip" ]] && skipable=true && shift + [[ $1 == pkg_* ]] && skipable=true + + [[ -z $1 ]] && die "Usage: eblit-include [version]" + eblit-core $1 $2 + r="$?" + ${skipable} && return 0 + [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" +} + +# eblit-run-maybe +# Usage: +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "${*:2}" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: [version] +# Runs the pkg_* functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg [version]" + eblit-core pkg_$1 $2 +} + +#//------------------------------------------------------------------------------ + +load_eblit_funcs() { + # This is a sanity check to avoid QA issues. It prevents + # eblits from being referenced during metadata operations. + [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return + + # All are in ${FILESDIR}/eblits + # If a message for a given machine needs to change, + # then we create a new eblit and increment the + # version and reference it here. + eblit-include err_disabled_mach v1 + eblit-include err_only_one_mach_allowed v1 + eblit-include show_ip22_info v3 + eblit-include show_ip27_info v3 + eblit-include show_ip28_info v1 + eblit-include show_ip30_info v4 + eblit-include show_ip32_info v4 + eblit-include show_cobalt_info v1 + + # This makes sure pkg_setup & pkg_postinst gets into any binpkg. + # Neccessary because we can't guarantee FILESDIR is around for binpkgs. + eblit-pkg setup v1 + eblit-pkg postinst v1 + + # Eblit load complete + MIPS_SOURCES_EBLITS_LOADED=1 +} + +pkg_setup() { + load_eblit_funcs + pkg_setup +} + +src_unpack() { eblit-run src_unpack v6 ; } + +#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-4.2.0-r1.ebuild b/sys-kernel/mips-sources/mips-sources-4.2.0-r1.ebuild deleted file mode 100644 index 64ca1f089fcd..000000000000 --- a/sys-kernel/mips-sources/mips-sources-4.2.0-r1.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# EAPI Version -EAPI="5" - -#//------------------------------------------------------------------------------ - -# Version Data -GITDATE="20150830" # Date of diff between kernel.org and lmo GIT -GENPATCHREV="2" # Tarball revision for patches - -# Directories -S="${WORKDIR}/linux-${OKV}-${GITDATE}" -MIPS_PATCHES="${WORKDIR}/mips-patches" - -# Kernel-2 Vars -K_SECURITY_UNSUPPORTED="yes" -K_NOUSENAME="yes" -K_NOSETEXTRAVERSION="yes" -K_NOUSEPR="yes" -K_BASE_VER="4.0" -ETYPE="sources" - -# Inherit Eclasses -inherit kernel-2 eutils -detect_version - -# Version Data -F_KV="${PVR}" -BASE_KV="$(get_version_component_range 1-2).0" -[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" - -# Portage Vars -HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" -KEYWORDS="-* ~mips" -IUSE="cobalt ip27 ip28 ip30" -DEPEND=">=sys-devel/gcc-4.6.0" -RDEPEND="" - -# Machine Support Control Variables -DO_IP22="test" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) -DO_IP27="yes" # IP27 support (SGI Origin) -DO_IP28="test" # IP28 support (SGI Indigo2 Impact R10000) -DO_IP30="yes" # IP30 support (SGI Octane) -DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) -DO_CBLT="test" # Cobalt Support (Cobalt Microsystems) - -# Machine Stable Version Variables -SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version -SV_IP27="" # DO_IP27 == "no", IP27 -SV_IP28="" # DO_IP28 == "no", IP28 -SV_IP30="" # DO_IP30 == "no", IP30 -SV_IP32="" # DO_IP32 == "no", IP32 -SV_CBLT="" # DO_CBLT == "no", Cobalt - -DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" -SRC_URI="${KERNEL_URI} - mirror://gentoo/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz - mirror://gentoo/${PN}-${BASE_KV}-patches-v${GENPATCHREV}.tar.xz" - -UNIPATCH_STRICTORDER="1" -UNIPATCH_LIST="${DISTDIR}/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz" - -#//------------------------------------------------------------------------------ - -# Eblit Handling Functions -# -# They'll likely be superseded someday by better ideas, possibly elibs. - -# eblit-core -# Usage: [version] -# Main eblit engine -eblit-core() { - local e v func=$1 ver=$2 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do - e="${FILESDIR}/eblits/${func}${v}.eblit" - if [[ -e ${e} ]] ; then - . "${e}" - [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" - return 0 - fi - done - return 1 -} - -# eblit-include -# Usage: [--skip] [version] -# Includes an "eblit" -- a chunk of common code among ebuilds in a given -# package so that its functions can be sourced and utilized within the -# ebuild. -eblit-include() { - local skipable=false r=0 - [[ $1 == "--skip" ]] && skipable=true && shift - [[ $1 == pkg_* ]] && skipable=true - - [[ -z $1 ]] && die "Usage: eblit-include [version]" - eblit-core $1 $2 - r="$?" - ${skipable} && return 0 - [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" -} - -# eblit-run-maybe -# Usage: -# Runs a function if it is defined in an eblit -eblit-run-maybe() { - [[ $(type -t "$@") == "function" ]] && "$@" -} - -# eblit-run -# Usage: [version] -# Runs a function defined in an eblit -eblit-run() { - eblit-include --skip common "${*:2}" - eblit-include "$@" - eblit-run-maybe eblit-$1-pre - eblit-${PN}-$1 - eblit-run-maybe eblit-$1-post -} - -# eblit-pkg -# Usage: [version] -# Runs the pkg_* functions AND evals them so they're included in the binpkgs -eblit-pkg() { - [[ -z $1 ]] && die "Usage: eblit-pkg [version]" - eblit-core pkg_$1 $2 -} - -#//------------------------------------------------------------------------------ - -load_eblit_funcs() { - # This is a sanity check to avoid QA issues. It prevents - # eblits from being referenced during metadata operations. - [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return - - # All are in ${FILESDIR}/eblits - # If a message for a given machine needs to change, - # then we create a new eblit and increment the - # version and reference it here. - eblit-include err_disabled_mach v1 - eblit-include err_only_one_mach_allowed v1 - eblit-include show_ip22_info v3 - eblit-include show_ip27_info v3 - eblit-include show_ip28_info v1 - eblit-include show_ip30_info v4 - eblit-include show_ip32_info v4 - eblit-include show_cobalt_info v1 - - # This makes sure pkg_setup & pkg_postinst gets into any binpkg. - # Neccessary because we can't guarantee FILESDIR is around for binpkgs. - eblit-pkg setup v1 - eblit-pkg postinst v1 - - # Eblit load complete - MIPS_SOURCES_EBLITS_LOADED=1 -} - -pkg_setup() { - load_eblit_funcs - pkg_setup -} - -src_unpack() { eblit-run src_unpack v6 ; } - -#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-4.2.0-r2.ebuild b/sys-kernel/mips-sources/mips-sources-4.2.0-r2.ebuild new file mode 100644 index 000000000000..9e3e7d5bd388 --- /dev/null +++ b/sys-kernel/mips-sources/mips-sources-4.2.0-r2.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# EAPI Version +EAPI="5" + +#//------------------------------------------------------------------------------ + +# Version Data +GITDATE="20150830" # Date of diff between kernel.org and lmo GIT +GENPATCHREV="3" # Tarball revision for patches + +# Directories +S="${WORKDIR}/linux-${OKV}-${GITDATE}" +MIPS_PATCHES="${WORKDIR}/mips-patches" + +# Kernel-2 Vars +K_SECURITY_UNSUPPORTED="yes" +K_NOUSENAME="yes" +K_NOSETEXTRAVERSION="yes" +K_NOUSEPR="yes" +K_BASE_VER="4.0" +ETYPE="sources" + +# Inherit Eclasses +inherit kernel-2 eutils +detect_version + +# Version Data +F_KV="${PVR}" +BASE_KV="$(get_version_component_range 1-2).0" +[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" + +# Portage Vars +HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" +KEYWORDS="-* ~mips" +IUSE="cobalt ip27 ip28 ip30" +DEPEND=">=sys-devel/gcc-4.6.0" +RDEPEND="" + +# Machine Support Control Variables +DO_IP22="test" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) +DO_IP27="yes" # IP27 support (SGI Origin) +DO_IP28="test" # IP28 support (SGI Indigo2 Impact R10000) +DO_IP30="yes" # IP30 support (SGI Octane) +DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) +DO_CBLT="test" # Cobalt Support (Cobalt Microsystems) + +# Machine Stable Version Variables +SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version +SV_IP27="" # DO_IP27 == "no", IP27 +SV_IP28="" # DO_IP28 == "no", IP28 +SV_IP30="" # DO_IP30 == "no", IP30 +SV_IP32="" # DO_IP32 == "no", IP32 +SV_CBLT="" # DO_CBLT == "no", Cobalt + +DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" +SRC_URI="${KERNEL_URI} + mirror://gentoo/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz + mirror://gentoo/${PN}-${BASE_KV}-patches-v${GENPATCHREV}.tar.xz" + +UNIPATCH_STRICTORDER="1" +UNIPATCH_LIST="${DISTDIR}/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz" + +#//------------------------------------------------------------------------------ + +# Eblit Handling Functions +# +# They'll likely be superseded someday by better ideas, possibly elibs. + +# eblit-core +# Usage: [version] +# Main eblit engine +eblit-core() { + local e v func=$1 ver=$2 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do + e="${FILESDIR}/eblits/${func}${v}.eblit" + if [[ -e ${e} ]] ; then + . "${e}" + [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" + return 0 + fi + done + return 1 +} + +# eblit-include +# Usage: [--skip] [version] +# Includes an "eblit" -- a chunk of common code among ebuilds in a given +# package so that its functions can be sourced and utilized within the +# ebuild. +eblit-include() { + local skipable=false r=0 + [[ $1 == "--skip" ]] && skipable=true && shift + [[ $1 == pkg_* ]] && skipable=true + + [[ -z $1 ]] && die "Usage: eblit-include [version]" + eblit-core $1 $2 + r="$?" + ${skipable} && return 0 + [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" +} + +# eblit-run-maybe +# Usage: +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "${*:2}" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: [version] +# Runs the pkg_* functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg [version]" + eblit-core pkg_$1 $2 +} + +#//------------------------------------------------------------------------------ + +load_eblit_funcs() { + # This is a sanity check to avoid QA issues. It prevents + # eblits from being referenced during metadata operations. + [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return + + # All are in ${FILESDIR}/eblits + # If a message for a given machine needs to change, + # then we create a new eblit and increment the + # version and reference it here. + eblit-include err_disabled_mach v1 + eblit-include err_only_one_mach_allowed v1 + eblit-include show_ip22_info v3 + eblit-include show_ip27_info v3 + eblit-include show_ip28_info v1 + eblit-include show_ip30_info v4 + eblit-include show_ip32_info v4 + eblit-include show_cobalt_info v1 + + # This makes sure pkg_setup & pkg_postinst gets into any binpkg. + # Neccessary because we can't guarantee FILESDIR is around for binpkgs. + eblit-pkg setup v1 + eblit-pkg postinst v1 + + # Eblit load complete + MIPS_SOURCES_EBLITS_LOADED=1 +} + +pkg_setup() { + load_eblit_funcs + pkg_setup +} + +src_unpack() { eblit-run src_unpack v6 ; } + +#//------------------------------------------------------------------------------ -- cgit v1.2.3-65-gdbad