2018-02-10 11:48:31 +01:00
|
|
|
VERSION="4.15.0"
|
2018-01-15 16:03:14 +01:00
|
|
|
SRCDIR="iproute2-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://www.kernel.org/pub/linux/utils/net/iproute2/"
|
2018-02-10 11:48:31 +01:00
|
|
|
SHA256SUM="48d4616a99d7b609b7b795c0ae8ec57099fb0271ed89253e8772c02327798355"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="bdb libmnl"
|
2018-01-15 16:03:14 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-02-09 18:49:17 +01:00
|
|
|
apply_patches
|
2018-01-15 16:03:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
local SOURCE="$1"
|
|
|
|
local BUILD="$2"
|
|
|
|
|
|
|
|
cp -r ${SOURCE}/* ${BUILD}
|
|
|
|
|
|
|
|
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
|
|
|
local BUILD="$2"
|
|
|
|
local DEPLOY="$3"
|
|
|
|
local DEVDEPLOY="$4"
|
|
|
|
|
|
|
|
mkdir -p "$DEPLOY/var/lib/arpd"
|
|
|
|
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install
|
|
|
|
|
|
|
|
rm -r "$DEPLOY/include"
|
|
|
|
rm -r "$DEPLOY/share/doc"
|
|
|
|
rm -r "$DEPLOY/share/man"
|
|
|
|
|
|
|
|
for program in arpd bridge devlink genl ifstat ip lnstat nstat rdma rtacct rtmon ss tc tipc; do
|
|
|
|
${TARGET}-strip --discard-all ${DEPLOY}/bin/$program
|
|
|
|
done
|
|
|
|
}
|