http://blog.youkuaiyun.com/u013686019/article/details/51491364
一、编译ethtool工具
Android命令行中不含ethtool工具,所以需要自己编译。
1、下载最新源码:ethtool-4.5.tar.xz
源码地址:
https://www.kernel.org/pub/software/network/ethtool/
2、解压
把ethtool-4.5.tar.xz拷贝到Android/external/目录,解压:
tar xvf ethtool-4.5.tar.xz
3、编译
编写Android.mk文件:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
define all-c-files-under
$(patsubst ./%,%, $(shell find $(LOCAL_PATH) -name "platform" -prune -o -name "*.c" -and -not -name ".*"))
endef
define all-subdir-c-files
$(call all-c-files-under,.)
endef
C_FILES :&#