dosfstools: added target rules.

This commit is contained in:
Ricardo Martins 2015-02-08 20:53:36 +00:00
parent 7e2a4f9e0c
commit 3cfd62da49
3 changed files with 42 additions and 19 deletions

View File

@ -0,0 +1,24 @@
version=\
(
'3.0.20'
)
url=\
(
"http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$version.tar.gz"
)
md5=\
(
'7f1c1afd4ae4622e07b24ec0ddfc4184'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
configure()
{
$cmd_make distclean
}

View File

@ -0,0 +1,17 @@
source $pkg_common
build()
{
CC="$cmd_target_cc" \
$cmd_make \
PREFIX="$cfg_dir_toolchain_sysroot/usr"
}
target_install()
{
$cmd_target_strip --strip-unneeded "../dosfstools-$version/mkfs.fat" -o "$cfg_dir_rootfs/sbin/mkfs.fat" &&
$cmd_target_strip --strip-unneeded "../dosfstools-$version/fsck.fat" -o "$cfg_dir_rootfs/sbin/fsck.fat" &&
$cmd_target_strip --strip-unneeded "../dosfstools-$version/fatlabel" -o "$cfg_dir_rootfs/sbin/fatlabel" &&
ln -fs mkfs.fat "$cfg_dir_rootfs/sbin/mkfs.vfat" &&
ln -fs fsck.fat "$cfg_dir_rootfs/sbin/fsck.vfat"
}

View File

@ -1,22 +1,4 @@
version=\
(
'3.0.20'
)
url=\
(
"http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$version.tar.gz"
)
md5=\
(
'7f1c1afd4ae4622e07b24ec0ddfc4184'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
source $pkg_common
build()
{