dont generate streamserver package on dreamboxes without encoder
[opendreambox.git] / meta-opendreambox / recipes-dreambox / recovery / recovery_1.0.bb
1 SUMMARY = "Command-line tools to flash and recover your Dreambox"
2 HOMEPAGE = "http://dreamboxupdate.com/"
3 LICENSE = "CLOSED"
4 SRCREV = "${@opendreambox_srcrev('f6d9de6dc38272d83f19f63afe874e1cb58a8c61', d)}"
5 SRCREV_dm520 = "${@opendreambox_srcrev('465ab0601a290079fbd3ecc3cabd25f84b5efb06', d)}"
6 SRCREV_dm820 = "${@opendreambox_srcrev('9919a65aeb1c7e6f54f6b6df21cb94354f611901', d)}"
7 SRCREV_dm7080 = "${@opendreambox_srcrev('d04ef152c73dac9460a56503d81708eb4f6dcff2', d)}"
8
9 SRC_URI_append = ";branch=${BRANCH}"
10
11 inherit opendreambox-git
12
13 do_install() {
14     oe_runmake install DESTDIR=${D}
15 }
16
17 PACKAGES =+ "flash-scripts"
18
19 PACKAGE_ARCH = "${MACHINE_ARCH}"
20
21 EMMCRDEPENDS_recovery = " \
22     e2fsprogs-mke2fs \
23     parted \
24 "
25 EMMCRDEPENDS_flash-scripts = " \
26     util-linux-sfdisk \
27 "
28 NANDRDEPENDS_recovery = " \
29     mtd-utils-mkfs.ubifs \
30     mtd-utils-ubiattach \
31     mtd-utils-ubimkvol \
32     mtd-utils-ubirmvol \
33     mtd-utils-ubiformat \
34 "
35 NANDRDEPENDS_flash-scripts = " \
36     mtd-utils-flash-erase \
37     mtd-utils-nandwrite \
38 "
39 FASTBOOTRDEPENDS_flash-scripts = " \
40     fastboot \
41     mkbootblob \
42 "
43
44 RDEPENDS_${PN} = " \
45     flash-scripts \
46     gpgv \
47     pigz \
48     util-linux-mount \
49 "
50 RDEPENDS_${PN}_append_bcm7435 = " \
51     ${EMMCRDEPENDS_recovery} \
52 "
53 RDEPENDS_${PN}_append_bcm73625 = " \
54     ${NANDRDEPENDS_recovery} \
55 "
56
57 RDEPENDS_flash-scripts = " \
58     coreutils-realpath \
59 "
60 RDEPENDS_flash-scripts_append_bcm7435 = " \
61     ${EMMCRDEPENDS_flash-scripts} \
62     ${FASTBOOTRDEPENDS_flash-scripts} \
63 "
64 RDEPENDS_flash-scripts_append_bcm73625 = " \
65     ${NANDRDEPENDS_flash-scripts} \
66 "
67
68 FILES_flash-scripts = " \
69     ${sbindir}/flash-rescue \
70     ${sbindir}/flash-kernel \
71     ${sbindir}/flash-ssbl \
72     ${sbindir}/librecovery \
73     ${sbindir}/select-boot-source \
74     ${sbindir}/to-the-rescue \
75     ${sbindir}/writespi \
76 "
77
78 BRANCH = "master"
79 BRANCH_dm520 = "dm520"
80 BRANCH_dm820 = "dm820"
81 BRANCH_dm7080 = "dm7080"
82
83 COMPATIBLE_MACHINE = "^(dm520|dm820|dm7080)$"