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, 7 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 7dc9cc6e42..386b05e57a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -159,6 +159,13 @@ kernel_do_install() {
159 find $kerneldir -path $kerneldir/scripts -prune -o -name "*.[csS]" -exec rm '{}' \; 159 find $kerneldir -path $kerneldir/scripts -prune -o -name "*.[csS]" -exec rm '{}' \;
160 find $kerneldir/Documentation -name "*.txt" -exec rm '{}' \; 160 find $kerneldir/Documentation -name "*.txt" -exec rm '{}' \;
161 161
162 # As of Linux kernel version 3.0.1, the clean target removes
163 # arch/powerpc/lib/crtsavres.o which is present in
164 # KBUILD_LDFLAGS_MODULE, making it required to build external modules.
165 if [ ${ARCH} = "powerpc" ]; then
166 cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
167 fi
168
162 # Remove the following binaries which cause strip errors 169 # Remove the following binaries which cause strip errors
163 # during do_package for cross-compiled platforms 170 # during do_package for cross-compiled platforms
164 bin_files="arch/powerpc/boot/addnote arch/powerpc/boot/hack-coff \ 171 bin_files="arch/powerpc/boot/addnote arch/powerpc/boot/hack-coff \