Link:https://01.org/zh/powertop/blogs/ayates1/2015/how-build-powertop-android?langredirect=1
你可以在PowerTOP 源码代码附带的README文件中找到这些说明。
如果它们已经在工作目录中,请跳过此步骤。
pciutils:git clone
https://github.com/trevd/android_external_pciutils
放到AOSP源码的/external/pciutils目录下
ncurses:git clone
https://github.com/cvpcs/android_external_libncurses
放到AOSP源码的/external/ncurses目录下
./src/csstoh.sh src/powertop.css src/css.h
生成css.h头文件。
使用 patches/Android 目录下的补丁
在顶层目录下编译,或者使用“mm”。
编译生成的二进制文件位于$ANDROID_PRODUCT_OUT/system/bin/powertop目录下