diff options
| -rw-r--r-- | meta/classes-recipe/kernel.bbclass | 16 |
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 |
