LS1021A-IOT u-boot rebuild with Yocto Project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1021A-IOT u-boot rebuild with Yocto Project

Jump to solution
2,838 Views
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 Kudos
1 Solution
2,160 Views
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

View solution in original post

0 Kudos
3 Replies
2,161 Views
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 Kudos
2,160 Views
myungjinhwang
Contributor III

thanks.....

what is the -f option?

0 Kudos
2,160 Views
addiyi
NXP Employee
NXP Employee

-f will force uboot recompilation.

Adrian

0 Kudos