LS1021A-IOT u-boot rebuild with Yocto Project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LS1021A-IOT u-boot rebuild with Yocto Project

跳至解决方案
3,259 次查看
myungjinhwang
Contributor III

I'm following below command to rebuild u-boot

4. Rebuild u-boot

   $ bitbake -c cleansstate u-boot-ls1

   $ bitbake -c patch u-boot-ls1

   $ bitbake -c compile u-boot-ls1

   $ bitbake u-boot-ls1

first time, it's ok but after build, i modify and rebuild many times.

then modified files are not effective. so i have to command "bitbake -c cleansstate u-boot-ls1".

then modified files are deleted.... so i'm doing backup files and merge again after clean / patch.

how should i rebuild many times.....?

or to build u-boot with yocto project, should i clean every time?

0 项奖励
回复
1 解答
2,581 次查看
addiyi
NXP Employee
NXP Employee

You can use something like this to modify and apply your modification to uboot build.

$ bitbake -c cleansstate u-boot-ls1

$ bitbake -c patch u-boot-ls1

Modify the uboot sources

$ bitbake -c compile u-boot-ls1

$ bitbake u-boot-ls1

Also, if you don't want to delete your files every time you modify uboot sources you can use:

$ bitbake -c compile -f u-boot-ls1

$ bitbake u-boot-ls1

Adrian

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,582 次查看
addiyi
NXP Employee
NXP Employee

You can use something like this to modify and apply your modification to uboot build.

$ bitbake -c cleansstate u-boot-ls1

$ bitbake -c patch u-boot-ls1

Modify the uboot sources

$ bitbake -c compile u-boot-ls1

$ bitbake u-boot-ls1

Also, if you don't want to delete your files every time you modify uboot sources you can use:

$ bitbake -c compile -f u-boot-ls1

$ bitbake u-boot-ls1

Adrian

0 项奖励
回复
2,581 次查看
myungjinhwang
Contributor III

thanks.....

what is the -f option?

0 项奖励
回复
2,581 次查看
addiyi
NXP Employee
NXP Employee

-f will force uboot recompilation.

Adrian

0 项奖励
回复