diff options
author | Liang Li <liang.li@windriver.com> | 2012-08-22 16:02:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-25 14:44:00 +0100 |
commit | 4e0daf05ed04e9fb4343032c6290a379f53b89f3 (patch) | |
tree | 50e7b3d44ea217eb6507485625651c20bba0a637 /meta/classes | |
parent | 20e2aaacb36113604c4ea7c40dd0bbbf224b8360 (diff) | |
download | openembedded-core-4e0daf05ed04e9fb4343032c6290a379f53b89f3.tar.gz openembedded-core-4e0daf05ed04e9fb4343032c6290a379f53b89f3.tar.bz2 openembedded-core-4e0daf05ed04e9fb4343032c6290a379f53b89f3.zip |
kernel.bbclass: fix INC directory for SLANG
In the kernel's tools/perf/Makefile CFLAGS was previously hard coded to
contain "-I/usr/include/slang" to work with hosts that have
"/usr/include/slang/slang.h" as well as hosts that have
"/usr/include/slang.h". This path can cause compile warnings like:
cc1: warning: '/usr/include/slang' doesn't exists.
or
cc1: warning: include location "/usr/include/slang" is unsafe for
cross-compilation [-Wpoison-system-directories]
Then in some cases warnings become errors if WERROR is enabled hence
build errors.
In coordination with a kernel fix, we can fix this error for all
kernels by modifying the perf Makefile within the staged kernel
source.
Signed-off-by: Liang Li <liang.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index f34e63263a..fdef1bea97 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -204,6 +204,9 @@ kernel_do_install() { for entry in $bin_files; do 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 } sysroot_stage_all_append() { |