1 |
commit: 672fe71d4394906c4b7fad9fd977a5eaf2f40f7d |
2 |
Author: kuzetsa <kuzetsa <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 7 11:07:25 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 10 11:00:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=672fe71d |
7 |
|
8 |
sys-kernel/ck-sources: 4.9 (longterm branch) --> EAPI 6 |
9 |
|
10 |
Commit also minimizes layout diffs from 4.11 (EOL branch) |
11 |
|
12 |
Status: 4.12 branch from ck-patches upstream still pending. |
13 |
|
14 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
15 |
|
16 |
sys-kernel/ck-sources/ck-sources-4.9.39-r1.ebuild | 65 +++++++++++++++++++++++ |
17 |
1 file changed, 65 insertions(+) |
18 |
|
19 |
diff --git a/sys-kernel/ck-sources/ck-sources-4.9.39-r1.ebuild b/sys-kernel/ck-sources/ck-sources-4.9.39-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..a13a8782cb4 |
22 |
--- /dev/null |
23 |
+++ b/sys-kernel/ck-sources/ck-sources-4.9.39-r1.ebuild |
24 |
@@ -0,0 +1,65 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI="6" |
29 |
+ETYPE="sources" |
30 |
+KEYWORDS="~amd64 ~x86" |
31 |
+ |
32 |
+HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches/ |
33 |
+ http://users.tpg.com.au/ckolivas/kernel/" |
34 |
+ |
35 |
+K_WANT_GENPATCHES="base extras experimental" |
36 |
+K_EXP_GENPATCHES_PULL="1" |
37 |
+K_EXP_GENPATCHES_NOUSE="1" |
38 |
+K_GENPATCHES_VER="40" |
39 |
+K_SECURITY_UNSUPPORTED="1" |
40 |
+K_DEBLOB_AVAILABLE="1" |
41 |
+ |
42 |
+PYTHON_COMPAT=( python2_7 ) |
43 |
+inherit python-any-r1 kernel-2 |
44 |
+detect_version |
45 |
+detect_arch |
46 |
+ |
47 |
+DEPEND="deblob? ( ${PYTHON_DEPS} )" |
48 |
+ |
49 |
+K_BRANCH_ID="${KV_MAJOR}.${KV_MINOR}" |
50 |
+ |
51 |
+DESCRIPTION="Con Kolivas' high performance patchset and Gentoo's genpatches for Linux ${K_BRANCH_ID}" |
52 |
+ |
53 |
+CK_VERSION="1" |
54 |
+ |
55 |
+CK_FILE="patch-${K_BRANCH_ID}-ck${CK_VERSION}.xz" |
56 |
+ |
57 |
+CK_BASE_URL="http://ck.kolivas.org/patches/4.0" |
58 |
+CK_LVER_URL="${CK_BASE_URL}/${K_BRANCH_ID}/${K_BRANCH_ID}-ck${CK_VERSION}" |
59 |
+CK_URI="${CK_LVER_URL}/${CK_FILE}" |
60 |
+ |
61 |
+# solves bug #606866 (Fix build for CONFIG_FREEZER disabled.x) |
62 |
+FRZR_HASH="7de569950716147ed436b27936628ee3ab5b45cc" |
63 |
+FRZR_FILE="${PN}-4.9-freezer-fix.patch" |
64 |
+FRZR_URI="https://github.com/ckolivas/linux/commit/${FRZR_HASH}.patch -> ${FRZR_FILE}" |
65 |
+ |
66 |
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CK_URI} ${FRZR_URI}" |
67 |
+ |
68 |
+UNIPATCH_LIST="${DISTDIR}/${CK_FILE} ${DISTDIR}/${FRZR_FILE}" |
69 |
+UNIPATCH_STRICTORDER="yes" |
70 |
+ |
71 |
+# ck-patches already includes BFQ (similar version as genpatches "experimental" USE flag) |
72 |
+# what's not included is: "additional cpu optimizations" (5010) from genpatches experimental |
73 |
+ |
74 |
+K_EXP_GENPATCHES_LIST="5010_*.patch*" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ use deblob && python-any-r1_pkg_setup |
78 |
+ kernel-2_pkg_setup |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ |
83 |
+#-- Comment out CK's EXTRAVERSION in Makefile --------------------------------- |
84 |
+ |
85 |
+ # linux-info eclass cannot handle recursively expanded variables in Makefile #490328 |
86 |
+ sed -i -e 's/\(^EXTRAVERSION :=.*$\)/# \1/' "${S}/Makefile" || die |
87 |
+ |
88 |
+ kernel-2_src_prepare |
89 |
+} |