- 编译libmnl
- 下载
ethtool - utility for controlling network drivers and hardware
- 编译
注意配置PKG_CONFIG_PATH指向libmnl的编译结果目录。
DEST_DIR=`pwd`/install
CROSS_NAME=aarch64-mix210-linux
export PATH=/opt/linux/x86-arm/${CROSS_NAME}/bin:${PATH}
export PKG_CONFIG_PATH=../libmnl-1.0.5/install/lib/pkgconfig
make clean
./autogen.sh
./configure \
--prefix=${DEST_DIR} \
--host=arm-linux \
CC=${CROSS_NAME}-gcc \
LDFLAGS=-static
make
make install
- 检查
file ethtool
ethtool: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, for GNU/Linux 3.7.0, with debug_info, not stripped