summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-01-30 12:17:57 +0100
committerKoen Kooi <koen@openembedded.org>2009-01-30 12:17:57 +0100
commitfc03e2be0b4470748a8b7707cea7293303adc424 (patch)
treec8e5562ccb67d88f1e65ebed6383eb7b21bc85ab /classes
parent2a50d925239d80b70dc0c74c5809a8c4ebf12a8e (diff)
kernel.bbclass: move initramfs stuff to configure so we can do postprocessing on it with do_configure_append
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.bbclass8
1 files 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() {