From 61fe46da9235925cffd0c1a4123a34d2631e1f59 Mon Sep 17 00:00:00 2001 From: Andre McCurdy Date: Fri, 7 Aug 2015 18:15:21 -0700 Subject: kernel.bbclass: dont assume ${B}/include/generated exists Older kernels (e.g. 2.6.32) don't create an include/generated directory, so check that the directory exists before trying to copy files from it in do_shared_workdir(). (From OE-Core rev: 5bebaf37429c28134aeb6fd261e282e9a0397771) Signed-off-by: Andre McCurdy Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/kernel.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'meta/classes') diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index d06f6cfe2a..5318b5febe 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -300,8 +300,10 @@ do_shared_workdir () { cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o fi - mkdir -p $kerneldir/include/generated/ - cp -fR include/generated/* $kerneldir/include/generated/ + if [ -d include/generated ]; then + mkdir -p $kerneldir/include/generated/ + cp -fR include/generated/* $kerneldir/include/generated/ + fi if [ -d arch/${ARCH}/include/generated ]; then mkdir -p $kerneldir/arch/${ARCH}/include/generated/ -- cgit v1.2.3-54-g00ecf