recipes/dreambox/dreambox-dvb-modules.bb: update dm800/dm8000/dm500hd hardware drivers
[openembedded.git] / recipes / dreambox / dreambox-dvb-modules.bb
1 DESCRIPTION = "Hardware drivers for Dreambox"
2 SECTION = "base"
3 PRIORITY = "required"
4 LICENSE = "proprietary"
5 MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
6 #RDEPENDS_dm8000 = "dreambox-secondstage"
7 RDEPENDS_dm800 = "dreambox-secondstage"
8 RDEPENDS_dm500hd = "dreambox-secondstage"
9
10 KV_dm7020 = "2.6.9"
11 PV_dm7020 = "${KV}-20060622"
12
13 KV_dm600pvr = "2.6.12"
14 PV_dm600pvr = "${KV}-20090430"
15
16 KV_dm500plus = "2.6.12"
17 PV_dm500plus = "${KV}-20080822"
18
19 KV_dm7025 = "2.6.32-dm7025"
20 PV_dm7025 = "${KV}-20100303"
21
22 KV_dm500hd = "${@base_contains('PREFERRED_VERSION_linux-dm500hd', '2.6.18', '2.6.18-7.3-dm500hd', '2.6.30-dm500hd', d)}"
23 PV_dm500hd = "${KV}-${@base_contains('PREFERRED_VERSION_linux-dm500hd', '2.6.18', '20100623', '20090727', d)}"
24
25 KV_dm800 = "${@base_contains('PREFERRED_VERSION_linux-dm800', '2.6.18', '2.6.18-7.3-dm800', '2.6.30-dm800', d)}"
26 PV_dm800 = "${KV}-${@base_contains('PREFERRED_VERSION_linux-dm800', '2.6.18', '20100623', '20090723', d)}"
27
28 KV_dm800se = "2.6.18-7.3-dm800se"
29 PV_dm800se = "${KV}-20100616"
30
31 KV_dm8000 = "${@base_contains('PREFERRED_VERSION_linux-dm8000', '2.6.18', '2.6.18-7.3-dm8000', '2.6.30-dm8000', d)}"
32 PV_dm8000 = "${KV}-${@base_contains('PREFERRED_VERSION_linux-dm8000', '2.6.18', '20100623', '20090820', d)}"
33
34 RDEPENDS = "kernel (${KV})"
35 PR = "r0"
36
37 SRC_URI = "http://sources.dreamboxupdate.com/snapshots/dreambox-dvb-modules-${MACHINE}-${PV}.tar.bz2 "
38 SRC_URI_append_dm7025 = "http://sources.dreamboxupdate.com/download/7020/fpupgrade-${MACHINE}-v7"
39 SRC_URI_append_dm8000 = "http://sources.dreamboxupdate.com/download/7020/fpupgrade-${MACHINE}-v7"
40
41 S = "${WORKDIR}"
42
43 do_install_powerpc() {
44         install -d ${D}/lib/modules/${KV}/extra
45         for f in head; do
46                 install -m 0644 $f.ko ${D}/lib/modules/${KV}/extra/$f.ko;
47         done
48 }
49
50 do_install_mipsel() {
51         install -d ${D}/lib/modules/${KV}/extra
52         for f in *.ko LICENSE; do
53                 install -m 0644 ${WORKDIR}/$f ${D}/lib/modules/${KV}/extra/$f;
54         done
55 }
56
57 do_install_mipsel_append_dm7025() {
58         install -d ${D}${sbindir}
59         install -m 0755 ${WORKDIR}/fpupgrade-${MACHINE}-v7 ${D}${sbindir}/fpupgrade
60 }
61
62 do_install_mipsel_append_dm8000() {
63         install -d ${D}${sbindir}
64         install -m 0755 ${WORKDIR}/fpupgrade-${MACHINE}-v7 ${D}${sbindir}/fpupgrade
65 }
66
67 pkg_postinst_dreambox-dvb-modules () {
68         if [ -d /proc/stb ]; then
69                 depmod -ae
70                 update-modules
71         fi
72         true
73 }
74
75 pkg_postrm_dreambox-dvb-modules () {
76         if [ -d /proc/stb ]; then
77                 update-modules
78         fi
79         true
80 }
81
82 PACKAGE_ARCH := "${MACHINE_ARCH}"
83 FILES_${PN} = "/"