Created
May 24, 2019 16:05
-
-
Save mjeveritt/0c3f18bb6958980641d3da3b638a6008 to your computer and use it in GitHub Desktop.
/usr/local/portage.mjeveritt/sys-kernel/mje-sources/mje-sources-4.18.19.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2019 Galapagos Linux | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI="6" | |
ETYPE="sources" | |
KEYWORDS="~amd64 ~x86" | |
HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches/ | |
http://kernel.kolivas.org/ | |
https://github.com/dolohow/uksm" | |
IUSE="experimental" | |
K_WANT_GENPATCHES="base extras experimental" | |
K_GENPATCHES_VER="23" | |
K_SECURITY_UNSUPPORTED="1" | |
K_DEBLOB_AVAILABLE="1" | |
PYTHON_COMPAT=( python2_7 ) | |
inherit kernel-mje-1 python-any-r1 | |
detect_version | |
detect_arch | |
DEPEND="deblob? ( ${PYTHON_DEPS} )" | |
K_BRANCH_ID="${KV_MAJOR}.${KV_MINOR}" | |
DESCRIPTION="Con Kolivas' patchset with Gentoo's genpatches for Linux ${K_BRANCH_ID} and UKSM" | |
CK_VERSION="1" | |
CK_FILE_OLD="patch-${K_BRANCH_ID}-ck${CK_VERSION}.xz" | |
CK_FILE_NEW="${K_BRANCH_ID}-ck${CK_VERSION}-broken-out.tar.xz" | |
CK_BASE_URL="http://ck.kolivas.org/patches/4.0" | |
CK_LVER_URL="${CK_BASE_URL}/${K_BRANCH_ID}/${K_BRANCH_ID}-ck${CK_VERSION}" | |
CK_URI="${CK_LVER_URL}/${CK_FILE_NEW}" | |
UKSM_FILE="uksm-${K_BRANCH_ID}.patch" | |
UKSM_URI="https://github.com/dolohow/uksm/raw/master/v4.x/${UKSM_FILE}" | |
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CK_URI} ${UKSM_URI}" | |
UNIPATCH_LIST="${DISTDIR}/${UKSM_FILE} ${T}/${CK_FILE_NEW}" | |
UNIPATCH_EXCLUDE="500*.patch" | |
UNIPATCH_STRICTORDER="yes" | |
UNIPATCH_DOCS="${WORKDIR}/patches/000005/patches/series" | |
#PATCH_BLUETOOTH="0008-Change-all-schedule_timeout-with-msecs_to_jiffies-po.patch" | |
pkg_setup() { | |
use deblob && python-any-r1_pkg_setup | |
kernel-2_pkg_setup | |
} | |
src_unpack() { | |
kernel-mje-1_src_unpack | |
} | |
src_prepare() { | |
# cp "${DISTDIR}/${UKSM_FILE}" "${T}" >/dev/null || die | |
# patch -p1 "${T}/${UKSM_FILE}" -i "${FILESDIR}/${PN}-${K_BRANCH_ID}-mmap-fix.patch" || die | |
#-- Fix -ck1 patches to apply to 4.9.162 tree -- | |
# patch -p1 "${WORKDIR}/patches/000005/patches/${PATCH_BLUETOOTH}" \ | |
# "${FILESDIR}/${K_BRANCH_ID}-ck${CK_VERSION}-bluetooth-timeout-fix.patch" || die | |
#-- Comment out CK's EXTRAVERSION in Makefile --------------------------------- | |
# linux-info eclass cannot handle recursively expanded variables in Makefile #490328 | |
sed -i -e 's/\(^EXTRAVERSION :=.*$\)/# \1/' "${S}/Makefile" || die | |
kernel-mje-1_src_prepare | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment