summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorMarco Cavallini <koansoftware@gmail.com>2013-01-08 08:51:44 +0100
committerSaul Wold <sgw@linux.intel.com>2013-01-09 16:40:35 -0800
commit4dd39a23dfe069ad34a925e00407b4dde978cb01 (patch)
treebd97d398abb0f247675e57506ac39635f747efc7 /meta
parent0a2cd2d63ebbafff935e923091ac82aaf4142244 (diff)
downloadopenembedded-core-4dd39a23dfe069ad34a925e00407b4dde978cb01.tar.gz
openembedded-core-4dd39a23dfe069ad34a925e00407b4dde978cb01.tar.bz2
openembedded-core-4dd39a23dfe069ad34a925e00407b4dde978cb01.zip
kernel.bbclass: kernel_do_install fails with kernel <2.6.30
* kernels <2.6.30 don't have $kerneldir/tools directory * so we got this error: * sed: can't read ...SNIP...linux/2.6.30-r0/image/usr/src/kernel/tools/perf/Makefile: No such file or directory * ERROR: Function failed: do_install Signed-off-by: Marco Cavallini <m.cavallini@koansoftware.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 96b23bc340..aff8842b7e 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -204,8 +204,11 @@ kernel_do_install() {
rm -f $kerneldir/$entry
done
- # Fix SLANG_INC for slang.h
- sed -i 's#-I/usr/include/slang#-I=/usr/include/slang#g' $kerneldir/tools/perf/Makefile
+ # kernels <2.6.30 don't have $kerneldir/tools directory so we check if it exists before calling sed
+ if [ -f $kerneldir/tools/perf/Makefile ]; then
+ # Fix SLANG_INC for slang.h
+ sed -i 's#-I/usr/include/slang#-I=/usr/include/slang#g' $kerneldir/tools/perf/Makefile
+ fi
}
sysroot_stage_all_append() {