aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kexecboot/kexecboot.inc
blob: 3f37f9e72035d5439268dfb5d32c5350f9e37251 (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
51
52
53
54
55
LICENSE = "GPL"

DEPENDS = "klibc"
RDEPENDS_${PN} = "kexec-klibc-static"

inherit autotools

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

SRC_URI += "file://logo-img.h \
        file://logo.png \
        "

export CC=${TARGET_PREFIX}klcc

# Defaults as in ver 0.5+0.6b
# --with_static_linking=no
# --with_fbmenu=yes
# --with_cfgfiles=yes
# --with_icons=yes
# --with_zaurus=no
# --with_zimage=yes
# --with_uimage=no
# --with_machine_kernel=no
# --enable_devices_recreating="yes"
# --enable_debug="no"
# --enable_host_debug="no"

EXTRA_OECONF_akita = "--with-zaurus"
EXTRA_OECONF_c7x0 = "--with-zaurus"
EXTRA_OECONF_spitz = "--with-zaurus"
EXTRA_OECONF_poodle = "--with-zaurus"
EXTRA_OECONF_tosa = "--with-zaurus"

EXTRA_OECONF_omap3 = "--with-uimage"

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
}