diff options
author | Martin Lund <malu@gomspace.com> | 2018-04-26 11:47:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:05 +0100 |
commit | d49bfa2eaeb99b6cadf9f65053d2066b22c52e07 (patch) | |
tree | f6f90be07598421da7b5f6e1b91396d6ce0cc6bb /meta | |
parent | 722fbf6c732632c541a436335b8aa2e5b8471fec (diff) | |
download | poky-d49bfa2eaeb99b6cadf9f65053d2066b22c52e07.tar.gz |
mtd-utils: Add mtd-utils-tests package
Add mtd-utils-tests package which includes the test suites mtd-tests,
ubi-tests, fs-tests, etc.
These test suites are useful for verifying flash features or stress
testing.
(From OE-Core rev: 612d0468e34ca922b42a1176ab1e2feef72a2a13)
Signed-off-by: Martin Lund <malu@gomspace.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/mtd/mtd-utils_git.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb index f50a42cf0e..a0e1cf76f6 100644 --- a/meta/recipes-devtools/mtd/mtd-utils_git.bb +++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb | |||
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | |||
8 | inherit autotools pkgconfig update-alternatives | 8 | inherit autotools pkgconfig update-alternatives |
9 | 9 | ||
10 | DEPENDS = "zlib lzo e2fsprogs util-linux" | 10 | DEPENDS = "zlib lzo e2fsprogs util-linux" |
11 | RDEPENDS_mtd-utils-tests += "bash" | ||
11 | 12 | ||
12 | PV = "2.0.1+${SRCPV}" | 13 | PV = "2.0.1+${SRCPV}" |
13 | 14 | ||
@@ -18,6 +19,8 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git \ | |||
18 | 19 | ||
19 | S = "${WORKDIR}/git/" | 20 | S = "${WORKDIR}/git/" |
20 | 21 | ||
22 | EXTRA_OECONF += "--enable-install-tests" | ||
23 | |||
21 | # xattr support creates an additional compile-time dependency on acl because | 24 | # xattr support creates an additional compile-time dependency on acl because |
22 | # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr | 25 | # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr |
23 | # regardless whether acl is enabled or disabled in the distro should be okay. | 26 | # regardless whether acl is enabled or disabled in the distro should be okay. |
@@ -54,11 +57,12 @@ do_install () { | |||
54 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} | 57 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} |
55 | } | 58 | } |
56 | 59 | ||
57 | PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc" | 60 | PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc mtd-utils-tests" |
58 | 61 | ||
59 | FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool" | 62 | FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool" |
60 | FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*" | 63 | FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*" |
61 | FILES_mtd-utils-misc = "${sbindir}/nftl* ${sbindir}/ftl* ${sbindir}/rfd* ${sbindir}/doc* ${sbindir}/serve_image ${sbindir}/recv_image" | 64 | FILES_mtd-utils-misc = "${sbindir}/nftl* ${sbindir}/ftl* ${sbindir}/rfd* ${sbindir}/doc* ${sbindir}/serve_image ${sbindir}/recv_image" |
65 | FILES_mtd-utils-tests = "${libexecdir}/mtd-utils/*" | ||
62 | 66 | ||
63 | BBCLASSEXTEND = "native nativesdk" | 67 | BBCLASSEXTEND = "native nativesdk" |
64 | 68 | ||