From 572abc3fdd1076ca35d8c15d269cc9d862101805 Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Wed, 30 Dec 2009 23:29:53 +0100 Subject: kernel.bbclass: copy gz, lzo, lzma initramfs cpio images. - since 2.6.30 there is choice between gzip and lzma for the initramfs.cpio - in patchwork there are pending patches for lzo compressor, so we add lzo too - patch is only concerning initramfs images --- classes/kernel.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 069dcebf3d..83530b5a5e 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -208,8 +208,12 @@ kernel_do_install() { kernel_do_configure() { yes '' | oe_runmake oldconfig if [ ! -z "${INITRAMFS_IMAGE}" ]; then - cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz" initramfs.cpio.gz - fi + for img in cpio.gz cpio.lzo cpio.lzma; do + if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then + cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" initramfs.$img + fi + done + fi } do_menuconfig() { -- cgit v1.2.3 From 876b2550d343bf0bcbb8f7c708b14fae5d4ae62d Mon Sep 17 00:00:00 2001 From: Guo Hongruan Date: Sat, 2 Jan 2010 17:28:37 +0800 Subject: Add mips entry for linux-uclibc into package_qa_get_machine_dict of insane.bbclass * Without it the insance check will fail due to key miss exception. Signed-off-by: Guo Hongruan --- classes/insane.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'classes') diff --git a/classes/insane.bbclass b/classes/insane.bbclass index 495c3a53aa..804caf06ee 100644 --- a/classes/insane.bbclass +++ b/classes/insane.bbclass @@ -61,6 +61,7 @@ def package_qa_get_machine_dict(): "i486": ( 3, 0, 0, True, True), "i586": ( 3, 0, 0, True, True), "i686": ( 3, 0, 0, True, True), + "mips": ( 8, 0, 0, False, True), "mipsel": ( 8, 0, 0, True, True), "avr32": (6317, 0, 0, False, True), "sh4": (42, 0, 0, True, True), -- cgit v1.2.3