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 09:28:50 -0700 |
commit | 61fe46da9235925cffd0c1a4123a34d2631e1f59 (patch) | |
tree | 256f717e0e2ee1c4918233a9615a74b6dc609cd9 /meta/classes | |
parent | f820d0275f25917a4e279da3637a0d4cbd02c1ad (diff) | |
download | poky-61fe46da9235925cffd0c1a4123a34d2631e1f59.tar.gz |
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 <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 () { | |||
300 | cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o | 300 | cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o |
301 | fi | 301 | fi |
302 | 302 | ||
303 | mkdir -p $kerneldir/include/generated/ | 303 | if [ -d include/generated ]; then |
304 | cp -fR include/generated/* $kerneldir/include/generated/ | 304 | mkdir -p $kerneldir/include/generated/ |
305 | cp -fR include/generated/* $kerneldir/include/generated/ | ||
306 | fi | ||
305 | 307 | ||
306 | if [ -d arch/${ARCH}/include/generated ]; then | 308 | if [ -d arch/${ARCH}/include/generated ]; then |
307 | mkdir -p $kerneldir/arch/${ARCH}/include/generated/ | 309 | mkdir -p $kerneldir/arch/${ARCH}/include/generated/ |