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