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.bbclass15
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5e8b6cf343..ee3e9a0d94 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -309,9 +309,18 @@ do_shared_workdir () {
309 cp -fR include/generated/* $kerneldir/include/generated/ 309 cp -fR include/generated/* $kerneldir/include/generated/
310 fi 310 fi
311 311
312 if [ -d arch/${ARCH}/include/generated ]; then 312 # When ARCH is set to i386 or x86_64, we need to map ARCH to the real name of src
313 mkdir -p $kerneldir/arch/${ARCH}/include/generated/ 313 # dir (x86) under arch/ of kenrel tree, so that we can find correct source to copy.
314 cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ 314
315 if [ "${ARCH}" = "i386" ] || [ "${ARCH}" = "x86_64" ]; then
316 KERNEL_SRCARCH=x86
317 else
318 KERNEL_SRCARCH=${ARCH}
319 fi
320
321 if [ -d arch/${KERNEL_SRCARCH}/include/generated ]; then
322 mkdir -p $kerneldir/arch/${KERNEL_SRCARCH}/include/generated/
323 cp -fR arch/${KERNEL_SRCARCH}/include/generated/* $kerneldir/arch/${KERNEL_SRCARCH}/include/generated/
315 fi 324 fi
316} 325}
317 326