summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/mtd
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2019-06-17 21:28:07 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-19 12:46:43 +0100
commit2806373ef21c8bce5b13271834779a99c58d910f (patch)
tree1a1169c1321dce33a9856c3c4a26eba2238b4737 /meta/recipes-devtools/mtd
parente164dc4184e98c2cacf182cd2e304554cd2ca581 (diff)
downloadpoky-2806373ef21c8bce5b13271834779a99c58d910f.tar.gz
mtd-utils: add "jffs" and "ubifs" PACKAGECONFIG options
Enabled by default, but allow to optionally disable them. (From OE-Core rev: c8900a7e79976b044791a2d58d5e24f05b1690d5) Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/mtd')
-rw-r--r--meta/recipes-devtools/mtd/mtd-utils_git.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb
index 6415fffe61..49a650a9ef 100644
--- a/meta/recipes-devtools/mtd/mtd-utils_git.bb
+++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb
@@ -24,10 +24,12 @@ EXTRA_OECONF += "--enable-install-tests"
24# xattr support creates an additional compile-time dependency on acl because 24# xattr support creates an additional compile-time dependency on acl because
25# 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
26# 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.
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo" 27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs"
28PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo" 28PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo"
29PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl" 29PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl"
30PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl" 30PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl"
31PACKAGECONFIG[jffs] = "--with-jffs,--without-jffs"
32PACKAGECONFIG[ubifs] = "--with-ubifs,--without-ubifs"
31 33
32CPPFLAGS_append_riscv64 = " -pthread -D_REENTRANT" 34CPPFLAGS_append_riscv64 = " -pthread -D_REENTRANT"
33 35
@@ -59,7 +61,9 @@ do_install () {
59 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} 61 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
60} 62}
61 63
62PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc mtd-utils-tests" 64PACKAGES =+ "mtd-utils-misc mtd-utils-tests"
65PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "jffs", "mtd-utils-jffs2", "", d)}"
66PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "ubifs", "mtd-utils-ubifs", "", d)}"
63 67
64FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool" 68FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool"
65FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*" 69FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*"