aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-08-07 18:15:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-11 08:54:03 -0700
commit5bebaf37429c28134aeb6fd261e282e9a0397771 (patch)
treed31bfbcf25b009a2ec3de372eb977c7b2c1aaea0 /meta/classes
parentf635b9c00aa8a69130e471b9507f263a1ba081ff (diff)
downloadopenembedded-core-contrib-5bebaf37429c28134aeb6fd261e282e9a0397771.tar.gz
openembedded-core-contrib-5bebaf37429c28134aeb6fd261e282e9a0397771.tar.bz2
openembedded-core-contrib-5bebaf37429c28134aeb6fd261e282e9a0397771.zip
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(). Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass6
1 files changed, 4 insertions, 2 deletions
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/