blob: ac1d0555d818ee50696eff2dc29ae3dfd821f89d (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
DESCRIPTION = "Bootlogo support"
SECTION = "base"
PRIORITY = "required"
LICENSE = "proprietary"
IMAGES_VERSION = "1"
BINARY_VERSION = "7"
PV = "${BINARY_VERSION}.${IMAGES_VERSION}"
PR = "r5"
KERNEL_VERSION = "${@base_contains('PREFERRED_VERSION_linux-${MACHINE}', '2.6.18', '2.6.18', '3.1.1', d)}"
SRC_URI = "file://bootlogo.mvi file://backdrop.mvi file://bootlogo_wait.mvi file://switchoff.mvi"
SRC_URI_append_vuuno = " file://splash_cfe_auto.bin"
SRC_URI_append_vuultimo = " file://splash_cfe_auto.bin"
S = "${WORKDIR}/"
MVI = "bootlogo backdrop bootlogo_wait"
do_install() {
install -d ${D}/boot
install -d ${D}/usr/share
for i in ${MVI}; do
install -m 0755 ${S}/$i.mvi ${D}/usr/share/$i.mvi;
ln -sf /usr/share/$i.mvi ${D}/boot/$i.mvi;
done;
}
do_install_vuuno() {
install -d ${D}/boot
install -d ${D}/usr/share
for i in ${MVI}; do
install -m 0755 ${S}/$i.mvi ${D}/usr/share/$i.mvi;
ln -sf /usr/share/$i.mvi ${D}/boot/$i.mvi;
done;
install -m 0755 ${S}/splash_cfe_auto.bin ${D}/boot/splash_cfe_auto.bin
}
do_install_vuultimo() {
install -d ${D}/boot
install -d ${D}/usr/share
for i in ${MVI}; do
install -m 0755 ${S}/$i.mvi ${D}/usr/share/$i.mvi;
ln -sf /usr/share/$i.mvi ${D}/boot/$i.mvi;
done;
install -m 0755 ${S}/splash_cfe_auto.bin ${D}/boot/splash_cfe_auto.bin
}
pkg_preinst() {
if [ "${KERNEL_VERSION}" = "3.1.1" ]; then
[ -d /proc/stb ] && mount -o rw,remount /boot
fi
}
pkg_postinst() {
if [ "${KERNEL_VERSION}" = "3.1.1" ]; then
[ -d /proc/stb ] && mount -o ro,remount /boot
fi
}
pkg_prerm() {
if [ "${KERNEL_VERSION}" = "3.1.1" ]; then
[ -d /proc/stb ] && mount -o rw,remount /boot
fi
}
pkg_postrm() {
if [ "${KERNEL_VERSION}" = "3.1.1" ]; then
[ -d /proc/stb ] && mount -o ro,remount /boot
fi
}
PACKAGE_ARCH := "${MACHINE_ARCH}"
FILES_${PN} = "/boot /usr/share"
|