diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-15 01:01:02 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-15 01:01:02 +0000 |
commit | b8e0c83bc18cb1ca8740c44b25ff910ab16681f2 (patch) | |
tree | 8fa20091670014f7b0049702d9eb069560dc4d59 /packages/initrdscripts | |
parent | 8d0d4e75d147f819f4ddedcb888e66650d90d61b (diff) |
initramfs-image-ipk: Package initramfs into package.
* Go badass with recursive bitbake invocation idea expressed on ML.
* It works! But don't try with BB_NUMBER_THREADS > 1 or at home.
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r-- | packages/initrdscripts/initramfs-image-ipk_1.0.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/initrdscripts/initramfs-image-ipk_1.0.bb b/packages/initrdscripts/initramfs-image-ipk_1.0.bb new file mode 100644 index 0000000000..8c79c24478 --- /dev/null +++ b/packages/initrdscripts/initramfs-image-ipk_1.0.bb @@ -0,0 +1,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}" |