blob: ff5e603183f0ead0b84e12960611712e5a4e4b21 (
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
56
57
58
59
60
61
|
LICENSE = "GPL"
# You can create your own *-img.h by doing
# ./make-image-header.sh <file>.png HAND
# Defaults as in ver 0.5+0.6b
SRC_URI += "file://logo-img.h file://logo.png"
inherit autotools
#############################
# Configure options:
#
# --enable-static-linking compile kexecboot as static executable [default=no]
# --enable-fbui support framebuffer menu [default=yes]
# --enable-cfgfiles support config files [default=yes]
# --enable-icons support custom icons (depends on fbui) [default=yes]
# --enable-zaurus compile Sharp Zaurus specific code [default=no]
# --enable-zimage compile with zImage support [default=yes]
# --enable-uimage compile with uImage support [default=no]
# --enable-machine-kernel look for machine-specific zImage kernel [default=no]
# --enable-devices-recreating
# enable devices re-creating [default=yes]
# --enable-debug enable debug output [default=no]
# --enable-host-debug allow for non-destructive executing of kexecboot on
# host system [default=no]
# --enable-bg-buffer enable buffer for pre-drawed FB GUI background
# [default=no]
# --enable-timeout allow to boot 1st kernel after timeout in seconds
# [default=no]
# --enable-bpp enable support of specified bpp modes
# (all,32,24,18,16,4,2,1) [default=all]
############################
EXTRA_OECONF_akita = "--enable-zaurus"
EXTRA_OECONF_c7x0 = "--enable-zaurus"
EXTRA_OECONF_spitz = "--enable-zaurus"
EXTRA_OECONF_poodle = "--enable-zaurus"
EXTRA_OECONF_tosa = "--enable-zaurus"
EXTRA_OECONF_omap3 = "--enable-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
}
# The binary itself is not machine-specific
# but the EXTRA_OECONF overrides have this effect
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILES_${PN} += " ${bindir}/kexecboot /init /proc /mnt"
pkg_postinst_${PN} () {
ln -sf ${bindir}/kexecboot $D/init
}
|