summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel.bbclass
diff options
context:
space:
mode:
authorDiego Sueiro <diego.sueiro@arm.com>2022-11-03 16:06:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-07 14:32:42 +0000
commit7fa4796eb8b5726af0176b8c47cd15804e584c2c (patch)
treea5b6c46b20cde78606c740a828ebda6b055b47cb /meta/classes-recipe/kernel.bbclass
parentdb3731112ded225d7ffe7e6918799778e7d70fe3 (diff)
downloadpoky-7fa4796eb8b5726af0176b8c47cd15804e584c2c.tar.gz
kernel.bbclass: Include randstruct seed assets in STAGING_KERNEL_BUILDDIR
When building with CONFIG_MODVERSIONS=y and CONFIG_RANDSTRUCT=y we need to copy the build assets generated for the randstrutc seed to STAGING_KERNEL_BUILDDIR, otherwise the out-of-tree modules build will generate those assets which will result in a different RANDSTRUCT_HASHED_SEED. (From OE-Core rev: b36303158b2e0273ff415bdedefb379f680b30fc) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel.bbclass')
-rw-r--r--meta/classes-recipe/kernel.bbclass16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 7bb3449223..3834a42fb9 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -591,6 +591,22 @@ do_shared_workdir () {
591 cp tools/objtool/objtool ${kerneldir}/tools/objtool/ 591 cp tools/objtool/objtool ${kerneldir}/tools/objtool/
592 fi 592 fi
593 fi 593 fi
594
595 # When building with CONFIG_MODVERSIONS=y and CONFIG_RANDSTRUCT=y we need
596 # to copy the build assets generated for the randstruct seed to
597 # STAGING_KERNEL_BUILDDIR, otherwise the out-of-tree modules build will
598 # generate those assets which will result in a different
599 # RANDSTRUCT_HASHED_SEED
600 if [ -d scripts/basic ]; then
601 mkdir -p ${kerneldir}/scripts
602 cp -r scripts/basic ${kerneldir}/scripts
603 fi
604
605 if [ -d scripts/gcc-plugins ]; then
606 mkdir -p ${kerneldir}/scripts
607 cp -r scripts/gcc-plugins ${kerneldir}/scripts
608 fi
609
594} 610}
595 611
596# We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware 612# We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware