diff options
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 46d706b955..253b8d307d 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -145,6 +145,9 @@ do_install() { | |||
145 | 145 | ||
146 | cp -a scripts $kerneldir/build | 146 | cp -a scripts $kerneldir/build |
147 | 147 | ||
148 | # for v6.1+ (otherwise we are missing multiple default targets) | ||
149 | cp -a --parents Kbuild $kerneldir/build 2>/dev/null || : | ||
150 | |||
148 | # if our build dir had objtool, it will also be rebuilt on target, so | 151 | # if our build dir had objtool, it will also be rebuilt on target, so |
149 | # we copy what is required for that build | 152 | # we copy what is required for that build |
150 | if [ -f ${B}/tools/objtool/objtool ]; then | 153 | if [ -f ${B}/tools/objtool/objtool ]; then |
@@ -171,6 +174,9 @@ do_install() { | |||
171 | # arch/arm64/include/asm/opcodes.h references arch/arm | 174 | # arch/arm64/include/asm/opcodes.h references arch/arm |
172 | cp -a --parents arch/arm/include/asm/opcodes.h $kerneldir/build/ | 175 | cp -a --parents arch/arm/include/asm/opcodes.h $kerneldir/build/ |
173 | 176 | ||
177 | # v6.1+ | ||
178 | cp -a --parents arch/arm64/kernel/asm-offsets.c $kerneldir/build/ | ||
179 | |||
174 | cp -a --parents arch/arm64/kernel/vdso/*gettimeofday.* $kerneldir/build/ | 180 | cp -a --parents arch/arm64/kernel/vdso/*gettimeofday.* $kerneldir/build/ |
175 | cp -a --parents arch/arm64/kernel/vdso/sigreturn.S $kerneldir/build/ | 181 | cp -a --parents arch/arm64/kernel/vdso/sigreturn.S $kerneldir/build/ |
176 | cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/ | 182 | cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/ |
@@ -206,6 +212,9 @@ do_install() { | |||
206 | cp -a --parents arch/powerpc/kernel/vdso/*.S $kerneldir/build 2>/dev/null || : | 212 | cp -a --parents arch/powerpc/kernel/vdso/*.S $kerneldir/build 2>/dev/null || : |
207 | cp -a --parents arch/powerpc/kernel/vdso/*gettimeofday.* $kerneldir/build 2>/dev/null || : | 213 | cp -a --parents arch/powerpc/kernel/vdso/*gettimeofday.* $kerneldir/build 2>/dev/null || : |
208 | cp -a --parents arch/powerpc/kernel/vdso/gen_vdso*_offsets.sh $kerneldir/build/ 2>/dev/null || : | 214 | cp -a --parents arch/powerpc/kernel/vdso/gen_vdso*_offsets.sh $kerneldir/build/ 2>/dev/null || : |
215 | |||
216 | # v6,1+ | ||
217 | cp -a --parents arch/powerpc/kernel/asm-offsets.c $kerneldir/build/ 2>/dev/null || : | ||
209 | fi | 218 | fi |
210 | if [ "${ARCH}" = "riscv" ]; then | 219 | if [ "${ARCH}" = "riscv" ]; then |
211 | cp -a --parents arch/riscv/kernel/vdso/*gettimeofday.* $kerneldir/build/ | 220 | cp -a --parents arch/riscv/kernel/vdso/*gettimeofday.* $kerneldir/build/ |
@@ -234,6 +243,9 @@ do_install() { | |||
234 | fi | 243 | fi |
235 | 244 | ||
236 | cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/ 2>/dev/null || : | 245 | cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/ 2>/dev/null || : |
246 | # v6.1+ | ||
247 | cp -a --parents arch/arm/kernel/asm-offsets.c $kerneldir/build/ 2>/dev/null || : | ||
248 | cp -a --parents arch/arm/kernel/signal.h $kerneldir/build/ 2>/dev/null || : | ||
237 | fi | 249 | fi |
238 | 250 | ||
239 | if [ -d arch/${ARCH}/include ]; then | 251 | if [ -d arch/${ARCH}/include ]; then |
@@ -282,15 +294,24 @@ do_install() { | |||
282 | # objtool requires these files | 294 | # objtool requires these files |
283 | cp -a --parents arch/x86/lib/inat.c $kerneldir/build/ 2>/dev/null || : | 295 | cp -a --parents arch/x86/lib/inat.c $kerneldir/build/ 2>/dev/null || : |
284 | cp -a --parents arch/x86/lib/insn.c $kerneldir/build/ 2>/dev/null || : | 296 | cp -a --parents arch/x86/lib/insn.c $kerneldir/build/ 2>/dev/null || : |
297 | |||
298 | # v6.1+ | ||
299 | cp -a --parents arch/x86/kernel/asm-offsets* $kerneldir/build || : | ||
300 | # for capabilities.h, vmx.h | ||
301 | cp -a --parents arch/x86/kvm/vmx/*.h $kerneldir/build || : | ||
302 | # for lapic.h, hyperv.h .... | ||
303 | cp -a --parents arch/x86/kvm/*.h $kerneldir/build || : | ||
285 | fi | 304 | fi |
286 | 305 | ||
306 | # moved from arch/mips to all arches for v6.1+ | ||
307 | cp -a --parents kernel/time/timeconst.bc $kerneldir/build 2>/dev/null || : | ||
308 | cp -a --parents kernel/bounds.c $kerneldir/build 2>/dev/null || : | ||
309 | |||
287 | if [ "${ARCH}" = "mips" ]; then | 310 | if [ "${ARCH}" = "mips" ]; then |
288 | cp -a --parents arch/mips/Kbuild.platforms $kerneldir/build/ | 311 | cp -a --parents arch/mips/Kbuild.platforms $kerneldir/build/ |
289 | cp --parents $(find -type f -name "Platform") $kerneldir/build | 312 | cp --parents $(find -type f -name "Platform") $kerneldir/build |
290 | cp --parents arch/mips/boot/tools/relocs* $kerneldir/build | 313 | cp --parents arch/mips/boot/tools/relocs* $kerneldir/build |
291 | cp -a --parents arch/mips/kernel/asm-offsets.c $kerneldir/build | 314 | cp -a --parents arch/mips/kernel/asm-offsets.c $kerneldir/build |
292 | cp -a --parents kernel/time/timeconst.bc $kerneldir/build | ||
293 | cp -a --parents kernel/bounds.c $kerneldir/build | ||
294 | cp -a --parents Kbuild $kerneldir/build | 315 | cp -a --parents Kbuild $kerneldir/build |
295 | cp -a --parents arch/mips/kernel/syscalls/*.sh $kerneldir/build 2>/dev/null || : | 316 | cp -a --parents arch/mips/kernel/syscalls/*.sh $kerneldir/build 2>/dev/null || : |
296 | cp -a --parents arch/mips/kernel/syscalls/*.tbl $kerneldir/build 2>/dev/null || : | 317 | cp -a --parents arch/mips/kernel/syscalls/*.tbl $kerneldir/build 2>/dev/null || : |