当前位置: 首页 > 工具软件 > PowerTOP > 使用案例 >

编译Powertop for Android

和和裕
2023-12-01

原文:

Link:https://01.org/zh/powertop/blogs/ayates1/2015/how-build-powertop-android?langredirect=1

翻译:

你可以在PowerTOP 源码代码附带的README文件中找到这些说明。

1. 获取pciutils和ncurses库。

如果它们已经在工作目录中,请跳过此步骤。

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目录下

2. 运行脚本csstoh.sh
./src/csstoh.sh src/powertop.css src/css.h 

生成css.h头文件。

3. 打补丁

使用 patches/Android 目录下的补丁

4. 编译

在顶层目录下编译,或者使用“mm”。
编译生成的二进制文件位于$ANDROID_PRODUCT_OUT/system/bin/powertop目录下

 类似资料: