gpt4 book ai didi

android - make 和 mka 有什么区别?

转载 作者:太空宇宙 更新时间:2023-11-03 13:41:16 24 4
gpt4 key购买 nike

所以我正在构建 TWRP。我看到有些人在构建恢复镜像时使用命令 make,例如make -j5 recoveryimage,但其他人使用 mka recoveryimage

makemka 这两个命令有什么区别?我自己找不到全面的答案。

谢谢!

最佳答案

mka 旨在成为更快的make。这是一个很好的描述(source):

This little gem of a command is basically equivalent to a super-charged version of make. Make is the program that gets called to build our source, choosing the correct compiler for each part of the Android OS that we are making. Problem is, make is SLOW in its default configuration. It can take hours longer depending on your hardware. So what did they do? They mated make with a cheetah, and took their child mka. mka improves upon make by using the program sched_tool to make full use of all the threads available on your machine (For AMD, this is equivalent to the number of cores your processor has; For Intel, this is usually equivalent to twice the number of cores your processor has, due to HyperThreading). What this means is that ALL of your processor is working, not just one small part of it.

关于android - make 和 mka 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51698872/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com