diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-05-10 18:49:52 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-05-10 18:49:52 +0100 |
commit | 75220de5f6abec50338fbbd6a0e689cfecff0c6f (patch) | |
tree | d9ad6e4ac82c12fd28911521d18aeda6b0a743d9 /eclass/linux-build.eclass | |
parent | eclass/linux-build: support sys-boot/raspberrypi-firmware (diff) | |
download | portage-75220de5f6abec50338fbbd6a0e689cfecff0c6f.tar.xz |
eclass/linux-build: Support extra kernel patch serie
Specify EXTRA_KERNEL_PATCHES as a subdir from patches location
Diffstat (limited to 'eclass/linux-build.eclass')
-rw-r--r-- | eclass/linux-build.eclass | 9 |
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}" |