This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/e2fsprogs/default.bash
2015-02-08 20:53:58 +00:00

33 lines
1020 B
Bash

source "$pkg_common"
configure()
{
$cmd_make distclean
export CC=$cmd_target_cc
export CROSS_COMPILE=$cfg_target_canonical
"../e2fsprogs-$version/configure" \
--prefix="$cfg_dir_rootfs" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--disable-nls
}
build()
{
$cmd_make
}
target_install()
{
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/e2fsck/e2fsck -o "$cfg_dir_rootfs/sbin/e2fsck" &&
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/misc/mke2fs -o "$cfg_dir_rootfs/sbin/mke2fs" &&
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/misc/tune2fs -o "$cfg_dir_rootfs/sbin/tune2fs" &&
ln -fs e2fsck "$cfg_dir_rootfs/sbin/fsck.ext2" &&
ln -fs e2fsck "$cfg_dir_rootfs/sbin/fsck.ext3" &&
ln -fs e2fsck "$cfg_dir_rootfs/sbin/fsck.ext4" &&
ln -fs mke2fs "$cfg_dir_rootfs/sbin/mkfs.ext2" &&
ln -fs mke2fs "$cfg_dir_rootfs/sbin/mkfs.ext3" &&
ln -fs mke2fs "$cfg_dir_rootfs/sbin/mkfs.ext4"
}