diff options
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb index 48af43b117..9ade1ff684 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb | |||
@@ -50,12 +50,27 @@ do_install () { | |||
50 | install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/ | 50 | install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/ |
51 | } | 51 | } |
52 | 52 | ||
53 | # Need to find the right mke2fs.conf file | ||
54 | e2fsprogs_conf_fixup () { | ||
55 | for i in mke2fs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev; do | ||
56 | create_wrapper ${D}${base_sbindir}/$i MKE2FS_CONFIG=${sysconfdir}/mke2fs.conf | ||
57 | done | ||
58 | } | ||
59 | |||
53 | do_install_append_class-target() { | 60 | do_install_append_class-target() { |
54 | # Clean host path in compile_et, mk_cmds | 61 | # Clean host path in compile_et, mk_cmds |
55 | sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et | 62 | sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et |
56 | sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds | 63 | sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds |
57 | } | 64 | } |
58 | 65 | ||
66 | do_install_append_class-native() { | ||
67 | e2fsprogs_conf_fixup | ||
68 | } | ||
69 | |||
70 | do_install_append_class-nativesdk() { | ||
71 | e2fsprogs_conf_fixup | ||
72 | } | ||
73 | |||
59 | RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" | 74 | RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" |
60 | RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" | 75 | RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" |
61 | 76 | ||