diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 12:02:04 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 12:02:04 +0100 |
commit | 708db1ef52a49098a0ab7972211b9beac74d7654 (patch) | |
tree | f82a714d000af054c1bcfc8930849fedc39a9b20 /meta/classes | |
parent | f25d26de776f9927e1d2c92f031085a9b9323087 (diff) | |
download | poky-708db1ef52a49098a0ab7972211b9beac74d7654.tar.gz |
kernel.bbclass: Clean up kernel packaging output
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel.bbclass | 10 |
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} |
217 | PACKAGES = "kernel kernel-base kernel-image kernel-dev kernel-vmlinux" | 221 | PACKAGES = "kernel kernel-base kernel-image kernel-dev kernel-vmlinux kernel-misc kernel-dbg" |
218 | FILES = "" | 222 | FILES = "" |
219 | FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" | 223 | FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" |
220 | FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config*" | 224 | FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config*" |
221 | FILES_kernel-vmlinux = "/boot/vmlinux*" | 225 | FILES_kernel-vmlinux = "/boot/vmlinux*" |
226 | # misc is a package to contain files we need in staging | ||
227 | FILES_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 | ||
229 | FILES_kernel-dbg = "/lib/modules/${KERNEL_VERSION}/kernel/*/*/.debug /lib/modules/${KERNEL_VERSION}/kernel/*/.debug /lib/modules/${KERNEL_VERSION}/kernel/*/*/*/.debug" | ||
222 | RDEPENDS_kernel = "kernel-base" | 230 | RDEPENDS_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 |