summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 25bb44859b..3963e38eb8 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -174,6 +174,10 @@ kernel_do_install() {
174 scripts/basic/fixdep scripts/basic/hash scripts/dtc/dtc \ 174 scripts/basic/fixdep scripts/basic/hash scripts/dtc/dtc \
175 scripts/genksyms/genksyms scripts/kconfig/conf scripts/mod/mk_elfconfig \ 175 scripts/genksyms/genksyms scripts/kconfig/conf scripts/mod/mk_elfconfig \
176 scripts/mod/modpost" 176 scripts/mod/modpost"
177 rm -rf $kerneldir/scripts/*.o
178 rm -rf $kerneldir/scripts/basic/*.o
179 rm -rf $kerneldir/scripts/kconfig/*.o
180 rm -rf $kerneldir/scripts/mod/*.o
177 for entry in $bin_files; do 181 for entry in $bin_files; do
178 rm -f $kerneldir/$entry 182 rm -f $kerneldir/$entry
179 done 183 done
@@ -214,11 +218,15 @@ EXPORT_FUNCTIONS do_compile do_install do_configure
214 218
215# kernel-base becomes kernel-${KERNEL_VERSION} 219# kernel-base becomes kernel-${KERNEL_VERSION}
216# kernel-image becomes kernel-image-${KERNEL_VERISON} 220# kernel-image becomes kernel-image-${KERNEL_VERISON}
217PACKAGES = "kernel kernel-base kernel-image kernel-dev kernel-vmlinux" 221PACKAGES = "kernel kernel-base kernel-image kernel-dev kernel-vmlinux kernel-misc kernel-dbg"
218FILES = "" 222FILES = ""
219FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" 223FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*"
220FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config*" 224FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config*"
221FILES_kernel-vmlinux = "/boot/vmlinux*" 225FILES_kernel-vmlinux = "/boot/vmlinux*"
226# misc is a package to contain files we need in staging
227FILES_kernel-misc = "/kernel/include/config /kernel/scripts /kernel/drivers/crypto /kernel/drivers/media"
228# We don't care about dbg files for the kernel but split them out here to keep the packaging clean
229FILES_kernel-dbg = "/lib/modules/${KERNEL_VERSION}/kernel/*/*/.debug /lib/modules/${KERNEL_VERSION}/kernel/*/.debug /lib/modules/${KERNEL_VERSION}/kernel/*/*/*/.debug"
222RDEPENDS_kernel = "kernel-base" 230RDEPENDS_kernel = "kernel-base"
223# Allow machines to override this dependency if kernel image files are 231# Allow machines to override this dependency if kernel image files are
224# not wanted in images as standard 232# not wanted in images as standard