FAQ_MA35_Family_Recompile Source Code

Post Reply
ytliu6
Posts: 95
Joined: 08 Nov 2022, 10:28

23 Apr 2024, 15:08

Sometimes you may find that you have modified source code but after compiling and you still got an old image. Those of auto compiling tools are not detect which file you modified, so you need to use some commands to force to recompile.

Here, we provide three commands to rebuild the important three part of image.

The last command in Buildroot and Yocto mean you need to pack them again.

Buildroot

Code: Select all

$ make arm-trusted-firmware
$ make uboot-rebuild
$ make linux-rebuild
$ make
Yocto

Code: Select all

$ bitbake tf-a-ma35d1 –C compile
$ bitbake linux-ma35d1 -C compile
$ bitbake u-boot-ma35d1 -C compile
$ bitbake nvt-image-qt5 –c cleanall
$ bitbake nvt-image-qt5 
If you want to recompile some package, you still can do it by the below rules.

Buildroot

Code: Select all

$ make show-targets
$ make (package name)-rebuild
Yocto

Code: Select all

$ bitbake (package name) -C compile
Yocto also supports a special command to search which package can be compiled.

Code: Select all

$ bitbake -s | grep (package name)
#Recompile #Source code #Rebuild

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests