2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2018-12-25 01:30:18 +00:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:38:47 +01:00
|
|
|
|
2010-11-13 16:43:31 +01:00
|
|
|
PKG_NAME="e2fsprogs"
|
2019-09-20 18:17:04 +01:00
|
|
|
PKG_VERSION="1.45.3"
|
|
|
|
|
PKG_SHA256="90d10066b815e27b0b4875f0d5e396c663e0bf55aa3ca10868978d10c6ffe595"
|
2010-11-13 16:43:31 +01:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
|
PKG_SITE="http://e2fsprogs.sourceforge.net/"
|
2018-02-14 07:38:23 +00:00
|
|
|
PKG_URL="https://www.kernel.org/pub/linux/kernel/people/tytso/$PKG_NAME/v$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.xz"
|
2019-10-17 20:01:27 +02:00
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
2014-01-30 14:31:09 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2014-05-25 19:22:15 +02:00
|
|
|
PKG_DEPENDS_INIT="toolchain"
|
2010-11-13 16:43:31 +01:00
|
|
|
PKG_LONGDESC="The filesystem utilities for the EXT2 filesystem, including e2fsck, mke2fs, dumpe2fs, fsck, and others."
|
2018-02-23 14:02:16 +01:00
|
|
|
PKG_BUILD_FLAGS="-parallel"
|
2011-05-24 19:58:25 +02:00
|
|
|
|
|
|
|
|
if [ "$HFSTOOLS" = "yes" ]; then
|
2014-02-04 21:38:55 +02:00
|
|
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET diskdev_cmds"
|
2011-05-24 19:58:25 +02:00
|
|
|
fi
|
2013-12-25 15:58:03 +01:00
|
|
|
|
2017-05-06 21:16:56 +01:00
|
|
|
PKG_CONFIGURE_OPTS_HOST="--prefix=$TOOLCHAIN/ \
|
|
|
|
|
--bindir=$TOOLCHAIN/bin \
|
2020-01-14 02:27:09 +00:00
|
|
|
--with-udev-rules-dir=no \
|
|
|
|
|
--with-crond-dir=no \
|
|
|
|
|
--with-systemd-unit-dir=no \
|
2019-07-16 19:56:16 +02:00
|
|
|
--sbindir=$TOOLCHAIN/sbin \
|
|
|
|
|
--enable-verbose-makecmds \
|
|
|
|
|
--disable-symlink-install \
|
|
|
|
|
--disable-symlink-build \
|
|
|
|
|
--disable-subset \
|
|
|
|
|
--disable-debugfs \
|
|
|
|
|
--disable-imager \
|
|
|
|
|
--disable-resizer \
|
|
|
|
|
--disable-defrag \
|
|
|
|
|
--disable-fsck \
|
|
|
|
|
--disable-e2initrd-helper \
|
|
|
|
|
--enable-tls \
|
|
|
|
|
--disable-uuidd \
|
|
|
|
|
--disable-nls \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--disable-fuse2fs \
|
|
|
|
|
--with-gnu-ld"
|
2016-02-09 10:40:13 +01:00
|
|
|
|
2019-05-28 18:37:57 +01:00
|
|
|
pre_configure() {
|
|
|
|
|
PKG_CONFIGURE_OPTS_INIT="BUILD_CC=$HOST_CC \
|
2020-01-14 02:27:09 +00:00
|
|
|
--with-udev-rules-dir=no \
|
|
|
|
|
--with-crond-dir=no \
|
|
|
|
|
--with-systemd-unit-dir=no \
|
2019-05-28 18:37:57 +01:00
|
|
|
--enable-verbose-makecmds \
|
|
|
|
|
--enable-symlink-install \
|
|
|
|
|
--enable-symlink-build \
|
|
|
|
|
--disable-subset \
|
|
|
|
|
--disable-elf-shlibs \
|
|
|
|
|
--disable-bsd-shlibs \
|
|
|
|
|
--disable-profile \
|
|
|
|
|
--disable-jbd-debug \
|
|
|
|
|
--disable-blkid-debug \
|
|
|
|
|
--disable-testio-debug \
|
|
|
|
|
--enable-libuuid \
|
|
|
|
|
--enable-libblkid \
|
|
|
|
|
--disable-debugfs \
|
|
|
|
|
--disable-imager \
|
|
|
|
|
--enable-resizer \
|
|
|
|
|
--enable-fsck \
|
|
|
|
|
--disable-e2initrd-helper \
|
|
|
|
|
--enable-tls \
|
|
|
|
|
--disable-uuidd \
|
|
|
|
|
--disable-nls \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--disable-fuse2fs \
|
|
|
|
|
--with-gnu-ld"
|
2014-04-23 18:31:58 +02:00
|
|
|
|
2019-05-28 18:37:57 +01:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_INIT"
|
2018-12-25 01:30:18 +00:00
|
|
|
}
|
2016-02-20 23:46:33 +00:00
|
|
|
|
2014-05-25 15:27:27 +02:00
|
|
|
post_makeinstall_target() {
|
2017-06-13 15:43:30 +01:00
|
|
|
make -C lib/et LIBMODE=644 DESTDIR=$SYSROOT_PREFIX install
|
2017-05-06 21:16:56 +01:00
|
|
|
|
2016-12-04 13:23:45 -08:00
|
|
|
rm -rf $INSTALL/usr/sbin/badblocks
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/blkid
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/dumpe2fs
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/e2freefrag
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/e2undo
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/e4defrag
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/filefrag
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/fsck
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/logsave
|
|
|
|
|
rm -rf $INSTALL/usr/sbin/mklost+found
|
2014-05-25 15:27:27 +02:00
|
|
|
}
|
2014-05-25 19:22:15 +02:00
|
|
|
|
|
|
|
|
makeinstall_init() {
|
2016-12-04 13:23:45 -08:00
|
|
|
mkdir -p $INSTALL/usr/sbin
|
|
|
|
|
cp e2fsck/e2fsck $INSTALL/usr/sbin
|
|
|
|
|
ln -sf e2fsck $INSTALL/usr/sbin/fsck.ext2
|
|
|
|
|
ln -sf e2fsck $INSTALL/usr/sbin/fsck.ext3
|
|
|
|
|
ln -sf e2fsck $INSTALL/usr/sbin/fsck.ext4
|
|
|
|
|
ln -sf e2fsck $INSTALL/usr/sbin/fsck.ext4dev
|
2014-09-20 14:03:54 +02:00
|
|
|
|
|
|
|
|
if [ $INITRAMFS_PARTED_SUPPORT = "yes" ]; then
|
2016-12-04 13:23:45 -08:00
|
|
|
cp misc/mke2fs $INSTALL/usr/sbin
|
|
|
|
|
ln -sf mke2fs $INSTALL/usr/sbin/mkfs.ext2
|
|
|
|
|
ln -sf mke2fs $INSTALL/usr/sbin/mkfs.ext3
|
|
|
|
|
ln -sf mke2fs $INSTALL/usr/sbin/mkfs.ext4
|
|
|
|
|
ln -sf mke2fs $INSTALL/usr/sbin/mkfs.ext4dev
|
2014-09-20 14:03:54 +02:00
|
|
|
fi
|
2014-05-25 19:22:15 +02:00
|
|
|
}
|
2016-02-09 10:40:13 +01:00
|
|
|
|
|
|
|
|
makeinstall_host() {
|
2017-06-13 15:43:30 +01:00
|
|
|
make -C lib/et LIBMODE=644 install
|
|
|
|
|
make -C lib/ext2fs LIBMODE=644 install
|
2019-07-16 19:56:16 +02:00
|
|
|
mkdir -p $TOOLCHAIN/sbin
|
|
|
|
|
cp e2fsck/e2fsck $TOOLCHAIN/sbin
|
|
|
|
|
cp misc/mke2fs $TOOLCHAIN/sbin
|
|
|
|
|
cp misc/tune2fs $TOOLCHAIN/sbin
|
2016-02-09 10:40:13 +01:00
|
|
|
}
|