http://bugs.openembedded.org/show_bug.cgi?id=1208
Summary: New bbclass - initramfs
Product: Openembedded
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Here's a new bbclass I have created which I am using to generate an initramfs
cpio archive. A lot of it was ripped from image_ipk, but it seems to be working
ok for me. Perhaps it would be a useful addition to the repo... after someone
checks it through and corects all my horrtible mistakes ;)
#-------------------------
inherit rootfs_ipk
# We need to follow RDEPENDS and RRECOMMENDS for images
BUILD_ALL_DEPS = "1"
# Images are generally built explicitly, do not need to be part of world.
EXCLUDE_FROM_WORLD = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
IMAGE_PREPROCESS_COMMAND ?= ""
IMAGE_POSTPROCESS_COMMAND ?= ""
fakeroot do_rootfs () {
set -x
rm -rf ${IMAGE_ROOTFS}
real_do_rootfs
rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/lists/oe
${IMAGE_PREPROCESS_COMMAND}
export TOPDIR=${TOPDIR}
install -d ${DEPLOY_DIR_IMAGE}
cd ${IMAGE_ROOTFS}
find . | cpio -o -H newc | gzip -9 > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}
${IMAGE_POSTPROCESS_COMMAND}
}
#--------------------
# And an example of it's usage:
DESCRIPTION = "STV boot image"
MAINTAINER = "STV <[EMAIL PROTECTED]>"
HOMEPAGE = "http://thekirk.homeip.net"
LICENSE = "?????"
PR = "r0"
inherit initramfs
SRC_URI = "file://stv720.eti \
file://init"
DEPENDS = "task-stv"
RDEPENDS = "stv-initramfs-depends"
export IMAGE_BASENAME = "stv-initramfs"
export IMAGE_LINGUAS = ""
export IPKG_INSTALL = "${RDEPENDS}"
export IMAGE_ROOTFS = ${TMPDIR}/initramfs
IMAGE_PREPROCESS_COMMAND += "install -m 0755 ${WORKDIR}/init ${IMAGE_ROOTFS};"
IMAGE_POSTPROCESS_COMMAND += "cat ${WORKDIR}/stv720.eti >>
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME};"
IMAGE_POSTPROCESS_COMMAND += "echo ${IMAGE_NAME} >
${STAGING_DIR}/stv-initramfs-name;"
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe