Update global MIT LICENSE file
[opendreambox.git] / meta-opendreambox / recipes-dreambox / recovery / recovery.inc
1 SUMMARY = "Command-line tools to flash and recover your Dreambox"
2 HOMEPAGE = "http://dreamboxupdate.com/"
3 LICENSE = "CLOSED"
4
5 SRC_URI_append = ";branch=${BRANCH}"
6
7 do_install() {
8     oe_runmake install DESTDIR=${D}
9 }
10
11 PACKAGES =+ "flash-scripts"
12
13 PACKAGE_ARCH = "${MACHINE_ARCH}"
14
15 EMMCRDEPENDS_recovery = " \
16     e2fsprogs-mke2fs \
17     gptfdisk-sgdisk \
18 "
19 EMMCRDEPENDS_flash-scripts = " \
20     util-linux-sfdisk \
21 "
22 NANDRDEPENDS_recovery = " \
23     mtd-utils-mkfs.ubifs \
24     mtd-utils-ubiattach \
25     mtd-utils-ubimkvol \
26     mtd-utils-ubirmvol \
27     mtd-utils-ubiformat \
28 "
29 NANDRDEPENDS_flash-scripts = " \
30     mtd-utils-flash-erase \
31     mtd-utils-nandwrite \
32 "
33 FASTBOOTRDEPENDS_flash-scripts = " \
34     fastboot \
35     mkbootblob \
36 "
37
38 RDEPENDS_${PN} = " \
39     flash-scripts \
40     gpgv \
41     pigz \
42     util-linux-blkid \
43     util-linux-mount \
44 "
45 RDEPENDS_${PN}_append_bcm7435 = " \
46     ${EMMCRDEPENDS_recovery} \
47 "
48 RDEPENDS_${PN}_append_bcm7439 = " \
49     ${EMMCRDEPENDS_recovery} \
50 "
51 RDEPENDS_${PN}_append_bcm73625 = " \
52     ${NANDRDEPENDS_recovery} \
53 "
54
55 RDEPENDS_flash-scripts = " \
56     coreutils-realpath \
57 "
58 RDEPENDS_flash-scripts_append_bcm7435 = " \
59     ${EMMCRDEPENDS_flash-scripts} \
60     ${FASTBOOTRDEPENDS_flash-scripts} \
61 "
62 RDEPENDS_flash-scripts_append_bcm7439 = " \
63     ${EMMCRDEPENDS_flash-scripts} \
64 "
65 RDEPENDS_flash-scripts_append_bcm73625 = " \
66     ${NANDRDEPENDS_flash-scripts} \
67 "
68
69 FILES_flash-scripts = " \
70     ${sbindir}/flash-rescue \
71     ${sbindir}/flash-kernel \
72     ${sbindir}/flash-ssbl \
73     ${sbindir}/librecovery \
74     ${sbindir}/select-boot-source \
75     ${sbindir}/to-the-rescue \
76     ${sbindir}/writespi \
77 "