diff options
-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*" |