summaryrefslogtreecommitdiff
path: root/packages/kexecboot/initramfs_kexecboot_1.0.bb
blob: e1337419b842ae2a1f3fe31c1bc08a0ea93273b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DESCRIPTON = "A init script that mounts a device and kexecs a new kernel from it."
PR = "r6"
RDEPENDS = "kexecboot"
do_compile() {
        cat > init.sh << EOF
#!/bin/sh
/bin/mount -t proc proc /proc
/usr/bin/kexecboot -a 270 -i /dev/event0
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"