[oe-commits] org.oe.dev linux-handhelds-2.6: Add support for building kernel with internal initramfs

pfalcon commit openembedded-commits at lists.openembedded.org
Thu Feb 28 21:05:10 UTC 2008


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.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 8ea8e071c8d057237405f43daa72c329e628562e
ViewMTN: http://monotone.openembedded.org/revision/info/8ea8e071c8d057237405f43daa72c329e628562e
Files:
1
packages/linux/linux-handhelds-2.6.inc
Diffs:

#
# mt diff -r426593a82e0d28c97814199d46d83668c78063bf -r8ea8e071c8d057237405f43daa72c329e628562e
#
# 
# 
# patch "packages/linux/linux-handhelds-2.6.inc"
#  from [a212a1e08710b140bd482d9538939be6fed39bab]
#    to [b761bc283eb28d9f018764f3ca504f8e1ea6972d]
# 
============================================================
--- packages/linux/linux-handhelds-2.6.inc	a212a1e08710b140bd482d9538939be6fed39bab
+++ packages/linux/linux-handhelds-2.6.inc	b761bc283eb28d9f018764f3ca504f8e1ea6972d
@@ -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}






More information about the Openembedded-commits mailing list