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
2015-10-26 17:33:56 +00:00

41 lines
737 B
Bash

version=\
(
'2.7.0'
)
url=\
(
"ftp://ftp.netperf.org/netperf/netperf-${version}.tar.bz2"
)
md5=\
(
'ad1c5342d61f297c417a93133aeba65a'
)
configure()
{
echo "ac_cv_func_setpgrp_void=yes" > config.cache
"../netperf-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--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"
}