How to include git in imx8 image

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

How to include git in imx8 image

1,269 次查看
colinbroderick
Contributor III

I'm building for the imx8mpevk, and `bitbake imx-image-full` builds and boots just fine.

I'd like my image to include the git executable. It does exist in the poky sources and I can build it using `btibake git`, but it's not at all clear how to actually include it in the image. I'm assuming there is a list of included recipes somewhere other than bblayers (since poky is included but git, which is within poky, isn't), but I haven't been able to work it out.

Any assistance would be appreciated.

Thanks

0 项奖励
回复
2 回复数

1,261 次查看
colinbroderick
Contributor III

Thanks for the reply.

I may not have been clear, or perhaps I'm not understanding your answer. I'm pretty new to this. I'm asking how to make git itself available in the image. git is not present on the completed, booted image. I'm not trying to source some other project from a git repository. The recipe for git already exists within poky and can be built but I don't know how to include it in the build.

0 项奖励
回复

1,264 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello colinbroderick,

The git works as usual in yocto 5.10.35 BSP, if you want to create an git executable you can post the git in a conf file like:

     SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1"

 

now the BB_RUNFMT Specifies the name of the executable script files (i.e. run files) saved into ${T}. By default, the BB_RUNFMT variable is undefined and the run file names get created using the following form:

     run.{task}.{pid}
                    

If you want to force run files to take a specific name, you can set this variable in a configuration file.

 

 

Regards

0 项奖励
回复