summaryrefslogtreecommitdiff
path: root/packages/kexecboot/kexecboot_0.4.bb
blob: 4eed4d048288fcef3d5b08db4711afff18d85258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
LICENSE = "GPL"
PR = "r4"
DEPENDS = "klibc"
RDEPENDS = "kexec-static"

inherit autotools

# You can create your own *-img.h by doing
# ./make-image-header.sh <file>.png HAND

SRC_URI = "http://projects.linuxtogo.org/~jay7/kexecboot-${PV}.tar.gz \
	file://add-reboot-option.patch;patch=1 \
	file://scan_devices-top.patch;patch=1 \
	file://graphical-no-devices.patch;patch=1 \
	file://switch-cursor-off.patch;patch=1 \
	file://add-sleep.patch;patch=1 \
	file://silent-output-hack.patch;patch=1 \
	file://kexecboot-tosa.patch;patch=1 \
	file://fb-render-16bit.patch;patch=1 \
	file://logo-img.h \
	file://logo.png \
	"

S = "${WORKDIR}/kexecboot-${PV}"

export CC=${TARGET_PREFIX}klcc

# standard oe cflags don't work with klcc
export CFLAGS = ""
export CPPFLAGS = ""
export LDFLAGS = ""

do_configure_prepend () {
    install -m 0644 ${WORKDIR}/logo-img.h ${S}/res/
    install -m 0644 ${WORKDIR}/logo.png ${S}/res/
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 kexecboot ${D}${bindir}/

	install -d ${D}/proc
	install -d ${D}/mnt
}

FILES_${PN} += " ${bindir}/kexecboot /init /proc /mnt"

pkg_postinst_${PN} () {
	ln -sf ${bindir}/kexecboot $D/init
}