aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-10 16:40:17 -0700
committerDan McGregor <dan.mcgregor@usask.ca>2016-04-11 12:50:58 -0600
commit8f3d4a0a599933856c89af17e6293c93ea8629f8 (patch)
tree8a96d62d0c9e406710528a21a01dba5c6c3cbf40
parent4623de71d3ba78f5c4cbd0eeba9fed6f2e4b0f29 (diff)
downloadopenembedded-core-contrib-8f3d4a0a599933856c89af17e6293c93ea8629f8.tar.gz
openembedded-core-contrib-8f3d4a0a599933856c89af17e6293c93ea8629f8.tar.bz2
openembedded-core-contrib-8f3d4a0a599933856c89af17e6293c93ea8629f8.zip
e2fsprogs: Delete identical binaries and create symlinks instead
Here is what build history tells now e2fsprogs-tune2fs: -PKGSIZE = 144336 +PKGSIZE = 72175 e2fsprogs-e2fsck: -PKGSIZE = 1345500 +PKGSIZE = 269124 e2fsprogs-mke2fs: -PKGSIZE = 551316 +PKGSIZE = 111036 Change-Id: I0902484ad506d892292c4bea6789467179b5ea8d Signed-off-by: Khem Raj <khem_raj@cable.comcast.com>
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
index 9cde8e46b72..91bfb305e09 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
@@ -37,6 +37,9 @@ do_install () {
rm -f ${D}${base_sbindir}/blkid
rm -f ${D}${base_sbindir}/fsck
rm -f ${D}${base_sbindir}/findfs
+ rm -f ${D}${base_sbindir}/mkfs.ext*
+ rm -f ${D}${base_sbindir}/fsck.ext*
+ rm -f ${D}${base_sbindir}/e2label
# e2initrd_helper and the pkgconfig files belong in libdir
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
@@ -44,6 +47,11 @@ do_install () {
mv ${D}${base_libdir}/e2initrd_helper ${D}${libdir}
mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
fi
+ for ext in ext2 ext3 ext4 ext4dev; do
+ ln -sf mke2fs ${D}${base_sbindir}/mkfs.${ext}
+ ln -sf e2fsck ${D}${base_sbindir}/fsck.${ext}
+ done
+ ln -sf tune2fs ${D}${base_sbindir}/e2label
oe_multilib_header ext2fs/ext2_types.h
install -d ${D}${base_bindir}