[oe-commits] org.oe.dev linux-handhelds-2.6: Use official external interface for initramfs addition.

pfalcon commit oe at amethyst.openembedded.net
Mon Mar 17 08:54:33 UTC 2008


linux-handhelds-2.6: Use official external interface for initramfs addition.
* I.e., CONFIG_INITRAMFS_SOURCE. Instead of neat, but still hack of dropping
initramfs where kernel Makefile expects it - this was reported to not work
under some unknown circumstances.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 38f9432c595bce2786e31909b48e40b52b697bb0
ViewMTN: http://monotone.openembedded.org/revision/info/38f9432c595bce2786e31909b48e40b52b697bb0
Files:
1
packages/linux/linux-handhelds-2.6.inc
packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb
Diffs:

#
# mt diff -r478c13f37cd870d9bbc551cd4d7b43ee8c795195 -r38f9432c595bce2786e31909b48e40b52b697bb0
#
#
#
# patch "packages/linux/linux-handhelds-2.6.inc"
#  from [70d018f15aa5f5a88cbad6314c69d71719eb911f]
#    to [98a6f0f9f040fedbfaf3ba13c0c39685da9f4c34]
# 
# patch "packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb"
#  from [1fe13d52ca457feb5a103d0b1ccbce114ec04797]
#    to [77d66be7e651da29ca286c2f28474b976270f746]
#
============================================================
--- packages/linux/linux-handhelds-2.6.inc	70d018f15aa5f5a88cbad6314c69d71719eb911f
+++ packages/linux/linux-handhelds-2.6.inc	98a6f0f9f040fedbfaf3ba13c0c39685da9f4c34
@@ -37,6 +37,11 @@ do_configure() {
 		die "No default configuration for ${MACHINE} available."
 	fi
 
+	if [ -n "${KERNEL_INITRAMFS_PATH}" -a "${ANGSTROM_MODE}" = "glibc" ]; then
+		# Kernel expects non-compressed cpio
+		gzip -d -c ${KERNEL_INITRAMFS_PATH} >${WORKDIR}/initramfs.cpio
+		echo "CONFIG_INITRAMFS_SOURCE=\"${WORKDIR}/initramfs.cpio\"" >> ${S}/.config
+	fi
 
 	if [ "${TARGET_OS}" == "linux-gnueabi" -o  "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then
 		echo "CONFIG_AEABI=y"                   >> ${S}/.config
@@ -48,26 +53,13 @@ do_configure() {
 
 	sed 	-e '/CONFIG_AEABI/d' \
 		-e '/CONFIG_OABI_COMPAT=/d' \
+		-e '/CONFIG_INITRAMFS_SOURCE=/d' \
 		'${WORKDIR}/defconfig' >>'${S}/.config'
 
 	yes '' | oe_runmake oldconfig
 
 }
 
-do_compile_prepend() {
-	# Clean up any stale initramfs archive
-	rm -f usr/initramfs_data.cpio.gz
-	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
-	    # touch is for broken Koen's cp
-	    touch 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}
============================================================
--- packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb	1fe13d52ca457feb5a103d0b1ccbce114ec04797
+++ packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb	77d66be7e651da29ca286c2f28474b976270f746
@@ -1,7 +1,7 @@ LICENSE = "GPL"
 SECTION = "kernel"
 DESCRIPTION = "handhelds.org Linux kernel 2.6 for PocketPCs and other consumer handheld devices."
 LICENSE = "GPL"
-PR = "r18"
+PR = "r19"
 
 DEFAULT_PREFERENCE = "-1"
 






More information about the Openembedded-commits mailing list