summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2022-07-06 11:10:25 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2022-07-08 09:28:10 +0200
commit8e5cf005bc7cb06c54d7dc101c85994434c1e5f8 (patch)
tree63340d44caaad0ca088dc83c96c1bb1ff861cb17
parentd4546d69fbceb08d1c05828ce2a156d939799a93 (diff)
downloadmeta-nfv-access-bsp-x86-8e5cf005bc7cb06c54d7dc101c85994434c1e5f8.tar.gz
linux-intel: Remove duplicate upstreamed patch
yocto-kernel-cache added in [1] a patch backport. However, it was included upstream in [2], which will get pulled in when the kernel version will be bumped later on, ending up duplicating the change, causing do_patch failures during build. Until upstream cleans up the duplicate, handle it explicitly. [1] https://git.yoctoproject.org/yocto-kernel-cache/commit/\ ?h=yocto-5.10&id=67dad5ca86bd47dbbaa2194b9854c228055dfd37 [2] https://github.com/intel/linux-intel-lts/commit/df34f8886 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Change-Id: Ib9c409a7ad7892344ae91922cf0bfa8b36500f19
-rw-r--r--recipes-kernel/linux/linux-intel.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/recipes-kernel/linux/linux-intel.inc b/recipes-kernel/linux/linux-intel.inc
index dd677f3..10af6ca 100644
--- a/recipes-kernel/linux/linux-intel.inc
+++ b/recipes-kernel/linux/linux-intel.inc
@@ -8,14 +8,19 @@ SRCREV_metaenea = "c930040f777c2546033b3fc55b475c0792ac62e9"
8KENEABRANCH = "intel-5.10" 8KENEABRANCH = "intel-5.10"
9SRC_URI_append = " git://git@git.enea.com/linux/enea-kernel-cache.git;protocol=ssh;type=kmeta;name=metaenea;branch=${KENEABRANCH};destsuffix=enea-kernel-meta" 9SRC_URI_append = " git://git@git.enea.com/linux/enea-kernel-cache.git;protocol=ssh;type=kmeta;name=metaenea;branch=${KENEABRANCH};destsuffix=enea-kernel-meta"
10 10
11# Upstream BSPs include aufs support (by patching the kernel source + enabling it in kernel config).
12# However, our current kernel version contains a backported commit that conflicts with aufs patches.
13# Until aufs patches are rebased in yocto-kernel-cache, disable aufs kernel source patching, since
14# we don't enable it via kernel config anyway.
15do_kernel_metadata_prepend() { 11do_kernel_metadata_prepend() {
16 ## ENEA_start ## 12 ## ENEA_start ##
17 # kernel-meta patching via patch files added to SRC_URI is currently broken, handle it here 13 # kernel-meta patching via patch files added to SRC_URI is currently broken, handle it here
14
15 # Upstream BSPs include aufs support (by patching the kernel source + enabling it in kernel config).
16 # However, our current kernel version contains a backported commit that conflicts with aufs patches.
17 # Until aufs patches are rebased in yocto-kernel-cache, disable aufs kernel source patching, since
18 # we don't enable it via kernel config anyway.
18 sed -i -E 's/^(include features.aufs.*)$/# \1/g' ${WORKDIR}/kernel-meta/ktypes/standard/standard.scc 19 sed -i -E 's/^(include features.aufs.*)$/# \1/g' ${WORKDIR}/kernel-meta/ktypes/standard/standard.scc
20
21 # Upstream yocto-kernel-cache adds a backported patch that meanwhile got upstreamed, but was not
22 # yet removed, causing patching conflicts. Until upstream cleans up this mess, handle it here.
23 sed -i -E 's/^(patch cgroup1-fix-leaked.*)$/# \1/g' ${WORKDIR}/kernel-meta/patches/misc/misc.scc
19 ## ENEA_end ## 24 ## ENEA_end ##
20} 25}
21 26