recovery: include emmc dependencies for bcm7439
[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     parted \
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-mount \
43 "
44 RDEPENDS_${PN}_append_bcm7435 = " \
45     ${EMMCRDEPENDS_recovery} \
46 "
47 RDEPENDS_${PN}_append_bcm7439 = " \
48     ${EMMCRDEPENDS_recovery} \
49 "
50 RDEPENDS_${PN}_append_bcm73625 = " \
51     ${NANDRDEPENDS_recovery} \
52 "
53
54 RDEPENDS_flash-scripts = " \
55     coreutils-realpath \
56 "
57 RDEPENDS_flash-scripts_append_bcm7435 = " \
58     ${EMMCRDEPENDS_flash-scripts} \
59     ${FASTBOOTRDEPENDS_flash-scripts} \
60 "
61 RDEPENDS_flash-scripts_append_bcm7439 = " \
62     ${EMMCRDEPENDS_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 "