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

43 lines
735 B
Bash

version=\
(
"2.6.0"
)
url=\
(
"ftp://ftp.netperf.org/netperf/netperf-${version}.tar.bz2"
)
md5=\
(
"9654ffdfd4c4f2c93ce3733cd9ed9236"
)
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"
}