为什么 u-boot 源代码在编译时被删除?

why u-boot source code remove while compiling?

我正在执行以下在本地编译源代码的步骤。我正在使用 yocto 的 poky 版本 pyro。但是清理源码成功后,编译源码的时候去掉了,显示错误。

第一步 bitbake -v -c clean u-boot

第 2 步

bitbake -v u-boot

----------------------------Eroor---------------- ------------------

制作:*** 没有制作目标的规则 'am335x_boneblack_config'。停止。 make: 离开目录 '/u-boot/u-boot_v2017.01/u-boot_src'

错误:u-boot-1_2017.01-r0 do_compile:oe_runmake 失败 错误:u-boot-1_2017.01-r0 do_compile:函数失败:do_compile(日志文件位于 /PYRO_BUILD/tmp/work/beaglebone-poky-linux-gnueabi/u-boot/1_2017.01-r0/temp/log.do_compile .10915) 错误:故障日志文件存储在:/PYRO_BUILD/tmp/work/beaglebone-poky-linux-gnueabi/u-boot/1_2017.01-r0/temp/log.do_compile.10915


我该如何解决?

make: *** No rule to make target 'am335x_boneblack_config'. Stop. make: Leaving directory '//src_bsp/u-boot/u-boot_v2017.01/u-boot_src'

从上面的错误来看,你似乎在'//u-boot/u-boot_v2017.01/u-boot_src'本地有uboot代码,它在编译时被删除了(bitbake -v u-boot)。

尝试使用 EXTERNALSRC 而不是 S 来指定 u-boot 源代码的路径,如下所示:

inherit externalsrc                                                             
EXTERNALSRC = "/<workspace>/u-boot/u-boot_v2017.01/u-boot_src"                                    
EXTERNALSRC_BUILD = "/<workspace>/u-boot/u-boot_v2017.01/u-boot_src"