summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-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() {