Syncing Yocto Source to Local git repo

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

Syncing Yocto Source to Local git repo

2,199 次查看
kailas_kharse
Contributor IV

Hello Team,

I am new to Yocto, I have synced the code for i.mx8DualXplus, But I want to push the Yocto Source code to Local git repository which is maintained by my office on local GitLab server.
I have created the repository and I am trying to push the downloaded code to the local GitLab server.

> I am facing the issue that all the sub-projects in the source directory are not getting pushed to local git.

> I have tried to delete the .gitignore file from all the sub-projects then I was able to push the code but all the sub-projects lost this git history. i.e (.git folder from sub-projects is not pushed to the repository).

Here Sub-Projects refers to base, meta-Freescale, meta-imx etc...

Can You please guide me on how I can do this?

Thanks,

Kailas K.

标记 (2)
3 回复数

2,138 次查看
kailas_kharse
Contributor IV

Hello Gusarambula,

Do we have any alternate way to manage the yocto source internally within the organization?

Thanks & Regards,

Kailas K.

0 项奖励
回复

2,138 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Kailas K.,

Ideally you would have the same git structure, which would require independent commits for each layer. However, you could also flatten all layers of your BSP to one layer and use it on a single repository. It’s not an elegant alternative as it would make it les modular, but some customers prefer handing just one layer.

$ bitbake-layers flatten

Regards,

0 项奖励
回复

2,138 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Kailas K.,

It could be that the reason why the submodules are not syncing is that they are git repositories within the repository. That’s why repo is used, since there are multiple gits and commits to be maintained.

I have not much experience on this but maybe the following document from a git user (outside our Communitied) may help.

http://a.ghuser.io/git-pushing-a-new-submodule/

I hope this helps!

Regards,