How to build gcc compiler source under yocto bitbake

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

How to build gcc compiler source under yocto bitbake

3,486 次查看
alsmith
Contributor I

I am trying to make a modification to gcc compiler and rebuild the compiler under bitbake.

I can bitbake gcc and see the file in  ./tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/libstdc++-v3/src/c++11/thread.cc

After modifying thread.cc and changing the PR number in the recipe, the change made in thread.cc is overwritten.  

Can you provide what are the proper steps to make a source change to gcc compiler?

Note.  devtool isn't available.  Therefore, I am try to determine how best to make a change in gcc compiler source for debug purposes only and build the load using bitbake.

标记 (1)
0 项奖励
回复
1 回复

3,155 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Al Smith,

Yocto is meant to be a way to distribute customized Linux distributions so it’s not really fit for development. That’s why Bitbake does not keep track of changes on the source files and most of the times reverts to the default configuration listed on the recipes.

The best way to debug is compiling outside of Yocto and once all your changes are ready making a patch that applies these changes and include it as an append recipe.

I hope this helps!

Regards,

0 项奖励
回复