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/netperf/default.bash

41 lines
737 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-10-26 17:33:56 +00:00
'2.7.0'
2013-07-13 17:19:22 +01:00
)
url=\
(
"ftp://ftp.netperf.org/netperf/netperf-${version}.tar.bz2"
)
md5=\
(
2015-10-26 17:33:56 +00:00
'ad1c5342d61f297c417a93133aeba65a'
2013-07-13 17:19:22 +01:00
)
configure()
{
echo "ac_cv_func_setpgrp_void=yes" > config.cache
2015-10-26 17:33:56 +00:00
"../netperf-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
2013-07-13 17:19:22 +01:00
--config-cache
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
cp "${cfg_dir_toolchain_sysroot}/usr/bin/${cfg_target_canonical}-netperf" "${cfg_dir_rootfs}/usr/bin/netperf"
cp "${cfg_dir_toolchain_sysroot}/usr/bin/${cfg_target_canonical}-netserver" "${cfg_dir_rootfs}/usr/bin/netserver"
}