diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-28 11:45:45 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-28 11:45:45 +0000 |
commit | c746035e93fbf5e834252a98ca4ad6ea3193f609 (patch) | |
tree | b8fd93001e92b31f9669e86429a5833e98c4fcf5 | |
parent | a5a529f7e8855b28ac80a0854ebde5efd13afe6d (diff) |
linux-handhelds-2.6: Add support for building kernel with internal initramfs
* KERNEL_INITRAMFS_PATH should be set to teh full path of cpio.gz image of
initramfs. It is assumed to be built with OE as previous step, so usually
points to deploy dir.
-rw-r--r-- | packages/linux/linux-handhelds-2.6.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/linux/linux-handhelds-2.6.inc b/packages/linux/linux-handhelds-2.6.inc index a0aec9cb36..845c11d7d6 100644 --- a/packages/linux/linux-handhelds-2.6.inc +++ b/packages/linux/linux-handhelds-2.6.inc @@ -54,6 +54,16 @@ do_configure() { } +do_compile_prepend() { + if [ -n "${KERNEL_INITRAMFS_PATH}" -a "${ANGSTROM_MODE}" == "glibc" ]; then + if [ ! -f ${KERNEL_INITRAMFS_PATH} ]; then + echo "${KERNEL_INITRAMFS_PATH} does not exist, you may need to bitbake it separately" + exit 1 + fi + cp ${KERNEL_INITRAMFS_PATH} usr/initramfs_data.cpio.gz + fi +} + do_deploy() { install -d ${DEPLOY_DIR_IMAGE} install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_FILENAME} |