dosfstools: added target rules.
This commit is contained in:
parent
7e2a4f9e0c
commit
3cfd62da49
24
rules/dosfstools/common.bash
Normal file
24
rules/dosfstools/common.bash
Normal 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
|
||||
}
|
17
rules/dosfstools/default.bash
Normal file
17
rules/dosfstools/default.bash
Normal 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"
|
||||
}
|
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user