summaryrefslogtreecommitdiff
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorScott Garman <sgarman@zenlinux.com>2010-05-23 20:55:04 -0700
committerJoshua Lock <josh@linux.intel.com>2010-05-24 10:34:40 +0100
commitae9174ef539264e9321826277a57d902147b4fd9 (patch)
treeb5ca2061ce4a8ee65364148c19477caee64e3f26 /meta/classes/kernel.bbclass
parent5bec733fb1542f300e039e60ffb97e346e97ed35 (diff)
downloadopenembedded-core-ae9174ef539264e9321826277a57d902147b4fd9.tar.gz
openembedded-core-ae9174ef539264e9321826277a57d902147b4fd9.tar.bz2
openembedded-core-ae9174ef539264e9321826277a57d902147b4fd9.zip
kernel.bbclass: Stop staging binaries within scripts/
* Preserves scripts/ directory but excludes binaries known to cause "strip command failed" errors during do_package on cross platforms Signed-off-by: Scott Garman <sgarman@zenlinux.com>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 64c8a94d64..0de4dfbef0 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -189,6 +189,12 @@ kernel_do_install() {
[ -e Module.symvers ] && install -m 0644 Module.symvers $kerneldir/
cp -fR scripts $kerneldir/
+
+ # Remove the following binaries which cause strip errors
+ # during do_package for cross-compiled platforms
+ for entry in bin2c conmakehash ihex2fw kallsyms pnmtologo basic/docproc basic/fixdep basic/hash genksyms/genksyms kconfig/conf mod/mk_elfconfig mod/modpost; do
+ rm -f $kerneldir/scripts/$entry
+ done
}
sysroot_stage_all_append() {