summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarco Cavallini <koansoftware@gmail.com>2013-01-08 08:51:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-10 23:43:09 +0000
commit09ec2a4865f687ba1c3114792387e8a8cd4cd107 (patch)
tree3e32b99ecca35289fdd5398d0f8a15e2307c22ef /meta
parent608b87eb67bd6bd5dcf2c95ae021166b0dd4883b (diff)
downloadpoky-09ec2a4865f687ba1c3114792387e8a8cd4cd107.tar.gz
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 (From OE-Core rev: 4dd39a23dfe069ad34a925e00407b4dde978cb01) Signed-off-by: Marco Cavallini <m.cavallini@koansoftware.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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() {
204 rm -f $kerneldir/$entry 204 rm -f $kerneldir/$entry
205 done 205 done
206 206
207 # Fix SLANG_INC for slang.h 207 # kernels <2.6.30 don't have $kerneldir/tools directory so we check if it exists before calling sed
208 sed -i 's#-I/usr/include/slang#-I=/usr/include/slang#g' $kerneldir/tools/perf/Makefile 208 if [ -f $kerneldir/tools/perf/Makefile ]; then
209 # Fix SLANG_INC for slang.h
210 sed -i 's#-I/usr/include/slang#-I=/usr/include/slang#g' $kerneldir/tools/perf/Makefile
211 fi
209} 212}
210 213
211sysroot_stage_all_append() { 214sysroot_stage_all_append() {