高通代码编译报错-集合
1:报错:
makefile:52: recipe for target 'ABL_FV_IMG' failed make: *** [ABL_FV_IMG] Error 127 make: Leaving directory '/home/work/factory/bootable/bootloader/edk2'
一开编译0%就报这个错误,原因是高通代码默认下载好后,自己会保存的代码编译路径为你下载的路径
----应该要BSP把这个指定路径修改为动态路径
查询路径方式如下:
进入目录:LINUX/android /bootable/bootloader/edk2
用命令查看:
. ./edksetup.sh BaseTools------------------------前面是“.” + " " + "." 点+空格+点
结果提示路径空
bash: …/edksetup.sh: No such file or directory
或者提示之前下载代码的老路径,编译报错是因为你移动了代码目录到其他目录:
A@ubuntu:~/work/factory/bootable/bootloader/edk2$ ./edksetup.sh BaseTools/ Please note: This script must be 'sourced' so the environment can be changed. . edksetup.sh source edksetup.sh ./edksetup.sh: line 129: return: can only `return' from a function or sourced script Loading previous configuration from /home/ckt/work/blackberry-660-factory/bootable/bootloader/edk2/Conf/BuildEnv.sh WORKSPACE: /home/work/factory/bootable/bootloader/edk2-------------代码工作环境也就是代码路径在这 EDK_TOOLS_PATH: /media/acd822ab-cb6b-4e42-854d-7096e903502c/blackberry660/factory/bootable/bootloader/edk2/BaseTools CONF_PATH: /home/work/factory/bootable/bootloader/edk2/Conf
EDK_TOOLS_PATH提示的路径是之前的老路径,和 CONF_PATH对应不上
所以用which build查看是空,没有路径。代码编译会报错。
重新设置下代码路径:
在代码/bootable/bootloader/edk2目录下:
echo $EDK_TOOLS_PATH 查看下路径
删除Conf/BuildEnv.sh 再运行这2个命令
unset EDK_TOOLS_PATH 发现路径不对,重新设置它
. ./edksetup.sh BaseTools which build
这时候which build应该就会有显示了