summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index d878d4e167..ad2b296c2d 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -585,6 +585,22 @@ do_shared_workdir () {
585 cp tools/objtool/objtool ${kerneldir}/tools/objtool/ 585 cp tools/objtool/objtool ${kerneldir}/tools/objtool/
586 fi 586 fi
587 fi 587 fi
588
589 # When building with CONFIG_MODVERSIONS=y and CONFIG_RANDSTRUCT=y we need
590 # to copy the build assets generated for the randstruct seed to
591 # STAGING_KERNEL_BUILDDIR, otherwise the out-of-tree modules build will
592 # generate those assets which will result in a different
593 # RANDSTRUCT_HASHED_SEED
594 if [ -d scripts/basic ]; then
595 mkdir -p ${kerneldir}/scripts
596 cp -r scripts/basic ${kerneldir}/scripts
597 fi
598
599 if [ -d scripts/gcc-plugins ]; then
600 mkdir -p ${kerneldir}/scripts
601 cp -r scripts/gcc-plugins ${kerneldir}/scripts
602 fi
603
588} 604}
589 605
590# We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware 606# We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware