blob: 813a09fb13aa8be25bcf5930637c3f6d2dc37b4f (
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
76
77
78
79
80
81
82
83
84
85
86
87
|
DESCRIPTION = "Tools for managing memory technology devices."
SECTION = "base"
DEPENDS = "zlib lzo"
HOMEPAGE = "http://www.linux-mtd.infradead.org/"
LICENSE = "GPLv2"
PR = "r0"
SRC_URI = "ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-${PV}.tar.bz2"
S = "${WORKDIR}/mtd-utils-${PV}"
EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR'"
do_stage () {
install -d ${STAGING_INCDIR}/mtd
for f in ${S}/include/mtd/*.h; do
install -m 0644 $f ${STAGING_INCDIR}/mtd/
done
for binary in ${mtd_utils}; do
if [ -f $binary ]; then
install -m 0755 $binary ${STAGING_BINDIR}
fi
done
}
do_install () {
install -d ${D}${bindir}
install -d ${D}${includedir}/mtd
for binary in ${mtd_utils}; do
if [ -f $binary ]; then
install -m 0755 $binary ${D}${bindir}
fi
done
for f in ${S}/include/mtd/*.h; do
install -m 0644 $f ${D}${includedir}/mtd
done
}
mtd_utils = " docfdisk \
doc_loadbios \
flashcp \
flash_erase \
flash_eraseall \
flash_info \
flash_lock \
flash_otp_dump \
flash_otp_info \
flash_unlock \
ftl_check \
ftl_format \
jffs2dump \
mkfs.jffs2 \
mtd_debug \
nanddump \
nandtest \
nandwrite \
nftldump \
nftl_format \
recv_image \
rfddump \
rfdformat \
serve_image \
sumtool \
mkfs.ubifs/mkfs.ubifs \
ubi-utils/bin2nand \
ubi-utils/mkbootenv \
ubi-utils/nand2bin \
ubi-utils/pddcustomize \
ubi-utils/pfi2bin \
ubi-utils/pfiflash \
ubi-utils/ubigen \
ubi-utils/ubimirror \
ubi-utils/unubi \
ubi-utils/new-utils/ubiattach \
ubi-utils/new-utils/ubicrc32 \
ubi-utils/new-utils/ubidetach \
ubi-utils/new-utils/ubiformat \
ubi-utils/new-utils/ubimkvol \
ubi-utils/new-utils/ubinfo \
ubi-utils/new-utils/ubinize \
ubi-utils/new-utils/ubirmvol \
ubi-utils/new-utils/ubiupdatevol"
PACKAGES =+ "mkfs-jffs mkfs-jffs2 mkfs-ubifs"
FILES_mkfs-jffs = "${bindir}/mkfs.jffs"
FILES_mkfs-jffs2 = "${bindir}/mkfs.jffs2"
FILES_mkfs-ubifs = "${bindir}/mkfs.ubifs"
|