diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2015-08-07 18:15:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-11 08:54:03 -0700 |
commit | 5bebaf37429c28134aeb6fd261e282e9a0397771 (patch) | |
tree | d31bfbcf25b009a2ec3de372eb977c7b2c1aaea0 /meta/classes/kernel.bbclass | |
parent | f635b9c00aa8a69130e471b9507f263a1ba081ff (diff) | |
download | openembedded-core-5bebaf37429c28134aeb6fd261e282e9a0397771.tar.gz openembedded-core-5bebaf37429c28134aeb6fd261e282e9a0397771.tar.bz2 openembedded-core-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/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 6 |
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/ |