1、在高通android编译的时候,时常会出现刚才可以编译的突然编译不过了,而且很难看出来到底怎么个错误,现记录一种人为的错误,暂时不知道如何产生的
OK
make[2]: Leaving directory '/root/work/sda2/borch_0621_build/bootable/bootloader/edk2/BaseTools/Tests'
make[1]: Leaving directory '/root/work/sda2/borch_0621_build/bootable/bootloader/edk2/BaseTools'
Loading previous configuration from /root/work/sda2/borch_0621_build/bootable/bootloader/edk2/Conf/BuildEnv.sh
WORKSPACE: /root/work/sda2/borch_0621_build/bootable/bootloader/edk2
EDK_TOOLS_PATH: /root/work/sda2/borch_new_download/bootable/bootloader/edk2/BaseTools
CONF_PATH: /root/work/sda2/borch_0621_build/bootable/bootloader/edk2/Conf
/bin/bash: line 1: build: command not found
make: *** [makefile:130: ABL_FV_IMG] Error 127
make: Leaving directory '/root/work/sda2/borch_0621_build/bootable/bootloader/edk2'
[ 94% 2851/3010] build out/target/product/hqcos/obj/NOTICE.xml
如上编译日志:
WORKSPACE: /root/work/sda2/borch_0621_build/bootable/bootloader/edk2
EDK_TOOLS_PATH:/root/work/sda2/borch_new_download/bootable/bootloader/edk2/BaseTools
make: *** [makefile:130: ABL_FV_IMG] Error 127
虽然错误显示Error:127 ,但是看不出来任何的问题,后发现上面的两个的目录显示的编译路径不一致,一个是borch_0621_build(这个是对的),一个是borch_new_download(这个是刚下载时候的编译目录),这个回忆了下,是前几次编译成功后,为了更好的知道版本是基于哪天的,所以修改了名字,暂时不知道编译的时候哪里保存了第一次的编译路径,但应该是这个导致的,
后面会全部make clean来验证下
结论:
android下载编译后,不要随便更改目录
2、docker以root用户编译导致的权限问题
fatal: detected dubious ownership in repository at '/root/work/sda2/borch_0621_build/frameworks/base'
To add an exception for this directory, call:
结论:这个并没有影响,可以不管它,但如果想要android全部代码 git clean 和git reset,可以在对整个android系统进行更改用户为普通用户,就可以repo forall -c ''了