quinnwencn / blog

Apache License 2.0
0 stars 0 forks source link

[BugRecord] When reparsing xxx, the basehash value changed from xxx to xxx.... #55

Open quinnwencn opened 4 months ago

quinnwencn commented 4 months ago

I built yocto project before, now I change some configuration and try to rebuild it by:

bitbake recipename -c cleanall
bitbake recipename -c cleansstate
bitbake recipename

And the error occurs: image

quinnwencn commented 4 months ago

这个问题原因是在不同的环境启用了两次编译,第一次由cooker,第二次由bitbake worker,由于bb文件有时间敏感的操作,因此两次操作的时间不同,导致计算的hash不一样。 Solve by:

devtool modify [recipe-name]
devtool reset [recipe-name]

For example:

devtool modify u-boot-imx
devtool reset u-boot-imx
quinnwencn commented 2 months ago

上述操作有时无法生效,需要调试:

chown -R build:build ../sources
bitbake u-boot-imx -c cleansstate
bitbake u-boot-imx -c clean
bitbake u-boot-imx -c configure
bitbake u-boot-imx -c compile
bitbake u-boot-imx -c deploy -f -v

如果仍然没有解决问题,那么需要在bbappend增加一行,让yocto重新编译,而不是复用之前的编译结果