summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/linux-build.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index badc6ee7..4922ded8 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -326,6 +326,15 @@ _linux-build_src_prepare_build() {
linux-build_src_prepare() {
kernel-2_src_prepare
+ for _ex in ${EXTRA_KERNEL_PATCHES[@]} ; do
+ if [[ ! -d "${PORTAGE_CONFIGROOT%/}/etc/portage/patches/${CATEGORY}/${PF}/${_ex}" ]] ; then
+ ewarn "Extra kernel patch serie '${_ex}' not present in ${PORTAGE_CONFIGROOT%/}/etc/portage/patches/${CATEGORY}/${PF}/${_ex}, skipping"
+ continue
+ fi
+
+ eapply "${PORTAGE_CONFIGROOT%/}/etc/portage/patches/${CATEGORY}/${PF}/${_ex}"
+ done
+
bopt=(
-C "${SRCDIR}"
KBUILD_OUTPUT="${BUILDDIR}"