summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-02-05 22:02:19 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-02-05 22:02:19 +0000
commitde5b1670c799cf809b769a58b99bb628aeb75265 (patch)
treeb51d96454cf4883b47ff4fcff9a9f485d3c81e2e /packages
parent1f7c6d8be208f0f5316a52c5954b1ac2746c450c (diff)
initramfs-kexec: initial commit. partly closes 3739.
Diffstat (limited to 'packages')
-rw-r--r--packages/initrdscripts/initramfs-kexec_1.0.bb25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/initrdscripts/initramfs-kexec_1.0.bb b/packages/initrdscripts/initramfs-kexec_1.0.bb
new file mode 100644
index 0000000000..b5bf497f37
--- /dev/null
+++ b/packages/initrdscripts/initramfs-kexec_1.0.bb
@@ -0,0 +1,25 @@
+DESCRIPTON = "A init script that mounts a device and kexecs a new kernel from it."
+PR = "r3"
+
+do_compile() {
+ cat > init.sh << EOF
+#!/bin/sh
+/bin/mount -t proc proc /proc
+/bin/mount -t ${ROOTFS} /dev/${ROOTDEV} /mnt
+/usr/sbin/kexec -l /mnt/zImage
+/usr/sbin/kexec -e
+EOF
+}
+
+do_install() {
+ install -m 0755 ${S}/init.sh ${D}/init
+ install -d ${D}/proc
+ install -d ${D}/mnt
+}
+
+PACKAGE_ARCH = "all"
+
+FILES_${PN} = "/init /proc /mnt"
+
+ROOTDEV = "mtdblock2"
+ROOTFS = "jffs2"