diff options
author | Denys Dmytriyenko <denys@ti.com> | 2019-06-17 21:28:07 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-19 12:46:43 +0100 |
commit | 2806373ef21c8bce5b13271834779a99c58d910f (patch) | |
tree | 1a1169c1321dce33a9856c3c4a26eba2238b4737 /meta/recipes-devtools | |
parent | e164dc4184e98c2cacf182cd2e304554cd2ca581 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-devtools/mtd/mtd-utils_git.bb | 8 |
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. |
27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo" | 27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs" |
28 | PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo" | 28 | PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo" |
29 | PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl" | 29 | PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl" |
30 | PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl" | 30 | PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl" |
31 | PACKAGECONFIG[jffs] = "--with-jffs,--without-jffs" | ||
32 | PACKAGECONFIG[ubifs] = "--with-ubifs,--without-ubifs" | ||
31 | 33 | ||
32 | CPPFLAGS_append_riscv64 = " -pthread -D_REENTRANT" | 34 | CPPFLAGS_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 | ||
62 | PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc mtd-utils-tests" | 64 | PACKAGES =+ "mtd-utils-misc mtd-utils-tests" |
65 | PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "jffs", "mtd-utils-jffs2", "", d)}" | ||
66 | PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "ubifs", "mtd-utils-ubifs", "", d)}" | ||
63 | 67 | ||
64 | FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool" | 68 | FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool" |
65 | FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*" | 69 | FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*" |