summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/initramfs-image-ipk_1.0.bb
blob: 8c79c2447850f80cd3d266af1ee21363add748d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
DESCRIPTION = "Boot initramfs as a package"
PR = "r1"

do_compile() {
	cd ${TOPDIR}; DISTRO=${USERDISTRO} MACHINE=${MACHINE} ANGSTROM_MODE=uclibc IMAGE_FSTYPES=cpio.gz DEPLOY_TO=${D}/boot/initramfs.bin bitbake initramfs-image
}

do_install() {
	install -d ${D}/boot/
	cd ${TOPDIR}; DISTRO=${USERDISTRO} MACHINE=${MACHINE} ANGSTROM_MODE=uclibc IMAGE_FSTYPES=cpio.gz DEPLOY_TO=${D}/boot/initramfs.bin bitbake initramfs-image -c deploy_to
}

FILES_${PN} += "/boot/*"

PACKAGE_ARCH = "${MACHINE_ARCH}"