From fc03e2be0b4470748a8b7707cea7293303adc424 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 30 Jan 2009 12:17:57 +0100 Subject: kernel.bbclass: move initramfs stuff to configure so we can do postprocessing on it with do_configure_append --- classes/kernel.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index d1f59e5e84..86f00da5cf 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -74,9 +74,6 @@ UBOOT_ENTRYPOINT ?= "20008000" UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" kernel_do_compile() { - if [ ! -z "${INITRAMFS_IMAGE}" ]; then - cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz" initramfs.cpio.gz - fi unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then @@ -188,7 +185,10 @@ kernel_do_install() { } kernel_do_configure() { - yes '' | oe_runmake oldconfig + yes '' | oe_runmake oldconfig + if [ ! -z "${INITRAMFS_IMAGE}" ]; then + cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz" initramfs.cpio.gz + fi } do_menuconfig() { -- cgit v1.2.3